Jump to content
Sign in to follow this  
LOULOU

ComboBox

Recommended Posts

With Windows 2000 the following statement cause trouble

$Edit_15 = GUICtrlCreateCombo($carte[0], 140, 217, 100, 20)

For seeing all items in combobox with Win 2000 you are obliged to programm

$Edit_15 = GUICtrlCreateCombo($carte[0], 140, 217, 100, 80)

Share this post


Link to post
Share on other sites

With Windows 2000 the following statement cause trouble

$Edit_15 = GUICtrlCreateCombo($carte[0], 140, 217, 100, 20)

For seeing all items in combobox with Win 2000 you are obliged to programm

$Edit_15 = GUICtrlCreateCombo($carte[0], 140, 217, 100, 80)

<{POST_SNAPBACK}>

As stated in the doc the behavior is different between XP/2000 so it is normal you have to increase the height to have both working. XP does use the height it do what it want. :)

Share this post


Link to post
Share on other sites

Just had this issue today, You can also leave the height field blank, Win2000 then looks same as WinXP.

<{POST_SNAPBACK}>

I am unable to leave this blank as in the line:

$combo4id = GUICtrlCreateCombo ( "" , 108, 122, 165, ,$CBS_SORT+$CBS_DROPDOWNLIST )

Nor does it work in XP if I use the following lines:

$combo1id = GUICtrlCreateCombo ( "" , 108,  32, 165 )
GUICtrlSetStyle ( $combo1id, $CBS_SORT+$CBS_DROPDOWNLIST )

In code snippet 1, I receive an error when the script executes, and in snippet 2, the drop down list is there but the selected value does not appear in the box. A default value of 100 works OK for most of the combo boxes, but I have one combo box with several entries (20 or so) that this may be problematic with.


Anyone have a TRS 80 Model III for sale?

Share this post


Link to post
Share on other sites

Thank you very much, I hadn't had the opportunity to try that as a fix, but I had come to the conclusion that -1 might be the right answer.

Tom


Anyone have a TRS 80 Model III for sale?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...