View previous topic :: View next topic |
Author |
Message |
Rubes_sw Valued Contributor
Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Wed May 18, 2005 11:44 am Post subject: Table Element |
|
|
Would it be possible, to:
When you have the CLICK parameter on a table element, not to goto to the CLICKTABLE1 event when you load or add information into the table. But only generate an event when the user actually clicks on the table.
I do use a workaround for this, but it would be nice not to. (saves a few extra lines of code)
Nathan |
|
Back to top |
|
|
jules Professional Member
Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Wed May 18, 2005 1:34 pm Post subject: |
|
|
I know what you mean, but it isn't possible to suppress the events, because the table control generates the events when items are added, and the VDS code that receives them can't tell what caused them, so it just has to pass them on as a CLICK event.
As I recall it, the problem is because we have to treat events that change the selected item the same as mouse click events, in order to have consistency with ordinary list elements, because otherwise you won't get CLICK notifications if the user selects an item by scrolling using the cursor keys instead of clicking on it. It's the item change events that get generated when items are added. The table element is a Microsoft common control, not a native Delphi control, so it is not possible to change the way it works. But I don't think adding a while @event() / wend is such a big deal, is it? _________________ The Tech Pro
www.tech-pro.net |
|
Back to top |
|
|
|
|
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
|
|