It is currently Mon Oct 14, 2019 4:03 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: FrameGadget flags on Dialog have no effect?
PostPosted: Sun Mar 03, 2019 12:48 am 
Offline
Enthusiast
Enthusiast

Joined: Thu Dec 29, 2011 5:03 pm
Posts: 462
Code:
dlg_xml$ = "<window id='#PB_Any' name='test' text='Dialog' minwidth='320' minheight='250' flags='#PB_Window_ScreenCentered | #PB_Window_SystemMenu | #PB_Window_SizeGadget'>"
dlg_xml$ + "  <vbox>"
dlg_xml$ + "    <frame text='FrameGadget Standard'/>"
dlg_xml$ + "    <frame flags='#PB_Frame_Single'/>"
dlg_xml$ + "    <frame flags='#PB_Frame_Double'/>"
dlg_xml$ + "    <frame flags='#PB_Frame_Flat'/>"
dlg_xml$ + "  </vbox>"
dlg_xml$ + "</window>"

OpenWindow(0, 0, 0, 320, 250, "Window", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
FrameGadget(0, 10,  10, 300, 50, "FrameGadget Standard")
FrameGadget(1, 10,  70, 300, 50, "", #PB_Frame_Single)
FrameGadget(2, 10, 130, 300, 50, "", #PB_Frame_Double)
FrameGadget(3, 10, 190, 300, 50, "", #PB_Frame_Flat)

ParseXML(0, dlg_xml$)
CreateDialog(0)
OpenXMLDialog(0, 0, "test")

ResizeWindow(DialogWindow(0), WindowX(0) + WindowWidth(0) + 10, #PB_Ignore, #PB_Ignore, #PB_Ignore)

Repeat : Event = WaitWindowEvent() : Until Event = #PB_Event_CloseWindow


Top
 Profile  
Reply with quote  
 Post subject: Re: FrameGadget flags on Dialog have no effect?
PostPosted: Wed Apr 10, 2019 8:02 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 13622
Location: France
Doc needs to be updated, border frame are not supported


Top
 Profile  
Reply with quote  
 Post subject: Re: FrameGadget flags on Dialog have no effect?
PostPosted: Wed Apr 10, 2019 9:02 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu Dec 29, 2011 5:03 pm
Posts: 462
The FrameGadget isn't supported at all on Dialogs anymore? I hope that's not the case, as I use them quite often. I personally don't need the border styles (just the standard).


Top
 Profile  
Reply with quote  
 Post subject: Re: FrameGadget flags on Dialog have no effect?
PostPosted: Thu Apr 11, 2019 1:17 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 13622
Location: France
Only the border isn't supported due to difficulties to get the correct size on various OS.


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

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