| View previous topic :: View next topic |
| Author |
Message |
MondoNuovo Valued Newbie
Joined: 09 Jul 2001 Posts: 44 Location: Italy
|
Posted: Sun Jan 19, 2003 2:09 am Post subject: SSmenu.dll problem |
|
|
Hi all,
I have a problem with the insertion of the menus with SSMENU.DLL.
I want to realize a menu how in the example following:
| Code: |
|File |Options|
New > SubMenu1 Cancel > Cancell all
SubMenu2 Cancel single file
SubMenu3
Page > SubMenu1
SubMenu2
--------
Exit
|
| Code: |
external @path(%0)ssmenu.dll
dialog create,SubMenu,-1,0,300,150,CLASS SUBMENU
dialog add,MENU,&File,-,&Esci
dialog add,MENU,&Opzioni
rem SubMenu
dialog add,Menu,Pulizia,Pulizia veloce,Calcola spazio liberabile,Cancellazione file cestino,Cancellazione Dati recenti,Scansione file temporanei,Scansione file zero byte
dialog add,Menu,Internet,Cancellazione file Internet,Cancellazione cookies
dialog add,Menu,Registro attivitą,Visualizza...,Cancella...
menu class,submenu
%%menuBar = @menu(menubarid)
%%Pulizia = @menu(getsubmenu,%%menuBar,0)
%%Opzioni = @menu(getsubmenu,%%menuBar,1)
%%SubPulizia = @menu(hidemenu,%%menuBar,2)
%%SubInternet = @menu(hidemenu,%%menuBar,3)
%%SubOpzioni = @menu(hidemenu,%%menuBar,4)
menu insertmenu,%%Pulizia,%%SubPulizia,0,&Pulizia
menu insertmenu,%%Pulizia,%%SubInternet,1,&Internet
menu insertmenu,%%Opzioni,%%SubOpzioni,2,&Registro attivitą
dialog show
:evloop
wait event
goto @event()
:close
exit
|
Can you help me?
Thanks |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Sun Jan 19, 2003 7:05 am Post subject: |
|
|
You almost had it right. I don't speak Italian so I'm only guessing at
what you are after, but here is what I think you were wanting:
| Code: |
external @path(%0)ssmenu.dll
dialog create,SubMenu,-1,0,300,150,CLASS SUBMENU
dialog add,MENU,&File,-,&Esci
rem Menus have to have at least one menu item in order for SSmenu.dll to work
dialog add,MENU,&Opzioni,blah
rem SubMenu
dialog add,Menu,Pulizia,Pulizia veloce,Calcola spazio liberabile,Cancellazione file cestino,Cancellazione Dati recenti,Scansione file temporanei,Scansione file zero byte
dialog add,Menu,Internet,Cancellazione file Internet,Cancellazione cookies
dialog add,Menu,Registro attivitą,Visualizza...,Cancella...
menu class,submenu
%%menuBar = @menu(menubarid)
%%Pulizia = @menu(getsubmenu,%%menuBar,0)
%%Opzioni = @menu(getsubmenu,%%menuBar,1)
rem Always hide/remove menus in the reverse order they were added to the dialog
%%SubOpzioni = @menu(hidemenu,%%menuBar,4)
%%SubInternet = @menu(hidemenu,%%menuBar,3)
%%SubPulizia = @menu(hidemenu,%%menuBar,2)
menu insertmenu,%%Pulizia,%%SubPulizia,0,&Pulizia
menu insertmenu,%%Pulizia,%%SubInternet,1,&Internet
menu insertmenu,%%Opzioni,%%SubOpzioni,0,&Registro attivitą
rem Now we can remove the bogus menu item we added earlier
menu delete,%%opzioni,1
dialog show
:evloop
wait event
goto @event()
:close
exit
|
Couple things to note:
1) Menus must have at least one item in them in order for SSmenu.dll to work
2) Always remove/hide your menus in the reverse order they were added
If you have anymore questions, please feel free to email me and I'll help
anyway I can.
And thanks for using SSmenu.dll  _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
MondoNuovo Valued Newbie
Joined: 09 Jul 2001 Posts: 44 Location: Italy
|
Posted: Sun Jan 19, 2003 11:32 am Post subject: |
|
|
Hi bweckel,
Thanks for your help, six been very kind.
Your SSMENU.DLL is really good! Compliments!
If I need still your help, can I write to you?
Thanks |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Sun Jan 19, 2003 5:02 pm Post subject: |
|
|
I'm more than happy to help. Please feel free to email me with any questions you might have. _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|