Page 1 of 1

What does #PB_Window_Titlebar do?

Posted: Sat Nov 15, 2014 3:17 pm
by paulr
What does #PB_Window_Titlebar do? I can't see any difference when I use it. (On Windows 8 at least)

Re: What does #PB_Window_Titlebar do?

Posted: Sat Nov 15, 2014 7:25 pm
by es_91
It's #PB_Window_SystemMenu minus the system menu and the close button ("X").

Re: What does #PB_Window_Titlebar do?

Posted: Sat Nov 15, 2014 7:27 pm
by paulr
I see. I was using #PB_Window_SystemMenu, so didn't see the difference. Thanks.

Re: What does #PB_Window_Titlebar do?

Posted: Sat Nov 15, 2014 8:12 pm
by ANDY ANDERSON
This raises another point:

Code: Select all

NBXIND = OpenWindow(3,0,0,W,Z,"", #PB_Window_ScreenCentered|
#PB_Window_Invisible,  WindowID(1)) 
This produces a window with a title bar even though I didn't use
the #PB_Window_TitleBar flag.

Is this normal ?

Re: What does #PB_Window_Titlebar do?

Posted: Sat Nov 15, 2014 8:38 pm
by TI-994A
PureBasic's OpenWindow() function would, by default, open a window with the title bar, close button at the top right corner, and context menu at the top left corner. However, if the #PB_Window_TitleBar flag is used, the window is created with only the title bar - no context menu or control box in either corner.