How do I put Toolbox objects into a table control?

Jan Schenkel janschenkel at yahoo.com
Fri May 19 00:28:48 EDT 2006


--- mfstuart at cox.net wrote:
> Hi all,
> 
> I'm starting to "move along" with learning Studio
> 2.7.
> Although the questions still come.
> 
> How do I put other controls into a table control,
> for example, a check box, or a combo box? That is, a
> column of check boxes.
> If I can, will it allow the end user to do live
> updates to these controls?
> e.g.: if the user clicks on a check box in a table,
> with scripts, can I get it to check and uncheck, at
> the same time changing the data in the table?
> 
> Hope that makes sense.
> 
> TIA,
> Mark
> 

Hi Mark,

There's no 'out of the box' solution in this
situation. But you have a few options:
- replace the table field with a group [the toughest
job, as you'll have to manage a lot of controls, which
in turn causes a slowdown if you have an enormous
amount of cells]
- keep the table field but place a group over the
field that scrolls along with the field and contains
the checkboxes/comboboxes/... [for an example,
download
<http://www.geocities.com/janschenkel/downloads/checkboxlist.zip>]
- use images instead of real controls, display them in
the field using the 'imageSource' property, and do
some fancy footwork using the engine messages
[mouseDown, mouseUp, mouseRelease, linkClicked - and
friends]

Hope this helped,

Jan Schenkel.

Quartam Reports for Revolution
<http://www.quartam.com>

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the use-livecode mailing list