Action Button in a table

Forums for specific tips, techniques and example code
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Action Button in a table

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:23 pm

by Torrie Moore >> Fri, 31 Mar 2000 0:31:51 GMT

Hi

I ant to put an ellipse button in a table cell similar to the button that appears when the inputType of the cell is set to a combo box. Instead of dropping down a combo box it would fire an event that would allow me to say display a new form. Has anyone tried to do something similar

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Action Button in a table

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:23 pm

by Allistar Melville >> Fri, 31 Mar 2000 9:48:17 GMT

One of our table subclasses places all sorts of custom controls in
cells on the table (including new drop-down type controls, date
controls and buttons).

Placing the control in the cell is easy enough (just create the
control transiently, set the left and top to align with the cell, set
the parent to the table and add the control to the form).

It becomes a lot trickier if you only want that control to be visible when that cell has focus. You then have to put code on the
rowColumnChg event, the scrolled events, the lost and got focus
events. Having said that it is possible.

Allistar.

------------------------------------------------------------------
Allistar Melville
Software Developer
Auckland, NEW ZEALAND

Greentree International,
Developer of Greentree Financial Software. ------------------------------------------------------------------


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 4 guests