Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Archive » net.micro.mac » GetIText()
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
GetIText() [message #112465] Mon, 16 September 2013 13:46
eric is currently offline  eric
Messages: 208
Registered: February 2013
Karma: 0
Senior Member
Message-ID: <622@plus5.UUCP>
Date: Mon, 4-Mar-85 02:45:57 EST
Article-I.D.: plus5.622
Posted: Mon Mar  4 02:45:57 1985
Date-Received: Mon, 4-Mar-85 17:06:09 EST
Distribution: na
Organization: Plus Five Computer Services, St. Louis
Lines: 26

I have had an interesting experience.  I wanted to creat a dialog box
with an editText filed in it, so that I could read a string into a
C program.  I created the dialog with the dialog alert editor, and then
used ModalDialog to let the Mac do the dirty work.  After return, I use
GetDItem to select the editText item, and then use GetIText() to get the
actual string.  The program works about 50% of the time.  I cut out
everything except the dialog stuff to make sure;  it bombs inside or
around DisposDialog I think...  debugging to the printer port dies in
our around there.

I think that I might not understand the ramifications of having 
GetNewDialog perform the heap allocation for me.  Does somebody out there
have C code that uses a dialog created externally and loaded as a
resource, that includes an editable text field with a default value,
and will place the value returned from ModalDialog() calls via the 
GetDItem() and GetIText() calls?

If so, could you send me a peek at it so I can sleep at night?

eric

-- 
..!ihnp4!wucs!plus5!eric	
..!ihnp4!plus5!eric
(314) 725-9492

	
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Setting modem baud rate from MacPascal
Next Topic: Intro to Mac books
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Apr 19 06:41:12 EDT 2024

Total time taken to generate the page: 0.41003 seconds