Page 1 of 1

Resized Gadgets on Startup

Posted: Fri Apr 18, 2025 6:41 am
by Piero
Is this a bug (Ubuntu ARM VM)?

Code: Select all

If OpenWindow(0, 0, 0, 322, 150, "ResizeGadgets")
  PanelGadget(0, 8, 8, 306, 133)
  CloseGadgetList()
  ContainerGadget(1, 8, 8, 306, 133, #PB_Container_Raised)
  CloseGadgetList()
  Repeat
    Event = WaitWindowEvent()
    Select Event
      Case #PB_Event_Gadget
        Select EventGadget()
          Case 0
            Select EventType()
              Case  #PB_EventType_Resize
                Debug "Resize 0"
            EndSelect
          Case 1 
            Select EventType()
              Case  #PB_EventType_Resize
                Debug "Resize 1"
            EndSelect
        EndSelect
    EndSelect
  Until Event = #PB_Event_CloseWindow
EndIf

Re: Resized Gadgets on Startup

Posted: Fri Apr 18, 2025 11:56 am
by mk-soft
No,
the resize event always arrived at the setup under linux ...

Re: Resized Gadgets on Startup

Posted: Fri Apr 18, 2025 12:27 pm
by Piero
mk-soft wrote: Fri Apr 18, 2025 11:56 am No,
the resize event always arrived at the setup under linux ...
Are you saying it's a GTK thing?

We should start a Forum section titled: "Beware of multiplatform events!" (e.g.; Mac reacts even if you "resize to the same size"…)

…but then Fred would drown himself in champagne after trying to fix it…

Re: Resized Gadgets on Startup

Posted: Fri Apr 18, 2025 12:37 pm
by mk-soft
There are always differences between the various OSs. You can't do everything 100% the same.
It's great that you can programme with PureBasic under the three OS with the same language (which I also do).
Therefore some special wishes of functions are not fulfilled to have the highest common denominator under all three OS.
For this there is also the compiler option #PB_Compiler_OS to create special functions for the respective OS yourself. :wink:

Re: Resized Gadgets on Startup

Posted: Fri Apr 18, 2025 1:06 pm
by Piero
I try to "roast" Fred in a positive way; even when I report OS (not PB!?!?) stuff……… ;)