Page 1 of 1

Hyperlink click area

Posted: Tue Sep 27, 2005 4:17 am
by mphilbrick
Sergey,

We are creating forms that have a single hyperlink in each cell of a table. Normally these hyperlinks are easy to select with either the mouse or a stylus. However, the size of the hyperlink area, particularly the height, is not large enough for use on touchscreens (the area is too small to reliably hit with your finger).

We can make the text larger, but it greatly reduces the amount of text that can be displayed on a screen.

Since there is one hyperlink (one item) per table cell, is there a way that we could "expand" the hyperlink area by manipulating the text or paragraph attributes within the cell (cell margins, paragraph margins) or is the clickable area the text only? In other words, can we make the entire table cell a hot spot? We tried inserting hot spot images but this slows the loading too much.

If this is not possible, could you provide me a sample of code (I am using TRichViewEdit in ReadOnly mode) that would locate the hyperlink within a table cell (assuming there is one and assuming the click occurred in a table cell) and execute the OnJump event?

Thanks. BTW, the fix for the undo error in RichViewActions took care of the problem.

Posted: Tue Sep 27, 2005 8:28 am
by Sergey Tkachenko
See the demo
Demos\Delphi\Assorted\PlanetQuiz\