[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

274.0. "Specifying attachements for children of a widget." by TALLIS::KOFFMANN () Wed Feb 22 1989 13:57

    I would like to use the attachment attributes (DwtAttachNone,
    DwtAttachAdb, etc...), to attach the children of a scroll_window widget
    (the children two scroll_bar widgets, and a window widget).
    Is this possible, or can you only attach the children of
    an attached dialog box?      
    A coded example would be great.                             
    Thanks.
    
    Cecile.                             

T.RTitleUserPersonal
Name
DateLines
274.1let the scroll_window do the work for you...R2ME2::OBRYANWhen in doubt, let the user decide.Thu Feb 23 1989 11:5621
re:.0             -< Specifying attachements for children of a widget. >-

>    I would like to use the attachment attributes (DwtAttachNone,
>    DwtAttachAdb, etc...), to attach the children of a scroll_window widget
>    (the children two scroll_bar widgets, and a window widget).
>    Is this possible, or can you only attach the children of
>    an attached dialog box?      
Since scroll_window is not a subclass of attached_dialog, my guess is that
any such attachments would (at best) be ignored.  The question arises:
do you need such attachments?  The scroll_window knows how to configure
these special children provided that you tell it which child is which.
(In UIL, that would mean specifying the following arguments for the
scroll_window:
	horizontal_scroll_bar = scroll_bar <your horizontal scroll_bar name>;
	vertical_scroll_bar = scroll_bar <your vertical scroll_bar name>;
	work_window = window <your window name>;
If you're not using UIL, you could use XtSetValues to designate these
children.  I believe there is also a routine like SetMainAreas for
scroll_windows, but I don't have the name at my fintertips.)

274.2Poor beginner lost in attributes, resources...AZUR::BODINPascal - I, not the languageWed Oct 25 1989 05:515
    Additional question: how to use attachement attributes when you don't
    use UIL? I mean: which function, which argument...? In one word, help!
    
    Pascal.

274.3Found!AZUR::BODINPascal - I, not the languageWed Oct 25 1989 07:5912
    I found the answer to my previous question.
    
    Just in case somebody else is interested:
      the attachment attributes are constraint attributes belonging to any
      widget made a child of an Attached Dialog Box.
      This is documented in the "VMS DECwindows Toolkit Routines Reference
      Manual", in the section dedicated to the Attached Dialog Box Create
      low-level routine.
    
    Pascal (going on trying to write something that could be named a
            DECwindows program).