Jump to content

Which is Function API to set font for Tray Menu ?


Recommended Posts

My first stop would be 

GUICtrlSetFont

 

I was tried and it's not working !

 

#NoTrayIcon
#include <MsgBoxConstants.au3>
#include <TrayConstants.au3> ; Required for the $TRAY_ICONSTATE_SHOW constant.

Opt("TrayMenuMode", 3) ; The default tray menu items will not be shown and items are not checked when selected. These are options 1 and 2 for TrayMenuMode.

Example()

Func Example()
    Local $idAbout = TrayCreateItem("About")
    GUICtrlSetFont(-1, 9, 400, 0, "tahoma", 0) ;- > Not working
    TrayCreateItem("") ; Create a separator line.

    Local $idExit = TrayCreateItem("Exit")
    GUICtrlSetFont(-1, 9, 400, 0, "tahoma", 0)
    TraySetState($TRAY_ICONSTATE_SHOW) ; Show the tray menu.

    While 1
        Switch TrayGetMsg()
            Case $idAbout ; Display a message box about the AutoIt version and installation path of the AutoIt executable.
                MsgBox(64, "", "")
            Case $idExit ; Exit the loop.
                ExitLoop
        EndSwitch
    WEnd
EndFunc   ;==>Example

 

Edited by scila1996
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...