Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / tools / perl-5.8.0 / lib / site_perl / 5.8.0 / sun4-solaris / Tk / README.Adjust
CommitLineData
86530b38
AT
1Subject: Adjuster
2Date: Wed, 16 Dec 1998 22:23:23 +0100
3From: Stephen Kun <stephen.kun@is.gaertner.de>
4To: Nick Ing-Simmons <nick@ni-s.u-net.com>
5
6
7
8
93. How do I find out whether slave is a pack or grid master or if it is not a
10master (for setting packPropagate(0))
11Currently I set both on the slave.
12
134. In setting position of drag bar, I do a lot of calcs for each motion event.
14Some could be done one for first, then used again for subsequent calls, eg:
15borderwidth of master, etc.
16I've now partially done this and store them on the widget.
17
185. Do I need XSync and idletasks calls in Adjuster.pm?
19XSync causes a bug. idletasks doesn't make any difference in practice, from
20what I can see. I've commented both out.
21Bug when using XSync:
22 Run pack_adj_4r
23 Shorten whole window from right so that left window edge crosses leftmost
24 adjuster. Buttons on other adjusters disappear
25
266. Sometimes the effect given by the Restore method, is undesirable. Eg.
27for multi-columns. Then when you expand say the 1st column, the size of the
28col at the end gets reduced to 0 width when the Adjuster forces itself in.
29Then when you reduce the size of the first column again, the end col is still
300 width.
31Better would be:
32a) put the restore functionality on a flag OR
33b) when a col is reduced because of a Restore, it saves previous width of
34its slave, and attempts to restore it when the space becomes availabe. (Sounds
35impracticable.)
36I've implemented a) with default ON. In the documentation I'll recommend the
37default for the 1st Adjuster, then OFF for the remaining.
38
398. What about a packAdjustForget? Given that Adjuster doesn't work well for
40grid anyway, and doesn't consider other managers, that wouldn't be too bad.
41I'm not going to do this, but someone mentioned it a while ago. I can
42see me probably wanting it too at some point.
43Are you for the idea?
44
4510. Grid doesn't work well with Adjuster, didn't before either. I think
46this has to do with grid, rather than adjuster. You get the same effect
47if you grid a row of widgets, then reduce the width of the window.
48Bugs demonstrated by grid_adj_4l:
49a) there's never an Unmap event for the adjuster.
50b) after adjusting, widgets protrude into border on right.
51c) grid('Propagate', 0) on MainWindow has no effect - window shrinks/grows
52 when widgets are adjusted
53d) widgets shuffle to correct position on startup
54I don't recommend use of grid with Adjust!
55
5611. Have taken out __END__ temporarily for testing
57Will put it back before publishing on the mailing list.
58
5912. Why do the adjusters in my testcases come out grey? That's not the
60default background.
61
6213. Could packAdjust return ($adj, $w). Could then do:
63 my $canv = $top->Canvas()->packAdjust();
64OR
65 my ($adj, $canv) = $top->Canvas()->packAdjust();
66Latter is good if you want to configure or unpack adjuster later.
67I realise this is very Kludgy, but there's no other way to get the
68Adjuster from packAdjust.
69I suppose the workaround of creating the Adjuster yourself is OK. When
70you do it by hand though, there's more chance of making mistakes, eg
71forgetting the -side (which defaults then to 'top') which would cause havoc.
72What's your opinion.
73
7414. Run the script adj_button_bug: You can't reduce size of button.
75Button can be expanded, but as soon as focus enters button, it springs back
76to its original size. Why?
77It's not important though.