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 


Menu items
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Vic D'Elfant
Past Contributor
Past Contributor


Joined: 26 Jun 2002
Posts: 673
Location: The Netherlands

PostPosted: Mon Sep 15, 2003 11:16 am    Post subject: Menu items Reply with quote

Hi all,

I've two menu-related questions in one topic Smile:

1
When I add a bitmap or an icon to a menu item using ssmenu.dll or some API-calls it becomes neagtive when the mouse goes over the belonging menu item. (see screenshot below)


2
Is there a dll, or would somebody like to make one, that is able to create these (popup) menus:
(Screenshot from PGWARE's PCBoost)

BTW: Would this be a nice feature for the next version of VDS?

Thanks in advance,
Vic

_________________
phpBB Development Team
Back to top
View user's profile Send private message Visit poster's website
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Mon Sep 15, 2003 11:35 am    Post subject: Re: Menu items Reply with quote

Vic wrote:
BTW: Would this be a nice feature for the next version of VDS?


I certainly think that menus could use some improvement. And if someone made a small DLL that produced pop-ups like you pictured, I'd be among the first to register it!

_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Mon Sep 15, 2003 1:13 pm    Post subject: Reply with quote

Hi vic
The bitmaps added by using system drawn menus will turn negative as the highlighting will XOR the bitmap pixels as well. So colored menu bitmaps are not recommended by many. If you want the one you demonstrated you need owner drawn menus which is a very complex area you need to handle each and every part of drawing and handling the menu yourself But it looks great. Sure there might be units available (I don't know if it is easy in C++ or Delphi unlike in VB - said to be easy in dot net due to built in commands) in delphi/C++ which some one may convert to VDS compatable one.

As for submenus I have already put up an example script using just API. It is indeed a bit complex Sad .
http://forum.vdsworld.com/viewtopic.php?t=1928
I was planning a dsu when I get time don't know when.

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Mon Sep 15, 2003 2:31 pm    Post subject: Reply with quote

Hi Vic,
There is a way around this since the bitmap is XOR'ed to show the bitmap when selected make a copy of your bitmap that is already XOR'ed and use that as the selected bitmap then when a user selects the menu item it should XOR it again but this time the bitmap should show as normal. This is just a theory and I have not tried it yet. Maybe if a get a little bit of time I will try it out.

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Mon Sep 15, 2003 3:55 pm    Post subject: Reply with quote

I'll try to put together a popup dll using the office menu look. It will support glyphs of course - vds resource file, as standard resource within exe or linked direct to a file. It will also support unlimited sub-menus. I'll see if I can add in checkbox/radio support too.
Back to top
View user's profile Send private message
Vic D'Elfant
Past Contributor
Past Contributor


Joined: 26 Jun 2002
Posts: 673
Location: The Netherlands

PostPosted: Mon Sep 15, 2003 5:58 pm    Post subject: Reply with quote

Sounds great Prakash!

Thanks CodeScript and mindpower Very Happy

Vic

_________________
phpBB Development Team
Back to top
View user's profile Send private message Visit poster's website
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Mon Sep 15, 2003 6:26 pm    Post subject: Reply with quote

mindpower wrote:
There is a way around this since the bitmap is XOR'ed to show the bitmap when selected make a copy of your bitmap that is already XOR'ed

I already considered this - bitmap looks OK but highlighting aroung the bitmap (top,bottom,sides) make it look ugly Sad . In office syle menus no highlighting occur at all in the bitmap region.
Prakash great work, Just wondering is it likely freeware or shareware ?

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Mon Sep 15, 2003 6:33 pm    Post subject: Reply with quote

Very cool Prakash. So the menu will be a true popup menu, like when one right clicks on a bitmap? Will variables be able to be used like the Dialog Popup so the menus can be dynamic?

i.e.
Code:

%%popup = Item 1|Item 2|Item 3
dialog popup, %%popup


Thanks

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Mon Sep 15, 2003 7:44 pm    Post subject: Reply with quote

Dll will be shareware, as to dynamic popup's; I'll need to take a look. Either way labels will need to be defined within the script for the click events.
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Mon Sep 15, 2003 7:49 pm    Post subject: Reply with quote

PGWARE wrote:
I'll try to put together a popup dll using the office menu look. It will support glyphs of course - vds resource file, as standard resource within exe or linked direct to a file. It will also support unlimited sub-menus. I'll see if I can add in checkbox/radio support too.


NICE!! Very Happy Thumbs Up

I'll really look forward to that. Very Happy Does the component you use support only
menus or do you think you could add in some things like buttons, bitbtns,
radios and checks? Very Happy

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Tue Sep 16, 2003 2:46 am    Post subject: Reply with quote

Ok here's the progress the new dll:

The dll is at 98% completion. I'll detail the way it can be used and also all features, then detail what else is being added in which constitutes the other 2%.


Stuff done:

- Unlimited menu items
- Unlimited submenu items
- Unlimited sub-sub-sub (infinite) menus
- Ability to use glyphs
- Ability to place a CHECK next to an item
- Ability to place a CHECK with RADIO style next to an item
- Ability to show HotKey/Shortcuts
- Ability to add a seperator between menu items
- Ability to use variables to define menu items and options
- Ability for the Glyph to be loaded from a vds resource file, from the exe resource (vds 5 only), or directly from a bitmap file.
- Events triggered by menu CAPTION+MENU
- Allows you to use the OFFICE style (default) or use the style NORMAL for normal popups (no office style)


Ok here is the syntax:
Code:

POPUP My &Menu;CTRL+F;menu.bmp;0;0;0;0|Menu 2;CTRL+C|>|Sub Menu Item;Shift+C|-|Another Item|<|Back To original;ALT+D


the syntax for each menu item:

CAPTION;SHORTCUT;GLYPH;RADIO STYLE;CHECKED;DEFAULT;DISABLED

You do not have to use each option, as in my example above I used some options and didn't for others. This allows you to make it easier for yourself if you don't want to define each menu item option.

You then seperate each menu item with a | character. You create submenus by using the > character by itself, you then can go back to original menu by use the < character by itself. This allows you to define menu's, and infinite submenus. Of course the - by itself will be a seperator menu item.


What Needs To Be Done:

- Check for any outstanding bugs;
- Write up documentation and packaging
Back to top
View user's profile Send private message
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Tue Sep 16, 2003 8:41 am    Post subject: Reply with quote

sounds good pgware...any idea on the price at this stage?

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Vic D'Elfant
Past Contributor
Past Contributor


Joined: 26 Jun 2002
Posts: 673
Location: The Netherlands

PostPosted: Tue Sep 16, 2003 9:24 am    Post subject: Reply with quote

Sounds very good Prakash Very Happy!

I'm also very interested in the price of it...

_________________
phpBB Development Team
Back to top
View user's profile Send private message Visit poster's website
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Tue Sep 16, 2003 9:32 am    Post subject: Reply with quote

How is it determined where the menu pops up. In other words, if you pop up the menu from a tray icon click event, will it appear in the right place?
_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Tue Sep 16, 2003 11:12 am    Post subject: Reply with quote

Very cool! Looking forward to it Exclamation
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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