| View previous topic :: View next topic |
| Author |
Message |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Wed Oct 27, 2004 11:20 pm Post subject: Updating SSMenu.Dll |
|
|
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 |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Thu Oct 28, 2004 5:06 am Post subject: |
|
|
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  |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Thu Oct 28, 2004 6:42 am Post subject: |
|
|
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 ]...  _________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial! |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Thu Oct 28, 2004 3:39 pm Post subject: |
|
|
No problem for me. It would be nicer to have it the new way anyway.
Thanks  _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Thu Oct 28, 2004 3:43 pm Post subject: |
|
|
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 |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Fri Oct 29, 2004 1:17 am Post subject: |
|
|
Sounds good.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Sun Oct 31, 2004 3:57 pm Post subject: |
|
|
I agree.  |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Sun Oct 31, 2004 4:53 pm Post subject: |
|
|
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 right now.
Happy coding... _________________ 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
|
|