grunewald6 Posted February 20, 2009 Share Posted February 20, 2009 (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 PrintSoftware problems Chancery not working properly etc, etcCan you use GUICtrlSetfont to somehow do this? Thanks in advance, Edited February 20, 2009 by grunewald6 Link to comment Share on other sites More sharing options...
BrettF Posted February 20, 2009 Share Posted February 20, 2009 You can indent using _GUICtrlComboBoxEx_SetItemIndent. I'm still having a look at bolding. Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
dantay9 Posted February 20, 2009 Share Posted February 20, 2009 You could try screwing around with RichText. Link to comment Share on other sites More sharing options...
grunewald6 Posted February 23, 2009 Author Share Posted February 23, 2009 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, Link to comment Share on other sites More sharing options...
Authenticity Posted February 23, 2009 Share Posted February 23, 2009 (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 February 23, 2009 by Authenticity Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now