Community
Participate
Working Groups
Created attachment 89870 [details] Hacked rich hover with resize grip API request: Allow users of Shell to add a resize grip (a.k.a. grow box, resize control) in the lower right corner. See the attached screenshot for how it should look like. I noticed that WinXP automatically adds such a grip when a Scrollable is placed in the lower right corner. So I tried to just put a Composite at that spot: Composite resizer= new Composite(bars, SWT.H_SCROLL | SWT.V_SCROLL); gd= new GridData(SWT.END, SWT.END, false, false); gd.widthHint= 0; gd.heightHint= 0; resizer.setLayoutData(gd); That worked (the resize cursor appeared on the whole composite and dragging from there indeed resized the shell), but unfortunately, the whole area was full of cheese, like in bug 28132. For the screenshot, I've set gd.heightHint= 1; but that left me with a 1-pixel-high horizontal line above the grip. However, it looks like there's a better way to add the resize grip: Wordpad, MSpaint, IE7, and the Windows Explorer all manage to get it without cheese.
When you get the latest, is it still covered with cheese?
Created attachment 90507 [details] SnippetGrip.java > When you get the latest, is it still covered with cheese? Yes, however it's already cheese initially (unlike bug 28132, which I only saw after resizing or moving another window over the scrollbar junction).
Should no longer be cheesy. Try it. Back to the original bug. I'm toying with the idea that if you place a label in the corner of a resizable shell, then the label should draw the resize grippers and let you resize. It seems strange creating a composite that has scroll bars, then resizing it so that the scroll bars aren't showing in order to get a gripper. Maybe Label should support SWT.RESIZE which means, "draw a gripper"?
Yummy, works like a charm on WinXP. Turning a Label with SWT.RESIZE into a gripper would definitely look less hacky. I guess this will only work in the SE corner. What would it do in other locations? Would this also work under GTK in an ON_TOP | RESIZE shell (despite bug 23980)?
*** Bug 109885 has been marked as a duplicate of this bug. ***
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.