Jump to content

Combo Height !?


Madza91
 Share

Recommended Posts

How can I change height of guictrlcreatecombo (so it's not fixed size 21) ?!

GUICtrlCreateCombo("Combo1", 100, 100, 200, 25)

[quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)

Link to comment
Share on other sites

You can use the style $CBS_NOINTEGRALHEIGHT but that will not work as I think you want it.

GUICtrlCreateCombo("item1", 10, 10, 100, 45, $CBS_NOINTEGRALHEIGHT)
Link to comment
Share on other sites

How can I change height of guictrlcreatecombo (so it's not fixed size 21) ?!

GUICtrlCreateCombo("Combo1", 100, 100, 200, 25)

GuiComboBox UDF in helpfile guys

#include <GUIComboBox.au3>
#include <GuiConstantsEx.au3>

GUICreate("ComboBox Set Item Height", 400, 296)
$hCombo = GUICtrlCreateCombo("", 2, 2, 396, 296)
GUISetState()

_GUICtrlComboBox_BeginUpdate($hCombo)
_GUICtrlComboBox_AddDir($hCombo, @WindowsDir & "\*.exe")
_GUICtrlComboBox_EndUpdate($hCombo)

; Set Item Height (selection field)
_GUICtrlComboBox_SetItemHeight($hCombo, 16, 0)

; Set Control Height
_GUICtrlComboBox_SetItemHeight($hCombo, 25, -1)

Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE

I see fascists...

Link to comment
Share on other sites

Oh yes, thank you rover! i luv u :)

no problem

btw

did the solution ProgAndy posted for getting that toolbar button separator line work for you?

I couldn't get the line to appear with several visual styles on two xp machines, so I don't know what

conditions or toolbar styles made it work.

no response to my question either.

cheers

I see fascists...

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...