Navigation:  The Buzz > Forms and Controls > Tables >

Multi-Marking

Previous pageReturn to chapter overviewNext page

Dec 21, 2007   Button

Just trying to understand something.

I have a table and I am trying to implement Multi-marking. The selection

process (marking) is a bit 'confusing' or simply not working the way I need

/desire it.

 

On my screen I display a table, of course, and beside it I display a few

additional fields from the current row. For example I display an email

address and I have a button to send an email to that address. This all works

great before I turn on Multi-marking for the table and a column. I have

other buttons as well that call other processes to handle a single record.

 

With MM turned on everything works fine if the user scrolls up and down the

table using the up/down arrow keys or uses the mouse to click a row in the

non-marking column (only 2 columns, 1 set for marking, the other not).

Navigating in this fashion leaves MMCOUNT at 0.

 

However if the user uses the mouse and clicks a row but clicks the marking

column (MMCOUNT goes to 1) all my buttons stop working. Its like MM eats the

event of the buttons being clicked.

 

I anticipated 'enabling' my buttons to be available if MMCOUNT was 0 or 1,

but it seems that as soon as MMCOUNT is greater than 0 the MMprocess is

somehow the only thing which will react. BTW.. I haven't even begun to

figure out how to deal with a multi-marked set of records. That was to be my

next task, but I can't see continuing with this if it only works this way.

 

Surely there's something simple I am missing about how this is supposed to

work.

 

TIA and looking forward to another insightful, or at least entertaining

'shermism'. :-))

 

Brian Scoffield

 

If I recall correctly: Try removing the Ctrl:XXXX from the handler that services the button press (and so you have to use a seperate user event for each button).

 

Can be wrong though :)

 

Greetings,

 

Ramon de Wit

 

Thank you.

 

That seems to get me around the problem.

 

Brian Scoffield

 


Page url: http://www.magic-iug.com/MIUGWeb3/index.html?hm_multi_marking.htm