[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

926.0. "Limit to # Stext widgets per dialog box ?" by CSC32::S_HALL (VAXC SPR == Noop ?) Mon Jun 12 1989 15:54

    
    Hi,
    
    	Is there any limit to the number of SText widgets in
    	a popup dialog box ?
    
    	I'm writing an application that puts about 54 single-line
    	SText widgets into a popup dialog box.  I'm associating
    	a focus-callback routine with each of the SText widgets,
    	and would like to trigger this routine when I click MB1
    	inside one of them.
    
    	I've gotten this to work with 2 or 3 SText widgets/dialog box,
    	but at this scale, I can't get anything to call back.
    
    	I've tried:
    
    		1) Adding translation tables that specify Button1Down,
    		   and calling AugmentTranslations.
    
    		2) tinkering with sensitive, ancestor-sensitive, and
    		   take-focus all up and down the widget tree.
    
    		3) Forcing the focus callback in the attribute list
    		   after creating the widget (I know this is a 'no-no'
    		   but was trying to get _something_ to change).
    
    The odd thing is that the parent dialog-box gets highlighted when
    I click inside one of the SText widget children.  This seems to
    indicate that  the event is noticed somewhere.
    
    Any ideas about what could be blocking these callbacks ?
    
    
    Steve H

T.RTitleUserPersonal
Name
DateLines
926.1CASEE::LACROIXGone with the windTue Jun 13 1989 03:398
    I don't know about the specific problem you are experiencing (you may
    be hitting a bug somewhere), but having 54 text widgets in a single
    dialog box is going to be VERY expensive, in terms of memory and
    startup time. Consider working some more on the graphical design of
    your dialog box to see if you can eliminate most of those widgets!

    Denis.

926.2Thanks, but I thinK I need this...CSC32::S_HALLVAXC SPR == Noop ?Tue Jun 13 1989 09:0817
    
    Re: .1
    
    	thanks for the suggestion, but here's the -why- of the
    	multiple text widgets.
    
    	I'm displaying a VMS data structure, with the field name
    	on one side, and its value on the other.  I'd like the
    	user to be able to 'click' on a field on the value side,
    	and generate a callback which will realize a widget 
    	that displays what the hex value means... bit settings, etc.
    
    	This is the only I was able to do this and have it look
    	neat and professional.
    
    	Steve H

926.3Label widgets?GR8FUL::HERBERTClass B Computing DeviceTue Jun 13 1989 14:086
    Re: .2
    
    Why won't label widgets do what you want?
    
    Kevin

926.4Labels 'd probly work, too....CSC32::S_HALLVAXC SPR == Noop ?Tue Jun 13 1989 14:4616
    
    re: .3
    
    
    	I guess they could.... I just thought SText widgets made
    	more sense in terms of the constantly changing values of
    	these fields.
    
    	Six of one, a half-dozen of the other.....
    
    	I'd just love to know what reached up and smacked me in the
    	face with these focus callbacks.....
    
    
    	Steve h

926.5PSW::WINALSKICareful with that VAX, EugeneTue Jun 13 1989 19:425
If the user isn't going to be editing the fields and changing the data, you're
better off with label widgets or gadgets.  Less overhead than SText.

--PSW

926.6I'll give 'em a try...report back here....CSC32::S_HALLVAXC SPR == Noop ?Wed Jun 14 1989 10:046
    
    Thanks for the info, Paul.  I'll give the labels a try.
    
    Steve Anything-for-a-callback Hall
    

926.7No workee...CSC32::S_HALLYou compiled your WHAT ?!Fri Jun 16 1989 13:209
    
    
    Well, I converted the stuff to label widgets.  I still can't get a 
    <Btn1Dn> to trigger an action procedure.
    
    Could it be the fact that I'm using Popup Dialog Boxes ?
    
    Steve h

926.8PSW::WINALSKICareful with that VAX, EugeneFri Jun 16 1989 21:489
Have you tried push button widgets?  They are just like labels except that they
have three built-in action procedures you can specify:  activated (MB1 clicked),
arm (MB1 down), and disarm (MB1 up or mouse moved out of the button after MB1
down).  You don't have to play any games with translation tables, etc.  Just
pass your callback routine address as one of the parameters when you create the
widget.

--PSW

926.9Reduced greatly....still trouble..CSC32::S_HALLYou compiled your WHAT ?!Mon Jun 26 1989 16:1326
    
    Hi,
    
    	Push Button widgets have all that drop-shadow stuff, and would
    	look pretty awful.  I've got to have something that looks like
    	a table, where the user can click on a table entry and get
    	a callback.
    
    	I've just tried the following:
    
    	Changing the Stext widgets to label widgets, and specified
    	the translations (and later the accelerators) to be 
    	Btn1Down.
    
    	I even reduced the size of the window in question to :
    
    	1 PopupDialogBox and
    	1 LabelGadget.
    
    	Still no action procedure will fire....
    
    	Gad...
    
    	Steve h
                                           

926.10You don't like shadows? Turn them off!GVRIEL::SCHOELLERWho&#039;s on first?Mon Jun 26 1989 16:589
re: .9

You are aware that you can turn off the borders and drop shadows on pushbuttons?

As a matter of fact, if you place them in a work area menu it is even easier
to do.

Dick

926.11I reckon I'll tinker with PushButtons...CSC32::S_HALLYou compiled your WHAT ?!Tue Jun 27 1989 08:5212
    
    Weelllll,
    
    	I guess I wasn't aware that I could turn off the drop shadows.
    
    	I'll give that a try (the version number of my source is getting
    	to be an embarrasment....).
    
    	Thanks,
    
    	Steve h