Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-03

how can I show a hint without a mouse move?

6 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Giuliano Colla

Hi Lazarus gurus,

I have an application which is bound to be used with a touch screen and without a mouse.
I'd need to show a hint when some components are touched (=clicked).

Is there an easy way to cause the component hint to be displayed, or the only way is to reimplement all the functionality of a show hint on an on OnClick event?

Any ideas?

Giuliano

Giuliano Colla Project planning question: when it's 90% done, are we halfway or not yet?

Reply by email

Giuliano Colla

Hi Lazarus gurus,

I have an application which is bound to be used with a touch screen and without a mouse.
I'd need to show a hint when some components are touched (=clicked).

Is there an easy way to cause the component hint to be displayed, or the only way is to reimplement all the functionality of a show hint on an on OnClick event?

Any ideas?

Giuliano

Giuliano Colla Project planning question: when it's 90% done, are we halfway or not yet?

Reply by email

Mattias Gaertner
to Giuliano Colla: I have an application which is bound to be used with a touch screen and without a mouse.…
Show quoted text 11 lines
Hi Lazarus gurus, I have an application which is bound to be used with a touch screen and without a mouse. I'd need to show a hint when some components are touched (=clicked). Is there an easy way to cause the component hint to be displayed, or the only way is to reimplement all the functionality of a show hint on an on OnClick event? Any ideas?

I don't have a no mouse system to test.
What happens when you do

procedure TForm1.Button1Click(Sender: TObject);
begin
  CursorPos:=TWinControl(Sender).ClientToScreen(Point(1,1));
  Application.ActivateHint(CursorPos, True);
end;

?

Mattias

Reply by email

Giuliano Colla
to Mattias Gaertner

Il 15/03/2015 18:48, Mattias Gaertner ha scritto:

Show quoted text 8 lines
I don't have a no mouse system to test. What happens when you do procedure TForm1.Button1Click(Sender: TObject); begin CursorPos:=TWinControl(Sender).ClientToScreen(Point(1,1)); Application.ActivateHint(CursorPos, True); end;

I don't have a no mouse system either in this moment, but it looks quite promising.

Without the OnClick event you suggested, the hint did disappear or not show it I was too quick when I was clicking the control. With it the hint either stays there or shows. Tomorrow at work I'll test on the real system, but I'm confident.

Thanks a lot Mattias!

Giuliano

Giuliano Colla Project planning question: when it's 90% done, are we halfway or not yet?

Reply by email

Graeme Geldenhuys
to Giuliano Colla: I have an application which is bound to be used with a touch screen and without a mouse.…
Giuliano Colla wrote
I'd need to show a hint when some components are touched (=clicked).

Why not incorporate a web design in your user interface. Many websites have a small "information" icon next to components. Click those and a hint window is show. Do the same with your app, and I would even implement a custom hint window to make it more attractive as it is a kiosk type app.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

Giuliano Colla
to Graeme Geldenhuys

Il 15/03/2015 20:43, Graeme Geldenhuys ha scritto:

Show quoted text 7 lines
On 2015-03-15 17:10, Giuliano Colla wrote: > I'd need to show a hint when some components are touched (=clicked). Why not incorporate a web design in your user interface. Many websites have a small "information" icon next to components. Click those and a hint window is show. Do the same with your app, and I would even implement a custom hint window to make it more attractive as it is a kiosk type app.

Thanks for the tip, but what I need is just a lightweight troubleshooting help, such as provided by a hint.
I'm dealing with the human interface of a family of automatic machines to make checkbooks.
When some problem happens, a synoptic of the machine is shown, displaying the current state of all the sensors of the section involved, with the one(s) causing the error highlighted.
Most of it is self-explanatory, and the operator doesn't usually need anything more, but to ease troubleshooting a supplementary information may be helpful, such as where the sensor is physically connected (e.g. "Box #2, Input 15"), or , depending on the display style selected, the more precise description of the sensor location and purpose("Blade motor encoder", "Binder temperature", "Feeder 2", etc.).

Giuliano

Giuliano Colla Project planning question: when it's 90% done, are we halfway or not yet?

Reply by email