Jump to content

Which is Function API to set font for Tray Menu ?

Recommended Posts

I Have been Create Tray Menu underside taskbar, but don't knows which function API might to do ? Example Menu as Comics San MS !


Thank You Everybody !

Share this post

Link to post
Share on other sites

My first stop would be 



I was tried and it's not working !


#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.


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.
EndFunc   ;==>Example


Edited by scila1996

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

  • Create New...