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 


Enhanced Menu DSU
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Visual DialogScript 5 Units
View previous topic :: View next topic  
Author Message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1054
Location: India

PostPosted: Thu Oct 09, 2003 1:44 pm    Post subject: Enhanced Menu DSU Reply with quote

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
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: 1711
Location: Space and Time

PostPosted: Thu Oct 09, 2003 1:53 pm    Post subject: Reply with quote

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://vdsfreak.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1054
Location: India

PostPosted: Thu Oct 09, 2003 1:56 pm    Post subject: Reply with quote

I will test on Win 98. I am not getting this on XP though.
Does the compiled exe work OK ?

_________________
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: 1711
Location: Space and Time

PostPosted: Thu Oct 09, 2003 2:01 pm    Post subject: Reply with quote

Yes, If I compile it, run then close I don't get the error.
_________________
Chris
Http://vdsfreak.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1054
Location: India

PostPosted: Thu Oct 09, 2003 2:16 pm    Post subject: Reply with quote

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
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
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Thu Oct 09, 2003 3:13 pm    Post subject: Reply with quote

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. Wink
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Garrett
Moderator Team


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

PostPosted: Thu Oct 09, 2003 6:36 pm    Post subject: Reply with quote

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.)
Necroprogramming FTW! - "Wait.. Is necroprogramming legal?"
http://www.freewarehome.com <-- Freeware listings since 1996
Back to top
View user's profile Send private message
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1537

PostPosted: Thu Oct 09, 2003 7:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1054
Location: India

PostPosted: Fri Oct 10, 2003 1:49 am    Post subject: Reply with quote

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
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
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1054
Location: India

PostPosted: Fri Oct 10, 2003 11:11 am    Post subject: Reply with quote

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 Crying or Very sad
These massages are few too Confused )

Any way bear with me for the convoluted way I am implementing (it's not my fault Wink
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
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
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Fri Oct 10, 2003 11:36 am    Post subject: Reply with quote

Quote:
Yes !!! It is possible.


Cool! I know why your title is API guru now! Laughing

Thanks!
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1054
Location: India

PostPosted: Fri Oct 10, 2003 4:58 pm    Post subject: Reply with quote

Hi Marty
Nice to know U liked it Smile . BTW I am learning API like anyone else.
I have updated the unit to support unlimited popup menus(limited only by available vds variables Wink 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
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
Hortalonus
Valued Contributor
Valued Contributor


Joined: 15 Mar 2002
Posts: 344
Location: Western USA

PostPosted: Fri Oct 10, 2003 5:24 pm    Post subject: Reply with quote

You are the MAN CodeScript! Very Happy
_________________
"ah, come take my hand... we're ridin' out tonight to face the promised land"
Get a free iPod mp3 player...
Back to top
View user's profile Send private message Send e-mail
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Oct 10, 2003 6:59 pm    Post subject: Reply with quote

Very Happy
_________________
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: Fri Oct 10, 2003 9:26 pm    Post subject: Reply with quote

Woa! Excellent! I love this!...

Just cant seem to run the thing here.. Will check why this weekend..


Thanks!
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Visual DialogScript 5 Units All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
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