Page 1 of 1

DCBROWSE ... DATATOOLTIP

Posted: Tue May 08, 2012 5:21 am
by reganc
I've just realised that the DATATOOLTIP only works if the browse column WHEN clause returns .T.

In my case, the WHEN clause is being used to a skip column that should not be selectable in any way when cell editing is in progress.

The reason I am trying to use a DATATOOLTIP on that column is that it displays the result of a simple calculation and I would like to show how the calculation was arrived at by showing its component parts in the tooltip.

Is there any easy way to do this?

Re: DCBROWSE ... DATATOOLTIP

Posted: Tue May 08, 2012 6:09 am
by Tom
Can you use the PROTECT clause of DCBROWSECOL instead?

Re: DCBROWSE ... DATATOOLTIP

Posted: Tue May 08, 2012 7:26 am
by reganc
Tom wrote:Can you use the PROTECT clause of DCBROWSECOL instead?
Tom

Sorry, but no. It was a nice idea but...

The PROTECT clause simply allows/disallows the cursor entering the actual cell in edit mode.

We want all the other non-entry columns to not gain focus at all during the entry process so that only the cells in the columns that can be edited are selectable. This makes the actual entry process a lot easier for the user.

Thanks anyway.

Re: DCBROWSE ... DATATOOLTIP

Posted: Tue May 08, 2012 8:25 am
by rdonnay
Regan -

The WHEN clause disables the column thus not allowing any kind of events at all including the motion events that would generate the tooltip. You would have to use some other technique.
Show me your code.

Roger