Creating editable ComboBoxGadget fires ResizeWindow event?
Posted: Wed Aug 22, 2012 8:47 pm
After finishing a long project with a previous version of PB, I have just now finally migrated to v4.61, and notice that if I create a ComboBoxGadget with the #PB_ComboBox_Editable flag specified, a #PB_Event_SizeWindow event is fired immediately upon creation, which seems to be new.
Example:
If you either remove the combobox altogether or just remove the Editable flag, there is no Resize event fired, but left intact as above that event will be fired each and every time an editable combobox is created within the program. If you add two more comboboxes, you'll get two more SizeWindow events generated.
Any info or advice on this?
Thanks...
Example:
Code: Select all
If OpenWindow(-1, 0, 0, 0,0, "Test Window", #PB_Window_SystemMenu | #PB_Window_SizeGadget| #PB_Window_MinimizeGadget | #PB_Window_TitleBar|#PB_Window_Maximize|#PB_Window_MaximizeGadget|#PB_Window_ScreenCentered)
ComboBoxGadget(0, 10, 10, 250, 21,#PB_ComboBox_Editable)
Repeat
event=WaitWindowEvent()
If event=#PB_Event_SizeWindow
Debug "#PB_Event_SizeWindow"
EndIf
Until event = #PB_Event_CloseWindow
EndIf
Any info or advice on this?
Thanks...