Can the scrollbar on a list-box%
be hidden if there is nothing to scroll?
Or even more important.. can a message%
receive events like a mouse click?
@dbriemann I think there’s not auto-hiding but you can turn them on and off when the size changes
I realized that I have to create my own list
here anyways. What I want are items that look similar to this
I managed to do the layout for this item now by using a mix of horizontal-containers, vertical-containers and messages. Now I need to figure out how to listen for clicks on these components.
You may be able to detect clicks via on-subbwindow-event
, but I forget the detail or how much variation there is across platforms.
There’s also mrlib/hierlist
, which has an 'auto-vscroll
style. It works in the snip world, so probably better for cases where you want to customize the way items behave.
Am I correct that I cannot register callbacks for events on message%
s? Do I have to derive a class from message%
and override the callback functions? Also is there a way to change e.g. the background color of a panel%
or message%
That right - you’d have to derive a class and override. There is no way to change the background color (because GUI toolkits don’t uniformly provide that option). When you want that level of control, a canvas or editor canvas is the way to go, and that’s how hierlist works.
ok thanks for all the information. have to think about that now and try things :slightly_smiling_face: