Creating editable ComboBoxGadget fires ResizeWindow event?

Everything else that doesn't fall into one of the other PB categories.
mesozorn
Enthusiast
Enthusiast
Posts: 171
Joined: Fri Feb 20, 2009 2:23 am

Creating editable ComboBoxGadget fires ResizeWindow event?

Post 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...
dige
Addict
Addict
Posts: 1432
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Re: Creating editable ComboBoxGadget fires ResizeWindow even

Post 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
"Daddy, I'll run faster, then it is not so far..."
mesozorn
Enthusiast
Enthusiast
Posts: 171
Joined: Fri Feb 20, 2009 2:23 am

Re: Creating editable ComboBoxGadget fires ResizeWindow even

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