[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

2523.0. ""Pulldown widget *forgets* number of children?"" by RHETT::BONNE () Tue Mar 27 1990 17:41

    Hello all-
    
    Has anyone seen the problem of a widget *forgetting* the number of
    children it has??  A pulldown is created with, say, 4 push buttons in
    it.  Then a set of callbacks are used to create and destroy push
    buttons in the pulldown.  All works fine for a while, then the pulldown
    widget will not resize itself correctly and display white space and
    think it has 1 or 2 more push buttons than it really should.
    
    The customer is using high level Dwt calls on Ultrix 3.1/2.2.  They say
    it is reproducible after a *variable* number of creates and destroys.
    
    She didn't want to send me a slice of her code, so before I write it
    myself, I thought I'd check here...   Are there any problems related?
    (the application really tests the toolkit, it is a menu-driven
    menu-application-generating program.  They can dynamically change the
    interface at any time........ fun stuff)
    
    Thanks- Jim
    
T.RTitleUserPersonal
Name
DateLines
2523.1Setting dimension to 0...R2ME2::OBRYANWhen in doubt, let the user decide.Tue Mar 27 1990 19:0712
RE:.0

>    children it has??  A pulldown is created with, say, 4 push buttons in
>    it.  Then a set of callbacks are used to create and destroy push
>    buttons in the pulldown.  All works fine for a while, then the pulldown
>    widget will not resize itself correctly and display white space and
>    think it has 1 or 2 more push buttons than it really should.
You will probably need to XtSetValue the height (and perhaps the width) to 0
every time a widget is destroyed or unmanaged.  (The pulldown is behaving in a
"grow only" manner.  Resetting the dimension will cause the widget to rescan
its list of children to reconfigure the height/width.)
2523.2"it's a child welfare issue..."RHETT::BONNEWed Mar 28 1990 09:149
    .1
    Thanks for the idea, it may help..  But it does seem to correctly
    manage the number of children it has up to a point.  Then when it
    should have 3 children, it has 4 in it's list of children.  Then it
    manages the children and there are only 3 push buttons to display and
    the white space..  Zeroing out the height may force it to keep better
    track tho- I'll try it.
    
    Jim
2523.3Did it work? STREEP::MCCAUSLANDWed Apr 18 1990 08:354
	Did the suggestion in .1 work? We have a customer with a similar
	problem under VMS.

	Andrew