How to get and set the flag gadget?
Posted: Mon Mar 03, 2014 8:20 pm
That's the way that it does not work
works with windows
Code: Select all
If OpenWindow(1, 0, 0, 600, 440, "Split Picture", #PB_Window_ScreenCentered | #PB_Window_SystemMenu | #PB_Window_SizeGadget)
StickyWindow(1, 1)
TextGadget(213, 95, 10, 60, 25, "TextGadget",#PB_Text_Border)
s= GetWindowLong_(GadgetID(213), #GWL_STYLE)
exs= GetWindowLong_(GadgetID(213), #GWL_EXSTYLE)
TextGadget(214, 95, 110, 60, 25, "TextGadget",0)
SetWindowLong_(GadgetID (214), #GWL_STYLE, s)
SetWindowLong_(GadgetID (214), #GWL_EXSTYLE, exs)
InvalidateRect_(GadgetID(214),0,1)
EndIf
Repeat
Event=WaitWindowEvent()
If Event=#PB_Event_CloseWindow And EventWindow()=1
End
EndIf
ForEver
Code: Select all
If OpenWindow(1, 0, 0, 600, 440, "Split Picture", #PB_Window_ScreenCentered | #PB_Window_SystemMenu | #PB_Window_SizeGadget)
OpenWindow(2, 0, 0, 600, 440, "Split Picture", #PB_Window_BorderLess)
s= GetWindowLong_(WindowID(2), #GWL_STYLE)
SetWindowLong_(WindowID(1), #GWL_STYLE, s)
EndIf
Repeat
Event=WaitWindowEvent()
If Event=#PB_Event_CloseWindow And EventWindow()=1
End
EndIf
ForEver