[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

98.0. "RETURN in the text widget" by BRUTAL::WELLS (Phil Wells) Wed Feb 01 1989 17:06

    In the previous version of this conference, a note was posted
    describing how to get crlf to terminate input for the text widgit.
    
    Could someone please repost it.
    
    Phil

T.RTitleUserPersonal
Name
DateLines
98.1SX4GTO::HOLTKnight of the IguanaTue Oct 03 1989 20:163
    
    If anyone can anwer .0's request, I'd appreciate it.

98.2a solutionKOBAL::SCAERWed Oct 04 1989 19:0311
	To make a <CR> terminate input for a text widget, you can
	override the <CR> translation for the widget.  In the
	action that is called when the user hits <CR> you can
	do whatever is needed to terminate input -- replace the
	text widget with a label, set DwtNeditable to FALSE, unmanage
	it, etc. 

	See note 369.1 in CLT::UIL-DRM for information on how to
	override the <CR> translation for the text widget.

98.3Dialog box defaults this nicelySDSVAX::SWEENEYI was focused when focus wasnt coolThu Oct 05 1989 08:318
    If the dialog box which contains the text widget has a default [OK]
    button then the default translation for <return> will call the activate
    callback for that button, which is a convenient point for the the
    application to read the text widget.
    
    Many applications (although I can't recall which ones) appear to do
    this.

98.4How?FEATHR::BLUEJAYWar is hell - but THIS is rediculous!Thu Oct 05 1989 13:307
um... how do you create a "default [OK] button"? Is there an 
attribute of a dialog box I've missed?

I've been pondering this very thing.

					- Bluejay Adametz

98.5Here's howSDSVAX::SWEENEYI was focused when focus wasnt coolThu Oct 05 1989 13:533
    In my documentation under Low-Level Widget Routines/Dialog Box Popup
    Create/default_button.

98.6FEATHR::BLUEJAYWar is hell - but THIS is rediculous!Thu Oct 05 1989 14:512
Yup - I missed it all right.  Thanks...