Jump to content
Sign in to follow this  
LWC

Menu based on INI using Koda

Recommended Posts

LWC

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

Share this post


Link to post
Share on other sites
eltorro

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?

Share this post


Link to post
Share on other sites
LWC

[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

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
Sign in to follow this  

×

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.