PartyPooper Posted June 6, 2006 Share Posted June 6, 2006 I had a look in the help file but I can't see anything that allows me to 'bold' the text of a traymenu item - something like GUICtrlSetFont(-1, 800) does to a normal control. I would like to bold the text of default item so it identifies which item is activated when I doubleclick on the icon. Any suggestions? Link to comment Share on other sites More sharing options...
Vivvic Posted June 6, 2006 Share Posted June 6, 2006 Ok, Im not sure, and unable to check atm, but have you tried html? <b>text goes here</b> [quote name='DaleHohm']You have a strange habit of posting error messages that don't match your code.[/quote][quote name='SmOke_N']Forget the learning... straight to the scripting :lol: (laugh.gif)[/quote] Link to comment Share on other sites More sharing options...
PartyPooper Posted June 6, 2006 Author Share Posted June 6, 2006 Won't work because all it will display is '<b>text goes here</b>'. Currently, I'm using something like TrayCreateItem("text goes here") Link to comment Share on other sites More sharing options...
Vivvic Posted June 6, 2006 Share Posted June 6, 2006 (edited) Not familiar with it but you could try putting it in brackets. {<b>text goes here</b>} or maby {<b>}text goes here{</b>} Sorry if this dosnt help all I can think of, I usually just 'try' and fool around with stuff trying to get it to work. Edited June 6, 2006 by Vivvic [quote name='DaleHohm']You have a strange habit of posting error messages that don't match your code.[/quote][quote name='SmOke_N']Forget the learning... straight to the scripting :lol: (laugh.gif)[/quote] Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted June 6, 2006 Moderators Share Posted June 6, 2006 (edited) @PartyPooper, try this (TrayItemSetState()):#Include <Constants.au3> #NoTrayIcon Opt("TrayMenuMode",1) ; Default tray menu items (Script Paused/Exit) will not be shown. $settingsitem = TrayCreateMenu("Settings") $displayitem = TrayCreateItem("Display", $settingsitem) TrayItemSetState($displayitem, 512) $printeritem = TrayCreateItem("Printer", $settingsitem) TrayCreateItem("") $aboutitem = TrayCreateItem("About") TrayCreateItem("") $exititem = TrayCreateItem("Exit") TraySetState() While 1 $msg = TrayGetMsg() Select Case $msg = 0 ContinueLoop Case $msg = $aboutitem Msgbox(64,"about:","AutoIt3-Tray-sample") Case $msg = $exititem ExitLoop EndSelect WEnd Exit Not familiar with it but you could try putting it in brackets. {<b>text goes here</b>} or maby {<b>}text goes here{</b>} Sorry if this dosnt help all I can think of, I usually just 'try' and fool around with stuff trying to get it to work. btw, if you know the soultion to my problem, http://www.autoitscript.com/forum/index.php?showtopic=27235, could you please try and help me?Way to hijack a thread... I gave you the solution in the first post after yours.... Use Larry's UDF's or use IE (or show your attempts to use the .dll). Edited June 6, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Vivvic Posted June 6, 2006 Share Posted June 6, 2006 (edited) Yes, sorry about that, I edited it out, I was getting impatient...>.< Edited June 6, 2006 by Vivvic [quote name='DaleHohm']You have a strange habit of posting error messages that don't match your code.[/quote][quote name='SmOke_N']Forget the learning... straight to the scripting :lol: (laugh.gif)[/quote] Link to comment Share on other sites More sharing options...
PartyPooper Posted June 6, 2006 Author Share Posted June 6, 2006 LOL right in front of me. I must have read that about a dozen times but somewhere in my brain there was a disconnect between default item and bold text. Thanks Smoke. 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