| View previous topic :: View next topic |
| Author |
Message |
Døc Newbie

Joined: 12 Sep 2003 Posts: 9 Location: Charleston, SC, USA
|
Posted: Wed Feb 25, 2004 10:12 pm Post subject: Who has a Solution for the Right-Click/Select Bug? |
|
|
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 |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Wed Feb 25, 2004 11:03 pm Post subject: |
|
|
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 |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Thu Feb 26, 2004 1:49 am Post subject: |
|
|
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
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
Døc Newbie

Joined: 12 Sep 2003 Posts: 9 Location: Charleston, SC, USA
|
Posted: Thu Feb 26, 2004 1:19 pm Post subject: Actually, It is a Table |
|
|
My application uses the Table element. That's where the bug is affecting me.
Will the next version of VDSGUI do tables?  |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Thu Feb 26, 2004 5:38 pm Post subject: |
|
|
May be I will consider addding a colored listview aka Table in future. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Thu Feb 26, 2004 7:54 pm Post subject: |
|
|
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 |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Fri Feb 27, 2004 12:24 am Post subject: |
|
|
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 |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Fri Feb 27, 2004 2:41 am Post subject: |
|
|
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
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: Sat Feb 28, 2004 3:12 am Post subject: |
|
|
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
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....  _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
|