View previous topic :: View next topic |
Author |
Message |
CodeScript Moderator Team
Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Thu Oct 09, 2003 1:44 pm Post subject: Enhanced Menu DSU |
|
|
Enhanced Menu DSU
==================
Ever bored of the appearance of VDS menu ?
This Unit gives you the ability to:
1.Create Scrollable Menu.
2.Change the background of menu:
a. Custom colors and texture.
b. Bitmaps as background.
3.Change the color/add bitmap to
menu bar background to match it with the
color of your dialog.
Disclaimer: Use at your own risk
Download here:
http://codescript.vdsworld.com/VDS5src/EnhMenu.zip _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
Back to top |
|
|
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1751 Location: Space and Time
|
Posted: Thu Oct 09, 2003 1:53 pm Post subject: |
|
|
I'm getting an error "Stopped at line 10 in file ENDMENU.dsu, Missing END or ELSE" when closing your example from the IDE. I'm using Win 98 SE _________________ Chris
Http://theblindhouse.com |
|
Back to top |
|
|
CodeScript Moderator Team
Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Thu Oct 09, 2003 1:56 pm Post subject: |
|
|
I will test on Win 98. I am not getting this on XP though.
Does the compiled exe work OK ? _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
Back to top |
|
|
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1751 Location: Space and Time
|
Posted: Thu Oct 09, 2003 2:01 pm Post subject: |
|
|
Yes, If I compile it, run then close I don't get the error. _________________ Chris
Http://theblindhouse.com |
|
Back to top |
|
|
CodeScript Moderator Team
Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Thu Oct 09, 2003 2:16 pm Post subject: |
|
|
I too got it on XP. Just recompiling the DSU solved the problem. mostly DSU got corrupted ??
Now I think it should work OK. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
Back to top |
|
|
marty Professional Member
Joined: 10 May 2001 Posts: 789
|
Posted: Thu Oct 09, 2003 3:13 pm Post subject: |
|
|
Woa cool stuff!
Just wondering do you think it could also be used for POPUP menus?
Thanks CodeScript.. you always amaze me with your tricks. |
|
Back to top |
|
|
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Thu Oct 09, 2003 6:36 pm Post subject: |
|
|
Well, in combination with the ssmenu.dll, maybe you could use this
for popups... Then again, I haven't tried this with normal vds popup
menus yet.
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
Back to top |
|
|
PGWARE Web Host
Joined: 29 Dec 2001 Posts: 1562
|
Posted: Thu Oct 09, 2003 7:48 pm Post subject: |
|
|
I'm not sure if this is possible with popup's, it may be though. You would have to get the menu handle id from the popup, the thing is popups are created in realtime, anytime a popup is created its menu handle id is unique. You would have to find a way to get the menu handle id from the popup before it's displayed otherwise it may not redraw correctly or cause flickers when it redraws. Currently VDS doesn't provide a way to get a menu handle id from either menu's or popup's. But using the winapi you can get a menu handle id from a real MENU. Since menus are already built on a form when the form is created the menu handle while unique can be queried, since a popup is generated in real time it's menu handle can't be obtained until it is visible/created. |
|
Back to top |
|
|
CodeScript Moderator Team
Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Fri Oct 10, 2003 1:49 am Post subject: |
|
|
I haven't looked into whether VDS calls destroy menu or delete a popup menu to remove a popup menu if it's latter then I think there is no way to do this for a popup menu apart from subclassing using a dll or creating a popupmenu ourselves using API in toto. Option msgevent with handled doesnot help as all these messages are ignored. I will have a look for a no dll solution. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
Back to top |
|
|
CodeScript Moderator Team
Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Fri Oct 10, 2003 11:11 am Post subject: |
|
|
Yes !!! It is possible. Syntax will be different and may be a little complicated to understand but it will work. (I very much wished that OPTION MSGEVENT took WM_COMMAND
These massages are few too )
Any way bear with me for the convoluted way I am implementing (it's not my fault
I will also try to add more options like the postion of popup in relation to cursor(top/bottom) etc.
I will post the update after sometime. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
Back to top |
|
|
marty Professional Member
Joined: 10 May 2001 Posts: 789
|
Posted: Fri Oct 10, 2003 11:36 am Post subject: |
|
|
Quote: | Yes !!! It is possible. |
Cool! I know why your title is API guru now!
Thanks! |
|
Back to top |
|
|
CodeScript Moderator Team
Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Fri Oct 10, 2003 4:58 pm Post subject: |
|
|
Hi Marty
Nice to know U liked it . BTW I am learning API like anyone else.
I have updated the unit to support unlimited popup menus(limited only by available vds variables with back color scroll and bitmap support just like the ones with normal menus.
You can optionally specify the position of the popup too.
http://codescript.vdsworld.com/VDS5src/EnhMenu.zip
Enjoy. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
Back to top |
|
|
Hortalonus Valued Contributor
Joined: 15 Mar 2002 Posts: 344 Location: Western USA
|
Posted: Fri Oct 10, 2003 5:24 pm Post subject: |
|
|
You are the MAN CodeScript! _________________ "ah, come take my hand... we're ridin' out tonight to face the promised land"
Get a free iPod mp3 player... |
|
Back to top |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Fri Oct 10, 2003 6:59 pm Post subject: |
|
|
_________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
marty Professional Member
Joined: 10 May 2001 Posts: 789
|
Posted: Fri Oct 10, 2003 9:26 pm Post subject: |
|
|
Woa! Excellent! I love this!...
Just cant seem to run the thing here.. Will check why this weekend..
Thanks! |
|
Back to top |
|
|
|