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 


Who has a Solution for the Right-Click/Select Bug?

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Døc
Newbie


Joined: 12 Sep 2003
Posts: 9
Location: Charleston, SC, USA

PostPosted: Wed Feb 25, 2004 10:12 pm    Post subject: Who has a Solution for the Right-Click/Select Bug? Reply with quote

I have written a VDS5 app that works very well...except that it suffers from the dreaded VDS Right-Click/Select Bug.

If you haven't heard, if you attempt to detect and respond to a right-click event in VDS for a list item that is already selected (via left-click most likely) the event is not detected.

Thus, my context-sensitive pop-up menu fails to appear unless you de-select the item you want to right-click by left-clicking a different list item first.

It is an annoying problem which I would prefer my users not have to deal with.

Has anyone discovered a robust work-around for this problem?
Back to top
View user's profile Send private message
vdsalchemist
Admin Team


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

PostPosted: Wed Feb 25, 2004 11:03 pm    Post subject: Reply with quote

Hi Doc,
I think if I am not mistaken the new vdsgui.dll by CodeScript makes it possible for a right click in a list? CodeScript can you speak to this?

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


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Thu Feb 26, 2004 1:49 am    Post subject: Reply with quote

Hi Døc
You can take a look at VDSGUI DLL
http://www.vdsworld.com/index.php?page=download&fileid=385
It has a multicolored bitlist with extended seletion options.
You can select using:
1. Right mouse button (single/multiple items)
2. Select multiple elements (multi-style) using Shift anf Ctrl keys.
3. Additionally you can customize many other things like glyph(image) against each item having unlimited widths, different back and text color for each item, different highlight color for each item (yes!), different height for each item.
4. It supports tab stops so that you can give a appearance like subitems under an item.

Other than that it has a lot of GUI enhancements like Balloon tool tips.


_________________
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
Døc
Newbie


Joined: 12 Sep 2003
Posts: 9
Location: Charleston, SC, USA

PostPosted: Thu Feb 26, 2004 1:19 pm    Post subject: Actually, It is a Table Reply with quote

My application uses the Table element. That's where the bug is affecting me.

Will the next version of VDSGUI do tables? Smile
Back to top
View user's profile Send private message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Thu Feb 26, 2004 5:38 pm    Post subject: Reply with quote

May be I will consider addding a colored listview aka Table in future.
_________________
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
jules
Professional Member
Professional Member


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

PostPosted: Thu Feb 26, 2004 7:54 pm    Post subject: Reply with quote

One of my programs is affected by this too, although as I'm no longer actively developing stuff in VDS I'm not losing too much sleep over it.
The reason for it is that in order to generate an event when the table selection is changed using the cursor keys as well as by clicking, the event is fired by the list change event. If the list click event was used to fire the VDS event as well, you got two TABLECLICK events, one because you clicked, the other because the selection changed. So the simple solution at the time seemed to be just to use the change event.
It would be easiest to fix the error by changing a bit of code in the VDS runtime. I suppose that people have reported it...

_________________
The Tech Pro
www.tech-pro.net
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: Fri Feb 27, 2004 12:24 am    Post subject: Reply with quote

Hmmm,
Maybe a simple message hook would work just as a work around until something better comes along? If I get a chance I may throw some code together to do this.

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


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Fri Feb 27, 2004 2:41 am    Post subject: Reply with quote

mindpower one thing though - I think vdsruntime is already hooking the table (rather than sub/super classing). Sometimes it may not be be possible to install a hook before the runtime. I faced this problem while trying hook VDS5 DIRDLG - which is hooked by runtime for adding "New Folder" button and responding to it.
May be by setting no click options in VDS this may be averted if it should ever trouble you. Good luck hooking.

_________________
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: Sat Feb 28, 2004 3:12 am    Post subject: Reply with quote

CodeScript,
You may be right about the runtime's message loop. Now if someone is brave enough they could add clicking to the example I have with Gadget and the listview control which we all know that is what VDS uses for it's table control Wink
Also there is both Tommy's vdslists.dll that has list controls and I think that PGWare's vdsobj.dll has a Grid control which you should be able to make it function like the VDS table. There is so many options so little time.... Razz

_________________
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
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
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