need advise on grid like control...

Richard Gaskin ambassador at fourthworld.com
Tue Aug 24 14:16:40 EDT 2004


Andre Garzia wrote:

> Hi Folks,
> 
> I am building a little project manager here. I would like to be able to 
> show a calendar like control so that the user could grasp the big 
> picture of his project, like iCal and MS Project do. I am finding the 
> field control very bad for it, the tabStops thing is horrible to design 
> grids, I must calculate the biggest string, make arcane math to find how 
> much pixels it will take and set the tabstops so that they do not 
> overlap and so on... 

The multi-column grid option built into the engine is designed for 
database-style views, not multi-line cell grids, so yes, attempting to 
make it work like a different type of grid will be some work.

But I believe the formattedWidth function works on chunks, no?  If so, 
it should simplify the arithmetic for determining tabStops.

 > I thought about using the htmlText property and
> render a HTML table, but hey, my fields are not rendering the <table> 
> tag... 

Not yet, but you can vote for it:
<http://www.runrev.com/revolution/developers/bugdatabase/show_bug.cgi?id=1447>

> So, anyone here got an advise? I am planning to make a grid like this:
> * first column is a status column is a status one, it will show a image 
> (red ball or green ball depending on the status)
> * second column is a string with the project task title (yes, variable 
> width...)
> * from the third and beyond, I would like to put the days and color them 
> depending on the context.

If these fields only display a single line you may find the built-in 
multi-column option to be just fine.

If you need multiple lines then creating a separate field for each cell 
may be the way to go.

-- 
  Richard Gaskin
  Fourth World Media Corporation
  ___________________________________________________________
  Ambassador at FourthWorld.com       http://www.FourthWorld.com


More information about the use-livecode mailing list