Hi All,

>From what I understand, Fl_Table_Row does not have the provision to select a 
>row with a selection color, and then select a range of columns within that row 
>with a different color.

However, due to - what I suspect - is a delay in the redrawing of the table, I 
can temporarily do so (via a handled shortcut key), and this is okay for my 
needs.  However my technique seems to only work from column 1 to column 'y' of 
the table, and not column 'x' to column 'y'.

An example of the table with multiple colors:
http://db.tt/FFmO9hj

I'm doing this with the below code:

this->selection_color(FL_BLUE);
this->select_row(active_row,1);

// Below within handle
if(Fl::event_key()=='h')
{
   this->selection_color(FL_GREEN);
   this->set_selection(this->active_row,1,this->active_row,3);
}

However something like
this->set_selection(this->active_row,3,this->active_row,5);
will not work, and will "highlite" columns 1 through 5 in green.


My question is: Is there another way to do this, is their any other way of 
overlay trickery?  Does the FL_GREEN start at column 1, regardless of 
set_selection because of how Fl_Table works internally?

Any advice is appreciated, this would be a great additional to the program I'm 
building if it can be made to work.

Thanks!


_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to