Jump to content

Recommended Posts

Posted (edited)

Do you know how to take an INI file, that has general style settings plus definitions for specific clickable buttons, and base a menu on it?

Thanks!

Edited by LWC
Posted

Do you know how to take an INI file, that has general style settings plus definitions for specific clickable buttons, and base a menu on it?

Thanks!

Do you have a sample of what your ini file would should be?

Posted (edited)

[Something unrelated]
foo=bar

[CUSTOM MENU]; Those are just optional. Otherwise, defaults are used
relief=flat ;can be <raised, sunken, flat, ridge, solid, groove>
overrelief=raised ;can be <raised, sunken, flat, ridge, solid, groove>
font=helvetica 10 bold
buttoncolor=#fefee0
menucolor=white
buttonwidth=50
titletext=My Menu

[BUTTON] ;can also be [BUTTON1] but doesn't have to
buttontext=Notepad 1
relativepathandfilename=%USERPROFILE%\My Documents\foobar.txt
optionalcommandlineparams=
closemenuonclick=1; this means the menu would close upon clicking this button

[BUTTON] ;can also be [BUTTON2] but doesn't have to
buttontext=Notepad 2
relativepathandfilename=foobar.txt
optionalcommandlineparams=
closemenuonclick=0; this means the menu would still remain open
programpath=%USERPROFILE%\My Documents

[BUTTON] ; can also be [BUTTON3] but doesn't have to
buttontext=Windows Media Player
relativepathandfilename=%programfiles%\Windows Media Player\wmplayer.exe
optionalcommandlineparams=
closemenuonclick=1

The actual menu would have a list of clickable buttons:

My Menu

[Notepad 1]

[Notepad 2]

[Windows Media Player]

Edited by LWC

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