[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

1122.0. "Final word on file selection widget " by TOTALY::ROSSI () Mon Jul 17 1989 17:24

I've searched around for information on the file selection widget to solve
various problems I am having with it but haven't found any answers.
A lot of people seem to be asking this question about dialog boxes but I still
don't know the answer.

Why does the icon name appear as "Popup" for this widgets WM icon but as 
the correct name in the title bar?
Note 721 Harbor::decwindows_programming seems to be asking the same question
about a dialog box which should apply to the file selection widget as well
since this widget follows the hierarchy 

           core
              - composit
                  - constraint
                      - dialog
                          - selection
                              - file selection

In any event I defined the file selection widget in UIL as Modeless and 
gave it its title name but get the stupid "Popup" name up in the Icon box.
would it help for me not to use UIL and use DwtFileSelectionCreate I've
noticed that some of the dialog boxes used in Decwindows notes have this feature
as well when search and directory are chosen from the conference pulldown. Is
there any way I can fix this, any way at all, i don't care if I have to 
re-write X. Well, kind of. Also, I would like to change the icon from the
default but I don't think it's possible. A lecture on repeat topics and some
string or notes file to do a directory on would be very helpfull.

T.RTitleUserPersonal
Name
DateLines
1122.1How to change an icon title for a dialog boxKOBAL::SCAERMon Jul 17 1989 19:1311
	To change the title in a dialog box icon, do the following:

	Arg arglist[1];

	XtSetArg(arglist[0], XtNiconName, title);
	XtSetValues(w, arglist, 1);

	where 'w' is the dialog box and 'title' is its title, a
	null-terminated string

1122.2This wont work for the file selection widget.ASD::ROSSITue Jul 18 1989 10:3418
>       Arg arglist[1];
>	XtSetArg(arglist[0], XtNiconName, title);
>	XtSetValues(w, arglist, 1);
>	where 'w' is the dialog box and 'title' is its title, a
>	null-terminated string

I thought this would be the way to set it also (for the file selection
widget) but it doesn't work. I don't think the name "Popup" should appear
at all for the icon name if the title has been set. Something isn't right 
here. The questions I'm asking are specific to the file selection widget.

I guess what I'm asking is why doesn't the above code work. And since it doesn't
what can I do about it. Should I use DwtFileSelectionCreate instead of a UIL
definition? I can't imagine that there will be any difference. I basically
want the Modless file selection window with an icon name matching the title.

-MR

1122.3oops, sorryKOBAL::SCAERTue Jul 18 1989 14:149
	Perhaps I was mistaken, try this instead:

	Arg arglist[1];

	XtSetArg(arglist[0], XtNiconName, title);
	XtSetValues(XtParent(w), arglist, 1);


1122.4that's it.ASD::ROSSIWed Jul 19 1989 11:242
Thats what I needed. Thanks. I changed the icon and everything.

1122.5explainationCB750C::BOLGATZWed Jul 19 1989 14:4030
    
    some explaination is in order...
    
    (1) toolkit popups by default do not have iconify buttons unless their
        parent's shell is unmanaged (and it is therefore NOT in a window
        group).  For example, create toplevel via XtInitialize, then
        create a modeless fileselection widget as a child of toplevel,
        then manage the fileselection widget (without realizing toplevel).
    
    (2) toolkit popus create a hidden shell 'behind the application's
        back.'  This is how popups POP UP.  Most toolkit popup dialog
        boxes create their hidden shell with the name "Popup" (left over 
        from pre-V1).
    
    (3) There is a quirk (bug) in the toolkit that the icon button label is 
        taken from widget name (the shell created by fileselection), not 
        the dialog box title.  
    
    Therefore -- when you create a fileselection widget whose parent's shell 
    is not realized, its iconify button label is "Popup".  And to change to the 
    iconify button label via SetValues, you must modify its 'owner' - the
    shell widget that was created by the fileselection widget (ie its 'real' 
    parent).                                                          5
    
    
    The iconify button label will match the fileselection title in V3. 
    Until then you'll have to use SetValues.
    
    Jay Bolgatz

1122.6thanks.ASD::ROSSIWed Jul 19 1989 16:261