PB 6.10 Beta 3: ComboboxGadget: Automatic widening if entries are too long

Just starting out? Need help? Post your questions and find answers here.
OBrien
User
User
Posts: 12
Joined: Fri Dec 22, 2023 10:37 pm

PB 6.10 Beta 3: ComboboxGadget: Automatic widening if entries are too long

Post by OBrien »

Hello Everyone,

Code: Select all


win = OpenWindow(#PB_Any, 200,200,400,400,"Test",#PB_Window_SystemMenu)
con = ContainerGadget(#PB_Any, 10,10,100,100,#PB_Container_Flat)
cbo = ComboBoxGadget(#PB_Any, 10,10,80,35)
  Debug GadgetWidth(cbo, #PB_Gadget_ActualSize)
  AddGadgetItem(cbo, -1, "PureBasic is a nice programming language")
  Debug GadgetWidth(cbo, #PB_Gadget_ActualSize)
  Debug GadgetWidth(cbo, #PB_Gadget_RequiredSize)
CloseGadgetList()
  
Repeat
  E = WaitWindowEvent()
Until E = #PB_Event_CloseWindow

Can anyone confirm this?

Best regards

OS: Linux Mint 21.2 / PB Subsystem: GTK
User avatar
mk-soft
Always Here
Always Here
Posts: 6320
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: PB 6.10 Beta 3: ComboboxGadget: Automatic widening if entries are too long

Post by mk-soft »

Is a GTK3 flaw
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
Post Reply