MultiColumn-Listbox possible?

Started by hackball, April 26, 2020, 22:13:52

Previous topic - Next topic

hackball

Hi guys, i'm new here so please forgive me if this has been solved before.
I am looking for a simple solution for creating a multicolumn listbox in Bmax. The ListBox gadget only lets you add texts as items, not TGadgets, which is unfortunate.I was trying for a while to use the ScrollBox with a panelgroup instead for adding my 'lines' to, but that is of course not going to work in the usual way.
So, how then? Any ideas?

GW

Try Here: https://mojolabs.nz/codearcs.php?code=2293
It been a few years since I used this in a project, and I think I remember needing to fix a small memory leak. but it worked for me.

hackball

#2
Thanx for the answer. I was just messing with it, unfortunately, it depends a lot on Win32, while i am on Mac OS X right now. I'll try and strip it down to the bare minimum to get something on the screen at least: ;)
edit

Just commented out all Msg stuff and Consts that refered to win32/commctrl/user32

hackball

#3
Of course this seems not to work, as the objects are created by sending some msg to the Listview (?) object, specific to Win32 API.So i try and hammer something else together...

Ok, started again with this ScrollPanel thingy. Alignment is not 100% and dragging the separator bars not possible. Have to add mouse sensitivity to those gadgets first, i think.
It is not Apple Style Guide, either. ;D