Article View: comp.sys.mac.oop.powerplant
Article #10LDataBrowser (again!)
From: Anders Ulfheden
Date: Thu, 08 Apr 2004 18:31
Date: Thu, 08 Apr 2004 18:31
48 lines
2705 bytes
2705 bytes
Hi all, I have modified LDataBrowser (sample from the old Apple Carbon SDK) and is running this in a Mach-O PowerPlant app in 10.3.3. Sorting works, text editing works, fonts & TextTraits works. And even custom databrowser items start to work. But I still have some problems remaining. When the LDataBrowser is placed inside another Control, like LTextGroupBox, LTabsControl or similar, strange things happen. 1) The dropping of columns (to reorder them) stops working. Dragging works, but the dragged column snaps back to its' original position immideately. Accoring to Carbon-Developers Mailing list, this has been filed in radar as bug #2849287. However, I don't know how to look this up and find out if there is any workaround. I have called SetAutomaticControlDragTrackingEnabledForWindow(). 2) Keyboard menu-handling (Cut, Paste, Select All, etc) doesn't work. 3) Dragging data into the browser doesn't work... Has anybody managed to fix LDataBrowser's functionality inside other controls? Can adding of Carbon Event-handlers help? Can anyone also explain the technical reason for this behaviour? I have tried to dump the Control Hierarchy with ::DumpControlHierarchy(), but I can't see any difference between a databrowser not embedded into another control (i.e that works) and a databrowser embedded in a LTextGroupBox (that doesn't work). -- <rant> I whish I could turn to PPx, but since PPx doesn't have support for DataBrowser yet, nor PPx is ready for serious development IMO, it's no option. I wish I could turn to Cocoa, but that would require rewriting the most of the app... Such a mess. </rant> Regards, /Anders
Technical Details
Message-ID:
<40468abe.0404081031.6c5fba23@posting.google.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f635e,6094422e6e5ba37c,start X-Google-Attributes: gidf635e,public X-Google-Thread: 10bcce,6094422e6e5ba37c,start X-Google-Attributes: gid10bcce,public X-Google-Thread: f7f77,6094422e6e5ba37c,start X-Google-Attributes: gidf7f77,public X-Google-ArrivalTime: 2004-04-08 11:31:33 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail From: ulfis@macula.se (Anders Ulfheden) Newsgroups: comp.sys.mac.oop.powerplant,comp.sys.mac.programmer.codewarrior,codewarrior.mac Subject: LDataBrowser (again!) Date: 8 Apr 2004 11:31:32 -0700 Organization: http://groups.google.com Lines: 48 Message-ID: <40468abe.0404081031.6c5fba23@posting.google.com> NNTP-Posting-Host: 217.215.94.184 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1081449093 2802 127.0.0.1 (8 Apr 2004 18:31:33 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 8 Apr 2004 18:31:33 +0000 (UTC)