| View previous topic :: View next topic |
| Author |
Message |
Vic D'Elfant Past Contributor


Joined: 26 Jun 2002 Posts: 673 Location: The Netherlands
|
Posted: Mon Sep 15, 2003 11:16 am Post subject: Menu items |
|
|
Hi all,
I've two menu-related questions in one topic :
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 |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Mon Sep 15, 2003 11:35 am Post subject: Re: Menu items |
|
|
| 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 |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Mon Sep 15, 2003 1:13 pm Post subject: |
|
|
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 .
http://forum.vdsworld.com/viewtopic.php?t=1928
I was planning a dsu when I get time don't know when. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Mon Sep 15, 2003 2:31 pm Post subject: |
|
|
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 |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Mon Sep 15, 2003 3:55 pm Post subject: |
|
|
| 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 |
|
 |
Vic D'Elfant Past Contributor


Joined: 26 Jun 2002 Posts: 673 Location: The Netherlands
|
Posted: Mon Sep 15, 2003 5:58 pm Post subject: |
|
|
Sounds great Prakash!
Thanks CodeScript and mindpower
Vic _________________ phpBB Development Team |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Mon Sep 15, 2003 6:26 pm Post subject: |
|
|
| 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 . 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
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Mon Sep 15, 2003 6:33 pm Post subject: |
|
|
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 |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Mon Sep 15, 2003 7:44 pm Post subject: |
|
|
| 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 |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Mon Sep 15, 2003 7:49 pm Post subject: |
|
|
| 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!!
I'll really look forward to that. Does the component you use support only
menus or do you think you could add in some things like buttons, bitbtns,
radios and checks?  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Tue Sep 16, 2003 2:46 am Post subject: |
|
|
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 |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Tue Sep 16, 2003 8:41 am Post subject: |
|
|
sounds good pgware...any idea on the price at this stage?
serge _________________
|
|
| Back to top |
|
 |
Vic D'Elfant Past Contributor


Joined: 26 Jun 2002 Posts: 673 Location: The Netherlands
|
Posted: Tue Sep 16, 2003 9:24 am Post subject: |
|
|
Sounds very good Prakash !
I'm also very interested in the price of it... _________________ phpBB Development Team |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Tue Sep 16, 2003 9:32 am Post subject: |
|
|
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 |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Tue Sep 16, 2003 11:12 am Post subject: |
|
|
Very cool! Looking forward to it  _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
|