Page 1 of 1

Creating editable ComboBoxGadget fires ResizeWindow event?

Posted: Wed Aug 22, 2012 8:47 pm
by mesozorn
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:

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
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...

Re: Creating editable ComboBoxGadget fires ResizeWindow even

Posted: Thu Aug 23, 2012 6:33 am
by dige
Since PB4.61 and still with PB4.70b1, there seems to be a general redraw problem with PB's GUI.
Especially if you have some more gadgets on a window, the user interface looks like restless and flickers.
Unfortunately, there is imho still no comment from the PB team - if its a bug or a feature - since may ... http://www.purebasic.fr/english/viewtop ... =4&t=50110

Re: Creating editable ComboBoxGadget fires ResizeWindow even

Posted: Thu Aug 23, 2012 2:55 pm
by mesozorn
Strangely enough I have gone back and tested this on as old as PB 4.3 and am seeing that it is in fact occurring even on that old version, which I never noticed before. Unless installing 4.61 into a completely different directory somehow changed the behaviour of my older 4.3 installation.