Resized Gadgets on Startup

Linux specific forum
User avatar
Piero
Addict
Addict
Posts: 917
Joined: Sat Apr 29, 2023 6:04 pm
Location: Italy

Resized Gadgets on Startup

Post 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
User avatar
mk-soft
Always Here
Always Here
Posts: 6244
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Resized Gadgets on Startup

Post by mk-soft »

No,
the resize event always arrived at the setup under linux ...
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
Piero
Addict
Addict
Posts: 917
Joined: Sat Apr 29, 2023 6:04 pm
Location: Italy

Re: Resized Gadgets on Startup

Post 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…
User avatar
mk-soft
Always Here
Always Here
Posts: 6244
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Resized Gadgets on Startup

Post 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:
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
Piero
Addict
Addict
Posts: 917
Joined: Sat Apr 29, 2023 6:04 pm
Location: Italy

Re: Resized Gadgets on Startup

Post by Piero »

I try to "roast" Fred in a positive way; even when I report OS (not PB!?!?) stuff……… ;)
Post Reply