It's easy (relatively) to make a multi-column ListBox in RB (any),
but I'm at a loss as to how to create a usable multi-column ListBox
in VB 6. The only thing that seems to be close is the ListView
control which is overkill. And it complicates my controller class
design as I now have to make a 'call-through' method ('FillListbox
()') that then calls two private methods; either 'FillSingleListbox
()' or 'FillMultiListView()' depending on the setting of a boolean
instance variable that is exposed via a public property, and is set
by the main window (which owns the controller object, and the
controls it has outlets for). It also necessitates two different
instance variables to hold references to a ListBox and to a ListView.
In RB, this wouldn't be a problem as I could subclass both ListBox
and ListView (assuming RB HAD a ListView control), create a class
interface to factor the common functionality, then make the ListBox/
ListView controls as my subclasses. I could then simplify the
controller class significantly as I'd only need just the one
'FillListbox()' method!
My problem is I don't know how to get VB6 multi-column listboxes'
column widths or headers to work. Any VB 6 experts out there?
A pity I can't encapsulate an RB Listbox into a DLL that I could
then use in VB 6... But even if I could, the internal implementation
details of RB strings would throw the whole thing for a big
(infinite) loop - i.e. the system would crash or hang. :(
And while I'm on the subject of VB bashing, I'm also pissed that
there seems to be no equivalent to RB's "LockXXX" properties (i.e.
LockLeft, LockTop, etc...) Or is there?
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>