Ooops
October 17, 2021, 06:36:02

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

Offline hackball

  • Jr. Member
  • **
  • Posts: 38
MultiColumn-Listbox possible?
« on: April 26, 2020, 22:13:52 »
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: 222
Re: MultiColumn-Listbox possible?
« Reply #1 on: April 28, 2020, 06:35:03 »
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: 38
Re: MultiColumn-Listbox possible?
« Reply #2 on: April 28, 2020, 09:24:48 »
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
« Last Edit: April 28, 2020, 09:40:30 by hackball »

Offline hackball

  • Jr. Member
  • **
  • Posts: 38
Re: MultiColumn-Listbox possible?
« Reply #3 on: April 28, 2020, 11:41:57 »
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
« Last Edit: April 29, 2020, 01:00:04 by hackball »

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal