It is currently Thu Dec 13, 2018 3:01 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: qt window flags / close gadget
PostPosted: Fri Oct 12, 2018 10:45 am 
Offline
Addict
Addict

Joined: Thu Aug 30, 2007 11:54 pm
Posts: 869
Location: right here
With the Dialog example source or the following code you don't get a window close button when using subsystem qt but you get one with gtk. If you add #PB_Window_SystemMenu then qt shows a close button too.
Code:
win = OpenWindow(#PB_Any, 50,100, 800, 600, "..", #PB_Window_SizeGadget | #PB_Window_MaximizeGadget | #PB_Window_MinimizeGadget)
AddKeyboardShortcut(win, #PB_Shortcut_Escape, 10)
Repeat
  WaitWindowEvent()
Until Event() = #PB_Event_CloseWindow Or Event() = #PB_Event_Menu
..


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye