Re: GtkPaned (was Re: Patch to GtkPaned.)
- From: Havoc Pennington <hp redhat com>
- To: Oskar Liljeblad <osk hem passagen se>
- Cc: gtk-devel-list gnome org
- Subject: Re: GtkPaned (was Re: Patch to GtkPaned.)
- Date: 15 Feb 2001 14:54:19 -0500
Oskar Liljeblad <osk hem passagen se> writes:
>
> Speaking about the GtkPaned widget... It would be nice if one
> could use the whole bar to drag, not just the knob. (Similar
> to panning bars in Windoze.) This would make it possible to
> use a smaller bar (say 4-6 pixels wide/high). Has this been
> considiered, done already, or is it a theme issue?
>
It's already done. It is themeable, yes.
> Another thing (which is probably extremely hard to implement
> right now) is that while the bar is N pixels wide/high
> visually, it should still be possible to drag the bar by
> clicking within N+2 (or even N+4) pixels. Like an invisible
> (but sensible) border around the bar.
>
> Clickable Area
> ------+---+-------+---+-----
> | |<.....>| |
> | |<.....>| |
> | |<.....>| |
> --------+ |<.....>| |
> Button | |<.....>| |
> | |<.....>| |
> | |<.....>| |
> | |<.....>| |
> | |<.....>| |
> --------+ |<.....>| |
> | |<.....>| |
> ------+---+-------+---+-----
> VisualBar
>
> As this picture shows, the clickable area surrounds the visual portion
> of the bar. A button overlaps part of the clickable area.
> (In this case, the button's clickable area would be considered above
> the clickable area of the bar.)
>
This is easy to implement, though I'm not sure it's right - why not
just make the bar wider visually, if it's too narrow to hit? Clicking
on what's visually part of the button shouldn't drag the bar.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]