[Done] ResizeGadget with #PB_Ignore does not work with QT

Post bugreports for the Linux version here
User avatar
Kukulkan
Addict
Addict
Posts: 1261
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

[Done] ResizeGadget with #PB_Ignore does not work with QT

Post by Kukulkan »

Compile using PB 5.72 LTS x64 on Linux with QT subsystem:

Code: Select all

EnableExplicit

If OpenWindow(0, 0, 0, 600, 100, "Color Test ", #PB_Window_SystemMenu | #PB_Window_ScreenCentered | #PB_Window_SizeGadget)
  Define dialogOriginalWidth  = WindowWidth(0)
  Define dialogOriginalHeight = WindowHeight(0)
  
  StringGadget(0, 10, 6, 100, 20, "Text Gadget 1")
 
  Repeat
    Define Event = WaitWindowEvent()
    
    If Event.i = #PB_Event_SizeWindow
      ; handle size events
      Define DiffX = WindowWidth(0) - dialogOriginalWidth
      Define DiffY = WindowHeight(0) - dialogOriginalHeight
      
      ResizeGadget(0, GadgetX(0) + DiffX, #PB_Ignore, #PB_Ignore, #PB_Ignore) ; <--- Y position is also changing!!!
      ;ResizeGadget(0, GadgetX(0) + DiffX, GadgetY(0), #PB_Ignore, #PB_Ignore) ; WORKS
      ;ResizeGadget(0, GadgetX(0) + DiffX, -1, #PB_Ignore, #PB_Ignore) ; WORKS
      
      dialogOriginalWidth  = WindowWidth(0)
      dialogOriginalHeight = WindowHeight(0)
    EndIf
  Until Event = #PB_Event_CloseWindow
EndIf
While resizing, the Y coordinate is changed even if #PB_Ignore is used. Setting the Y position or using -1 instead seem to work.

Thus, #PB_Ignore is ignored. With GTK it works.
Fred
Administrator
Administrator
Posts: 14288
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: [5.72] ResizeGadget with #PB_Ignore does not work with Q

Post by Fred »

Fixed.
Post Reply