RebGUI enhancement request - active labels
[1/7] from: btiffin:rogers at: 19-Mar-2007 12:58
Hi,
The apps I've been writing use RebGUI 0.4.0. A major design philosophy I
use is labelled fields. Clicking on the label pops up a requestor (usually
using text-list filled from (sometimes large) databases) that fills in the
field with selected choice. The use can click the label for a popup or enter
data directly in the field.
I needed the visual cue that the label is 'hot' so I modified label to this
(perhaps inefficient, perhaps broken)...
label: make text [
font: make default-font [style: 'bold]
feel: make default-feel [
engage: func [face action event] [
switch action [
down [face/feel/over face false 0x0
face/action face]
away [face/feel/over face false
0x0]
]
]
over: func [face act pos] [
if (get in face 'action) [
either act [face/font/color: gold show face]
[face/font/color: black show face]
]
]
]
]
If there is an action block with the label, change to gold on a hover.
This is a mod of old widget code from 0.4.0
Is it possible to get this feature built into the 'real' RebGUI? If a label
has a click action, to highlight it some how?
Thanks in advance, and I'm more than willing to hear a short response of "No".
By the way, the last %tour.r I pulled out of svn doesn't segfault on
Debian/GNU Linux - etch RC1 anymore.
btiffin
[2/7] from: gregg::irwin::gmail::com at: 19-Mar-2007 12:25
Hi Brian,
BT> If there is an action block with the label, change to gold on a hover.
My only thought, not RebGUI related, is that UI elements should
indicate they're clickable without the user having to mouse over them.
Psychologists (and UI designers :) call these "affordances". e.g.
clickable text could be underlined, like a link in a browser, but then
also highlight on hover (since we can't change pointers in REBOL).
--Gregg
[3/7] from: chris-ross:gill at: 19-Mar-2007 14:01
> BT> If there is an action block with the label, change to gold on a
> hover.
<<quoted lines omitted: 3>>
> clickable text could be underlined, like a link in a browser, but then
> also highlight on hover (since we can't change pointers in REBOL).
I'd argue labels are the exception here. I think of underlined text as
taking me somewhere, where a label is bound to a control element that
merely changes its own, or the current page/form's state. Think what a
page of Radio/Check Lines would look like underlined, or field labels
that focus on their owner when clicked. Though perhaps you could
consider the label text itself a visual indicator?
However, in this specific case, it seems the label could be replaced by
a button to indicate the altered behaviour -- I'd hate to click on a
label expecting to operate the control, only for a requester to pop
up...
- Chris
[4/7] from: gregg:irwin:g:mail at: 19-Mar-2007 13:29
Hi Chris,
CRG> However, in this specific case, it seems the label could be replaced by
CRG> a button to indicate the altered behaviour -- I'd hate to click on a
CRG> label expecting to operate the control, only for a requester to pop
CRG> up...
Agreed. For requestors, I generally use a small button with an
ellipsis as the caption, butted right up against the right side of the
field.
--Gregg
[5/7] from: compkarori:g:mail at: 20-Mar-2007 7:30
I agree with this. The couple of instances where I have used labels
as buttons, I have now changed to buttons so that the interface is
consistent.
On 3/20/07, Gregg Irwin <gregg.irwin-gmail.com> wrote:
> Hi Brian,
>
> BT> If there is an action block with the label, change to gold on a hover.
>
> My only thought, not RebGUI related, is that UI elements should
> indicate they're clickable without the user having to mouse over them.
--
Graham Chiu
http://www.synapsedirect.com
Synapse-EMR - innovative electronic medical records system
[6/7] from: btiffin::rogers::com at: 19-Mar-2007 16:24
On Monday 19 March 2007 14:25, Gregg Irwin wrote:
> Hi Brian,
> BT> If there is an action block with the label, change to gold on a hover.
<<quoted lines omitted: 4>>
> also highlight on hover (since we can't change pointers in REBOL).
> --Gregg
Hi Gregg,
Yes you are right...but...
I was going for a looky feely close to VID.
view layout [label "Plain Label" label "Action Label" [print "action"]]
Highlights Action Label when you mouseover.
Thanks for the comments
[7/7] from: anton:wilddsl:au at: 20-Mar-2007 10:28
I also agree with this.
Anton.
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted