Posted: Mon Jan 23, 2006 2:01 pm
Missing constants added.
http://www.purebasic.com
https://www.purebasic.fr/english/
1. That's not the xor binary operator. This is the xor binary operator: !Fred wrote:Yes, you can using the xor binary operator:Trond wrote:or something, so that you didn't have to type everything everytime. It would of course also be nice if constants could be removed from the chain, for example if you could remove #PB_Window_ScreenCentered and add #PB_Window_WindowCentered (this may already be possible for all I know).
Code: Select all
#PB_Window_Standard = #PB_Window_MaximizeGadget | #PB_Window_ScreenCentered | #PB_Window_SizeGadget | #PB_Window_SystemMenu | #PB_Window_MinimizeGadget OpenWindow(0, 0, 0, 640, 480, #PB_Window_Standard & ~#PB_Window_SizeGadget, "Test") Repeat Until WaitWindowEvent() = #PB_Event_CloseWindow
Code: Select all
#PB_Window_Standard = #PB_Window_MaximizeGadget | #PB_Window_ScreenCentered | #PB_Window_SizeGadget | #PB_Window_SystemMenu | #PB_Window_MinimizeGadget
OpenWindow(0, 0, 0, 640, 480, #PB_Window_Standard & ~#PB_Window_MaximizeGadget, "Test")
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
Code: Select all
#PB_Window_Standard = #PB_Window_MaximizeGadget | #PB_Window_ScreenCentered | #PB_Window_SizeGadget | #PB_Window_SystemMenu | #PB_Window_MinimizeGadget
OpenWindow(0, 0, 0, 640, 480, #PB_Window_Standard ! #PB_Window_MaximizeGadget, "Test")
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
Thank you.Fred wrote:Missing constants added.
Code: Select all
#PB_Window_Standard = #PB_Window_SystemMenu ! #PB_Window_SizeGadget ! #PB_Window_MinimizeGadget ! #PB_Window_MaximizeGadget
OpenWindow(0, 0, 0, 640, 480, #PB_Window_Standard | #PB_Window_ScreenCentered, "Test")
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
Code: Select all
#PB_Window_MaximizeGadget = $10000 | #PB_Window_TitleBar | #PB_Window_SystemMenu
Useful, thanks for sharing this a ways back!Fred wrote:Yes, you can using the xor binary operator:Trond wrote:or something, so that you didn't have to type everything everytime. It would of course also be nice if constants could be removed from the chain, for example if you could remove #PB_Window_ScreenCentered and add #PB_Window_WindowCentered (this may already be possible for all I know).
Code: Select all
#PB_Window_Standard = #PB_Window_MaximizeGadget | #PB_Window_ScreenCentered | #PB_Window_SizeGadget | #PB_Window_SystemMenu | #PB_Window_MinimizeGadget OpenWindow(0, 0, 0, 640, 480, #PB_Window_Standard & ~#PB_Window_SizeGadget, "Test") Repeat Until WaitWindowEvent() = #PB_Event_CloseWindow