[RB] Popup menu inside of cell of listbox

Karen keatk at comcast.net
Sun Oct 5 11:54:03 CDT 2003


On Sunday, October 5, 2003, at 11:10  AM, Ruslan Zasukhin wrote:
> Anybody know if it is possible in the RB listbox or in Stylegrid
> Insert popup menu into separate cell?
>

It is not supported in native RB....

However it would be relatively easy to get that that functionality 
using the listbox events by drawing a disclosure triangle(or other 
similar widget) yourself in the cell backgroundPaint or CellTextPaint 
events, offsetting the text drawing in the CellTextPaint and using 
HierPop in conjunction with the CellClick Event...

I was thinking of doing this in a listbox subclass ... until RS 
announced Linux support. That approach would work well, but would not 
work on Linux...

It's sort of doable with the RB contextual menu too... But Using The RB 
contextual menu would lose the ability to have hierarchical menus and 
would not look right as you can't control the position it appears.. and 
it would not be nearly as convenient to setup/package since the listbox 
can not instantiate a contextual menu on it's own as RB contextual 
menus are controls.

RB contextual menus are very feature poor unfortunately.

- karen



More information about the Valentina mailing list