Sign in to follow this  
Followers 0
grunewald6

Different font styles in same combo box?

5 posts in this topic

#1 ·  Posted (edited)

Is it possible to have different fonts (really diff styles) in the same combo box? I want to make one that looks something like this:

Network Problems

Email not working

Internet not working

Cannot Print

Software problems

Chancery not working properly

etc, etc

Can you use GUICtrlSetfont to somehow do this? Thanks in advance,

Edited by grunewald6

Share this post


Link to post
Share on other sites



You could try screwing around with RichText.


[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

C'mon guys. No takers? This forum hasn't failed me yet.

I can't get _GUICtrlComboBoxEx_SetItemIndent working. How can I use rich text in AutoIT? Any suggestions are welcome. TIA,

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Dim $hRich = _WinAPI_CreateWindowEx(0, 'RichEdit20W', 'foobar...', BitOR($ES_MULTILINE, $WS_VISIBLE, $WS_CHILD, $WS_BORDER, $WS_TABSTOP), 0, 0, 200, 400, $hGUI)

About the mixture of text styles in the same ComboBox, I believe it can be done using an owner-drawn ComboBox. Search the MSDN or google it as there are enough resources about this topic.

Edit: I don't know if it'll work as it requires to link to the riched20.dll library but I think it should.

Edited by Authenticity

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