What does #PB_Window_Titlebar do?

Just starting out? Need help? Post your questions and find answers here.
paulr
User
User
Posts: 70
Joined: Sat Sep 27, 2003 2:53 pm

What does #PB_Window_Titlebar do?

Post by paulr »

What does #PB_Window_Titlebar do? I can't see any difference when I use it. (On Windows 8 at least)
es_91
Enthusiast
Enthusiast
Posts: 298
Joined: Thu Jan 27, 2011 12:00 pm
Location: DE

Re: What does #PB_Window_Titlebar do?

Post by es_91 »

It's #PB_Window_SystemMenu minus the system menu and the close button ("X").
:mrgreen:
paulr
User
User
Posts: 70
Joined: Sat Sep 27, 2003 2:53 pm

Re: What does #PB_Window_Titlebar do?

Post by paulr »

I see. I was using #PB_Window_SystemMenu, so didn't see the difference. Thanks.
ANDY ANDERSON
User
User
Posts: 62
Joined: Thu Aug 28, 2014 9:02 pm

Re: What does #PB_Window_Titlebar do?

Post 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 ?
User avatar
TI-994A
Addict
Addict
Posts: 2698
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

Re: What does #PB_Window_Titlebar do?

Post 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.
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel :D
Post Reply