All these examples underline a link when the mouse is moved over it.
Without this effect the new links would still not be state-of-the-art
and neither following the old convention nor the new.
- Josef
Should we remove underlines for all links?
- Josef Templ
- Posts: 2047
- Joined: Tue Sep 17, 2013 6:50 am
Re: Should we remove underlines for all links?
I voted no.
If someone came up with a simple and efficient implementation that underlines links actively when the mouse is on them I would consider changing my mind.
Robert
If someone came up with a simple and efficient implementation that underlines links actively when the mouse is on them I would consider changing my mind.
Robert
- Josef Templ
- Posts: 2047
- Joined: Tue Sep 17, 2013 6:50 am
Re: Should we remove underlines for all links?
Robert wrote:I voted no.
If someone came up with a simple and efficient implementation that underlines links actively when the mouse is on them I would consider changing my mind.
Robert
Me too.
- Josef
-
- Posts: 1700
- Joined: Tue Sep 17, 2013 12:21 am
- Location: Russia
Re: Should we remove underlines for all links?
I have finished the demo of this feature:
http://blackboxframework.org/unstable/i ... a1.433.zip
Please, check the Help dialog (F1). I removed underlines from it.
I really like how it looks.
The way I did this
http://redmine.blackboxframework.org/pr ... a68f8cb0bb
http://blackboxframework.org/unstable/i ... a1.433.zip
Please, check the Help dialog (F1). I removed underlines from it.
I really like how it looks.
The way I did this
http://redmine.blackboxframework.org/pr ... a68f8cb0bb
- Josef Templ
- Posts: 2047
- Joined: Tue Sep 17, 2013 6:50 am
Re: Should we remove underlines for all links?
Excellent!
- Josef
- Josef
Re: Should we remove underlines for all links?
Works nicely.
I assume the implementation can be described as "Simple & efficient & reliable".
I have changed my vote to yes.
I assume the implementation can be described as "Simple & efficient & reliable".
I have changed my vote to yes.
-
- Posts: 1700
- Joined: Tue Sep 17, 2013 12:21 am
- Location: Russia
Re: Should we remove underlines for all links?
There are some problems, so this is not final solution.
1. Focus edit field blinking
2. Sometimes controls lost focus (i assume) and clicking from second attempt
1. Focus edit field blinking
2. Sometimes controls lost focus (i assume) and clicking from second attempt
- Attachments
-
- Links.odc.zip
- (8.7 KiB) Downloaded 220 times
Re: Should we remove underlines for all links?
I'm just show the link cmd on the status bar,
without touch the underline attributes,it is too heavy work to do for me.
StdLinks
StdLinks.HandleCtrlMsg
TextControllers.FindFilter
without touch the underline attributes,it is too heavy work to do for me.
StdLinks
Code: Select all
VAR cmdString:POINTER TO ARRAY OF CHAR;
Code: Select all
BEGIN(*HandleCtrlMsg*)
WITH msg: Controllers.PollCursorMsg DO
msg.cursor := Ports.refCursor;
| msg: TextControllers.FilterPollCursorMsg DO
IF isHot(msg.controller, msg.x, msg.y, {}) THEN
msg.cursor := Ports.refCursor; msg.done := TRUE;
(*>>*)
IF (v.leftSide)&(v.cmd # cmdString) THEN
Dialog.ShowStatus(v.cmd);cmdString:=v.cmd;
END;
ELSE
IF cmdString # NIL THEN
Dialog.ShowStatus("");cmdString:=NIL;
END;
(*>>*)
END
| msg: Controllers.TrackMsg DO
Track(v, f, NIL, msg.x, msg.y, msg.modifiers)
| msg: TextControllers.FilterTrackMsg DO
IF isHot(msg.controller, msg.x, msg.y, msg.modifiers) THEN
Track(v, f, msg.controller, msg.x, msg.y, msg.modifiers);
msg.done := TRUE
END
ELSE
END
END HandleCtrlMsg;
Code: Select all
PROCEDURE FindFilter (c: StdCtrl; f: Views.Frame; x, y: INTEGER; OUT filter : Views.View);
CONST catchRange = 1000;
VAR rd: TextModels.Reader; pos, beg, end: INTEGER; isF: BOOLEAN;
BEGIN
c.view.GetRange(f, beg, end); DEC(beg, catchRange);
pos := c.view.ThisPos(f, x, y);
IF pos < c.text.Length() THEN INC(pos) END; (* let filter handle itself *)
rd := CachedReader(c); rd.SetPos(pos);
REPEAT
rd.ReadPrevView(filter);
isF := (filter # NIL) & IsFilterView(filter, c, f, x, y);
UNTIL isF OR rd.eot OR (rd.Pos() < beg);
IF ~isF THEN filter := NIL END;
(*<<*)
IF filter=NIL THEN (*right*)
rd.SetPos(pos);
REPEAT
rd.ReadView(filter);
isF := (filter # NIL) & IsFilter (filter, c, f, x, y);
UNTIL isF OR rd.eot OR (rd.Pos() >=end );
END;
(*>>*)
CacheReader(c, rd)
END FindFilter ;
Re: Should we remove underlines for all links?
I try the underline sample and the status line sample together and my conclusion is:
It looks much better when I use the status line sample only by its own.
We needn't to underline the link during pointing on it.
The cursor change from the caret to the hand and that is really enough.
- Helmut
It looks much better when I use the status line sample only by its own.
We needn't to underline the link during pointing on it.
The cursor change from the caret to the hand and that is really enough.
- Helmut