JadeRichText in Table.cellControl

Forums for specific tips, techniques and example code
peta
Posts: 1
Joined: Wed Dec 23, 2009 11:54 am
Location: Auckland

JadeRichText in Table.cellControl

Postby peta » Fri Jan 22, 2010 7:29 am

Hi,

I am trying to make a special table that uses JadeRichText control in each cell.

I have tried the following code, but the issue is that only the currently accessed cell is shown as JadeRichText control, the rest of the cells are just shown as standard table cells.

Code: Select all

vars rt : JadeRichText; begin foreach r in 2 to rows do foreach c in 2 to columns do create rt transient; form.addControl(rt); accessCell(r, c).cellControl := rt; endforeach; endforeach; end;
What I'd like to achieve is to get all cells to be shown as JadeRichText control at all time, so the text always shown in richtext format. (bold, colour.. etc).

Is there anyway to turn off this behaviour of hiding controls that are not on focus on a table?

Many thanks,

Peta

User avatar
BeeJay
Posts: 312
Joined: Tue Jun 30, 2009 2:42 pm
Location: Christchurch, NZ

Re: JadeRichText in Table.cellControl

Postby BeeJay » Fri Jan 22, 2010 12:46 pm

The cellControl is only displayed when the cell has focus, as you've already discovered, and there is no way to change this behaviour. Note: For this reason you would normally re-use the one control as the cell control rather than creating a separate cell control for each and every cell as your sample code is currently doing.

Unfortunately you'll have to find an alternate way to produce the desired behaviour.

Cheers,
BeeJay.


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 2 guests

cron