Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dump the dialog manager



The one reason why I didn't do this is that it was just easier for me to hook up additional data if I was the one instantiating the controls. For example, I have resources for things like specifying control help, control font styles, cancel, ok buttons, edit field max lengths and so forth. When I call GetNewControl I can then look for this additional resources and set additional control properties (including the control ID) right then there. I could also post-process the dialog, but it just seemed easier to cut out the middle man.

Soon I'm going to investigate nibs, that's really where I want to go. I hope nibs allow for arbitrary custom control properties, that'd be ideal for me.

Bryan

On Thursday, February 28, 2002, at 12:33 PM, Spec Bowers wrote:

On Wednesday, February 27, 2002, at 23:20, Bryan Pietrzak wrote:
If you have the luxury, dump the dialog manager and just use windows and
controls. The only challenge here is instantiating windows and controls,



It's simpler just to use GetNewDialog to instantiate your window and controls. I create a standard DLOG and DITL, and a dlgx resource to specify "Use theme controls" and "Use control hierarchy" That way, every dialog item is a control. After calling GetNewDialog I call GetDialogItemAsControl to get a ControlRef for each of my items. In effect, I have instantiated a window with controls.
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: dump the dialog manager (From: Spec Bowers <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.