Page 1 of 1

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

Posted: Sat Feb 03, 2024 2:17 pm
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

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

Posted: Sat Feb 03, 2024 2:43 pm
by mk-soft
Is a GTK3 flaw