Hi,
I have created a listbox using CreateListBoxControl() and it works ok,
but when I try to move or resize it using SetControlBounds() the
display is seriously messed up.
Moving and resizing other controls like buttons, check boxes, textedit
control, databrowsers, webviews, etc.. works fine, but with the listbox
I have serious problems.
I have googled for more information on this topic, but found very
little useful material. The only thing I found was some bizarre
suggestion that one should repeatedly call LSize, SetListViewBounds,
MoveControl, SizeControl and SetControlBounds (more than once each) for
it to work. I tried to do so, but was not successful.
I am running MacOS X (10.3.9).
All help is appreciated,
Peter
Uli Kusterer - 15 Jan 2006 17:43 GMT
> I have created a listbox using CreateListBoxControl() and it works ok,
> but when I try to move or resize it using SetControlBounds() the
> display is seriously messed up.
AFAIK list boxes are a legacy technology in Carbon (they come from
Classic MacOS). What you really want in most cases is a data browser.
I don't think the list box control was ever finished to be a really
working new-style control (but don't take my word for it -- I moved to
Cocoa quite a few years ago and I might've missed some obvious Carbon
innovations).
HTH,
-- Uli
http://www.zathras.de