Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / January 2006



Tip: Looking for answers? Try searching our database.

SetControlBounds on a listbox [carbon]

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Peter - 11 Jan 2006 17:55 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.