Article View: comp.sys.next.programmer
Article #61Disabling buttons in PrintPanel?
From: Steve Johnson
Date: Thu, 29 Oct 1992 22:40
Date: Thu, 29 Oct 1992 22:40
15 lines
1189 bytes
1189 bytes
I'm writing an app that opens a PrintPanel. In the PrintPanel I would like to disable the Save, Preview, and FAX keys. The problem is when I do [save setEnabled:NO]; in my method "setButtons," the state returned by isEnabled changes from 1 to 0 before the "runModal" call; however, the button is enabled when the panel is drawn. The same is true for the Preview & FAX buttons. However, I am able to disable the Cancel button with this method. You might notice that the Preview app will disable the Preview button. I'm running NS 2.1. Any ideas are greatly appreciated. - Steve Johnson, Systems Manager, Dept of Mathematics, Texas A&M University Steve.Johnson@math.tamu.edu no NeXTmail, please
Technical Details
Message-ID:
<1992Oct29.224039.27379@tamsun.tamu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!ukma!darwin.sura.net!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!tamsun.tamu.edu!newsShow Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!ukma!darwin.sura.net!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!tamsun.tamu.edu!news From: Steve.Johnson@math.tamu.edu (Steve Johnson) Subject: Disabling buttons in PrintPanel? Message-ID: <1992Oct29.224039.27379@tamsun.tamu.edu> Keywords: button PrintPanel Sender: news@tamsun.tamu.edu (Read News) Organization: Texas A&M University, College Station Date: Thu, 29 Oct 1992 22:40:39 GMT Lines: 15