Sign in to follow this  
Followers 0
ailig

colored text of a combobox

3 posts in this topic

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.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

[font="Verdana"] [size="2"]"[/size][/font]Failure is not an option -- it comes packaged with Windows"[font="Verdana"][size="2"] Gecko Web Browser[/size][/font][font="Verdana"][size="2"], [/size][/font][font="Verdana"][size="2"]Yahtzee![/size][/font][font="Verdana"][size="2"], Toolbar Launcher (like RocketDock)[/size][/font][font="Verdana"][size="2"]Internet Blocker, Simple Calculator, Local Weather, Easy GDI+ GUI [/size][/font][font="Verdana"][size="2"]Triangle Solver, TCP File Transfer, [/size][/font][font="Verdana"][size="2"]Valuater's Autoit Wrappers[/size][/font][font="Verdana"][size="3"][size="2"][size="2"]OOP In AutoIt[/size][/size][/size][/font][font="Verdana"][size="2"][size="1"]Using Windows XP SP3, 1GB RAM, AMD Athlon Processor @ 2.1 GHzCheck me out at gadgets.freehostrocket.com[/size][/size][/font]

Share this post


Link to post
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.

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  
Followers 0