I'm using a gridbox to display files in lines with icons and various
columns for details. I want to be able to select lines with the mouse
and mark the selection in some way, like most file browsers do.
Since I'm using labels I could use the enterwindow, leavewindow, and
button callbacks, but somehow passing arguments to a callback function
would be messy. There might be up to thousands of labels and each of
them would require a callback, and that number gets doubled if the label
is in a frame as the frame and label each have their own mutually
exclusive space. On the other hand using IupCells seems like overkill.
As for coloring the line, placing the label within a frame and setting
the frame background color might work, but I haven't been able to make
it function as it should.
What would be the best way to make a grid layout that works like that?
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users