[Done] #PB_Canvas_Container

Post bugreports for the Mac OSX version here
wombats
Enthusiast
Enthusiast
Posts: 596
Joined: Thu Dec 29, 2011 5:03 pm

[Done] #PB_Canvas_Container

Post by wombats »

Gadget positions inside a CanvasGadget with the #PB_Canvas_Container flag are positioned incorrectly when it is resized.

Code: Select all

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
Fred
Administrator
Administrator
Posts: 14206
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: #PB_Canvas_Container

Post by Fred »

Fixed.
Post Reply