Jump to content
scila1996

Which is Function API to set font for Tray Menu ?

Recommended Posts

scila1996

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

Untitled.thumb.png.66c1da9d9b5e0fe23d281

Thank You Everybody !

Share this post


Link to post
Share on other sites
scila1996

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

Share this post


Link to post
Share on other sites
Tekk

You might take a look at ModernMenu.au3.  I don't believe you can change the font of a context menu unless it is owner-drawn.

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

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.