Jump to content

colored text of a combobox


ailig
 Share

Recommended Posts

Hi!

I'm using autoit3 intensively since 6 months, and it is simply: "simple and great". especially for me as an advanced lisp coder, it is so easy to have access to all the windows functions I've always wanted.

It seems difficult to color the edit and the list of a combobox (text and background)!

I've already tried it to do it in Koda ... does not work (works with edits and inpusts ...)

I've tried to add code, inside the update of the combo:

_GUICtrlComboBox_BeginUpdate ($Combo2)

GUICtrlSetData($Combo2, $in1)

GUICtrlSetColor($Combo1, 0x800000)

GUICtrlSetBkColor($Combo1, 0xFFFBF0)

_GUICtrlComboBox_ShowDropDown($Combo2, True)

_GUICtrlComboBox_EndUpdate($Combo2)

... does not work!

So any suggestions, am I missing something?

c.

Link to comment
Share on other sites

There is no way that I know of to change the background color of a combobox. From the help file:

Only Button, Label, Checkbox, Group, Radio, Edit, Input, List, Listview, ListviewItem, Treeview, TreeviewItem, Graphic, Progress and Slider controls can currently be colored.

You can try to make your own combo box. Many have tried, but very few have been able to make the drop down menu. I don't know of any that can make the menu transition smooth.

Edited by dantay9
Link to comment
Share on other sites

There is no way that I know of to change the background color of a combobox. From the help file:

You can try to make your own combo box. Many have tried, but very few have been able to make the drop down menu. I don't know of any that can make the menu transition smooth.

thank you for the quick answer, I think I'll avoid the hairy experience.

c.

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