Ooops
October 26, 2020, 12:29:33 AM

Author Topic: MultiColumn-Listbox possible?  (Read 399 times)

Offline hackball

  • Jr. Member
  • **
  • Posts: 37
MultiColumn-Listbox possible?
« on: April 26, 2020, 10:13:52 PM »
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?

Offline GW

  • Full Member
  • ***
  • Posts: 202
Re: MultiColumn-Listbox possible?
« Reply #1 on: April 28, 2020, 06:35:03 AM »
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.

Offline hackball

  • Jr. Member
  • **
  • Posts: 37
Re: MultiColumn-Listbox possible?
« Reply #2 on: April 28, 2020, 09:24:48 AM »
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

Offline hackball

  • Jr. Member
  • **
  • Posts: 37
Re: MultiColumn-Listbox possible?
« Reply #3 on: April 28, 2020, 11:41:57 AM »
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

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal