scila1996

Which is Function API to set font for Tray Menu ?

5 posts in this topic

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



#3 ·  Posted (edited)

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

#4 ·  Posted (edited)

#include <FontConstants.au3> 
#include <GUIConstantsEx.au3>
maybe
Edited by computergroove

Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html

Share this post


Link to post
Share on other sites

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