XusinboyBekchanov / MyFbFramework

My FreeBasic Framework
Other
65 stars 18 forks source link

Suggest adding properties to control the display/hiding of Form Caption #142

Closed chunmingwang closed 11 months ago

chunmingwang commented 11 months ago

Suggest adding properties to control the display/hiding of Form Caption

Code example for Windows

Dim style As Long = GetWindowLong(Handle, GWL_STYLE)
If ShowCaption Then
    style = style Or WS_CAPTION
Else
    style = style Xor WS_CAPTION
End If
SetWindowLong(Handle, GWL_STYLE, style)
SetWindowPos(Handle, NULL, 0, 0, 0, 0, SWP_NOSIZE Or SWP_NOMOVE Or SWP_NOZORDER Or SWP_FRAMECHANGED)
XusinboyBekchanov commented 11 months ago

For the form or for all controls? If on a form then the form has the properties BorderStyle = None

chunmingwang commented 11 months ago

For the form or for all controls? If on a form then the form has the properties BorderStyle = None

I know properties BorderStyle = None

Nornal Caption

image

Hide Caption Form border still remains resizable...

image

XusinboyBekchanov commented 11 months ago

Then we can add this property to the Form.

XusinboyBekchanov commented 11 months ago

If you want, you can also send a Pull Request yourself.

chunmingwang commented 11 months ago

Thanks!

XusinboyBekchanov commented 11 months ago

I think it's not finished yet.

chunmingwang commented 11 months ago

i will try to add property HideCaption for Form

chunmingwang commented 11 months ago

I issue a PR to add property HideCaption for Form https://github.com/XusinboyBekchanov/MyFbFramework/pull/143

chunmingwang commented 11 months ago

Thanks!