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 


Updating SSMenu.Dll

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Miscellaneous
View previous topic :: View next topic  
Author Message
ShinobiSoft
Professional Member
Professional Member


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

PostPosted: Wed Oct 27, 2004 11:20 pm    Post subject: Updating SSMenu.Dll Reply with quote

Hello all,

I'm currently in the process of updating SSMenu.Dll and I had a few
questions for some of the VDS programmers that use my dll extensively.

1) Would there be any problem changing from:
Code:
menu check,menu handle,menu item
      menu uncheck,menu handle,menu item


To:
Code:
menu check,menu handle,menu item,1|0

Where the 1|0 are TRUE|FALSE conditions to check or uncheck the
specified menu item.

The same would also apply for:
Code:
menu enable,menu handle, menu item
      menu disable,menu handle,menu item


To:
Code:
menu enable,menu handle,menu item,1|0


2) Change the
Code:
@menu(status_create,...)

to a command,
Code:
menu status_create,...

so as to stay consistant with VDS's syntax.

Happy coding...

_________________
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
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Thu Oct 28, 2004 5:06 am    Post subject: Reply with quote

Hi Bill,
I don't see any probs with changing syntax but you should keep backward compatibility in case users want to upgrade the dll and not the entire scripts.

For your first set of commands you could check if the last param is null where 1|0 is now expected - which allows for back compatibility.

Also for the function you could keep that in as well for backwards compat.


While those remain for back compatibility it's not necessary to note the old syntax in the help file Wink
Back to top
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Thu Oct 28, 2004 6:42 am    Post subject: Reply with quote

You can also add a little program which can load a DSC file, and changes all these things automaticly. I believe Tommy once made such a program which came with his VDSDLL3, but I'm not sure about that.

Edit: Found the script, you can download it [ here ]... Smile

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Thu Oct 28, 2004 3:39 pm    Post subject: Reply with quote

No problem for me. It would be nicer to have it the new way anyway.

Thanks Smile

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
ShinobiSoft
Professional Member
Professional Member


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

PostPosted: Thu Oct 28, 2004 3:43 pm    Post subject: Reply with quote

Thanks PG and Skit,

I'll leave the old command/functions along with adding the newer ones. I
had thought of backwards compatibility, but I hadn't seen PG's simple
solution, anyway this makes sense to me.

Thanks guys...

_________________
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
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Oct 29, 2004 1:17 am    Post subject: Reply with quote

Sounds good. Thumbs Up
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Sun Oct 31, 2004 3:57 pm    Post subject: Reply with quote

I agree. Worship
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
ShinobiSoft
Professional Member
Professional Member


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

PostPosted: Sun Oct 31, 2004 4:53 pm    Post subject: Reply with quote

Howdy all,

Ok, here's the scoop. Along with the existing abilities of SSMenu.Dll,
checking, enabling, disabling, hiding menus, and working with statusbars,
I've added the following additional abilities:
Code:

1) Statusbar icons can be loaded from disk .icon file, VDS resource file, or
    from another .exe or.dll

2) Loading menu definitions from a file, either from disk or VDS resource
    file. Very similar to the API call LoadMenu(). I've adopted a stripped
    down version of a Windows resource definition script (.rc). This will
    allow for menu definitions in multiple languages
 
3) Defining and loading an accelerator table from disk, VDS resoure file.

4) If when loading a menu definition the parser finds an accelerator table
    in the resource script with the same name as the menu definition being
    loaded, it is loaded as well. Otherwise it can be explicitly loaded.

5) Thanks to CodeScript for his contribution, you can now color the
    menubar background or add a background bitmap. This works for
    menus too.
 
6) Again, thanks to CodeScript, you can now set the scroll size of a menu.
    This will enable or disable the scroll buttons on the menu.


And a few more, mind is a little fuzzy Confused right now.

Happy coding...

_________________
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 -> Miscellaneous 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