Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!ccu.umanitoba.ca!herald.usask.ca!alberta!ubc-cs!uw-beaver!mit-eddie!wuarchive!usc!elroy.jpl.nasa.gov!ncar!news.miami.edu!umiami!dweisman From: dweisman@umiami.ir.miami.edu (Ordinary Man) Newsgroups: comp.sys.mac.programmer Subject: Re: is it possible to change a default radio button with resedit? Message-ID: <1991Feb13.115518.7818@umiami.ir.miami.edu> Date: 13 Feb 91 16:55:18 GMT References: <1991Feb13.135640.8199@cs.rochester.edu> Organization: Univ of Miami IR Lines: 34 In article <1991Feb13.135640.8199@cs.rochester.edu>, bukys@cs.rochester.edu (Liudvikas Bukys) writes: > In the LaserWriter 6.0.1 driver, the print dialog defaults to "Color/Grayscale" > instead of "Black&White". I would like to change the default to "Black&White". > Is this possible? > > IN SUMMARY: Is it possible to change default on a radio button? > > > Liudvikas Bukys > The default radio button of any dialog of any program is almost always hard-coded (I think they sometimes use 'CNTL' resources). Usually right after the dialog is created, the programmer will call GetDItem for the button and set it's value with SetCtlValue. ResEdit just creates the buttons but it has no way to set any of them. The only thing ResEdit can set to a default, is the default push-button (usually OK or something like that) simply by creating it first. So unless you can hack through the machine code, I doubt there's a way to fix it. That is, unless someone has written an INIT or some such utility that allows this (I'm sorry to say I don't know of any). If anyone *DOES* know of one, I'd like to know what it is. -- /-------------------------------------------------------------------------\ | Dan Weisman - University of Miami - Florida | || || || || | |--------------------------------------------------| || || ||\ /|| | | INTERNET -----> dweisman@umiami.IR.Miami.edu | || || || | || | | BITNET -----> dweisman@umiami | ||||||| || | || | |-------------------------------------------------------------------------| | "The more I get to see, the less I understand..." - Triumph | \_________________________________________________________________________/