forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


SSmenu.dll problem

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
MondoNuovo
Valued Newbie


Joined: 09 Jul 2001
Posts: 44
Location: Italy

PostPosted: Sun Jan 19, 2003 2:09 am    Post subject: SSmenu.dll problem Reply with quote

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
View user's profile Send private message Send e-mail
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Sun Jan 19, 2003 7:05 am    Post subject: Reply with quote

You almost had it right. Smile 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 Smile

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
MondoNuovo
Valued Newbie


Joined: 09 Jul 2001
Posts: 44
Location: Italy

PostPosted: Sun Jan 19, 2003 11:32 am    Post subject: Reply with quote

Hi bweckel,
Thanks for your help, six been very kind. Very Happy
Your SSMENU.DLL is really good! Compliments!
If I need still your help, can I write to you?

Thanks
Back to top
View user's profile Send private message Send e-mail
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Sun Jan 19, 2003 5:02 pm    Post subject: Reply with quote

I'm more than happy to help. Please feel free to email me with any questions you might have.Smile
_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
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

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group