It is currently Sun Sep 23, 2018 3:27 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: #PB_Canvas_Container
PostPosted: Tue Aug 14, 2018 7:55 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu Dec 29, 2011 5:03 pm
Posts: 269
Gadget positions inside a CanvasGadget with the #PB_Canvas_Container flag are positioned incorrectly when it is resized.

Code:
If OpenWindow(0, 0, 0, 220, 250, "Canvas container example", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
 
    CanvasGadget(0, 10, 10, 200, 240, #PB_Canvas_Container)
    ButtonGadget(1, 10, 10, 80, 30, "Clean up")
    CloseGadgetList()
   
    ResizeGadget(0, #PB_Ignore, #PB_Ignore, 190, 200)
 
    Repeat
      Event = WaitWindowEvent()
   
    Until Event = #PB_Event_CloseWindow
  EndIf


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