PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Anonymous on March 08, 2005, 02:01:48 PM

Title: Combobox
Post by: Anonymous on March 08, 2005, 02:01:48 PM
Hi!

If I create with PB a Combobox I can set the dropdownheight of the Combobox :
Control Add Combobox, hDlg, %IDC_cbxIndex, , 55, 15, 45, 170  <-- dropdownheight
I will determine how many items the user can see.
But in the FireFly i can't change the Value of the height.

Thanks for any help.


Fürstauer Rudolf
----------------
Title: Combobox
Post by: Anonymous on March 09, 2005, 01:21:20 PM
I find out the solution!   (just using my brain :wink:  )


   Call FF_Control_GetSize (HWND_FRMZYLINDER_CBOZYLINDER(0), lWidth, lHeight)
   Call FF_Control_GetLoc (HWND_FRMZYLINDER_CBOZYLINDER(0), lLeft, lTop)
   Call MoveWindow HWND_FRMZYLINDER_CBOZYLINDER(0), lLeft, lTop, lWidth, 300, %FALSE  


300 is the new height.


thank's


Fürstauer Rudolf
Title: Combobox
Post by: TechSupport on March 09, 2005, 06:30:05 PM
Cool! Sorry I never helped you out. Your post got lost in my maze of unanswered posts and emails. :)
Title: Combobox
Post by: TechSupport on March 09, 2005, 06:34:03 PM
The following should also work:

FF_Control_GetSize HWND_FRMZYLINDER_CBOZYLINDER(0), lWidth, lHeight
SetWindowPos HWND_FRMZYLINDER_CBOZYLINDER(0), 0, 0, 0, lWidth, 300, %SWP_NOMOVE Or %SWP_SHOWWINDOW Or %SWP_NOZORDER
Title: Combobox
Post by: Anonymous on March 10, 2005, 07:27:21 AM
It's much better, because 33% less then my code   :wink:

Thanks
--------------------------
Fürstauer Rudolf