Page 1 of 1

[Done] #PB_Canvas_Container

Posted: Tue Aug 14, 2018 7:55 pm
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

Re: #PB_Canvas_Container

Posted: Fri Apr 12, 2019 4:37 pm
by Fred
Fixed.