Windows Mouse Hover Tooltip

This is where you talk about Macros, show examples of your macro scripting and SHARE handy segments of script code as examples.

Windows Mouse Hover Tooltip

Postby CNC22369 » Mon Feb 18, 2019 1:52 am

Is it possible to implement within a macro the Windows mouse hover tooltip capability for select screen buttons? If so does anyone have a code example they would share?

Thank you,
Frank
CNC22369
 
Posts: 35
Joined: Mon Sep 19, 2016 4:05 pm

Re: Windows Mouse Hover Tooltip

Postby cncdrive » Wed Feb 20, 2019 5:40 pm

Currently it is not possible, because the GUI of the UCCNC is not Windows GDI+ graphics, it is not even Windows Forms graphics, but an OpenGL 3D screen. The buttons are bitmap images rendered on triangles. :)
So, there are no events for tooltip, because the GUI is all drawn with code and they are not buttons in real.

We could ofcourse implement tooltips with code and could make it act like if it was standard Windows tooptips, but we did not think that it would be useful for anything, so we did not implement it yet.
cncdrive
Site Admin
 
Posts: 4887
Joined: Tue Aug 12, 2014 11:17 pm

Re: Windows Mouse Hover Tooltip

Postby Robertspark » Wed Feb 20, 2019 6:11 pm

Why would wand to do it via a macro?

I mean a macro is just an automated task sequence of machine motion, delay or calculation.

It can be done in a plugin and it can be done in a macro wizard.

A macro is not the same as a macro wizard.

Also in a plugin or macro wizard the tooltips would just apply to that form (the form of the plugin or macro wizard) but not to the uccnc screen set.

Can you explain exactly what you want as it is not clear
Robertspark
 
Posts: 1892
Joined: Sat Sep 03, 2016 4:27 pm

Re: Windows Mouse Hover Tooltip

Postby cncdrive » Wed Feb 20, 2019 6:16 pm

I think he wants to apply a tooltip to the UCCNC's main GUI and not to a separate form (a macro, macroloop or plugin Form).
And this is not possible, because the GUI of the UCCNC is an OpenGL screen and not Windows GDI+. So, it would be only possible if we code the whole tooltip handling (mouse position calculations etc.) ourselves in the UCCNC and give an interface to the macros and plugins.
cncdrive
Site Admin
 
Posts: 4887
Joined: Tue Aug 12, 2014 11:17 pm

Re: Windows Mouse Hover Tooltip

Postby Robertspark » Wed Feb 20, 2019 6:24 pm

Yes I thought so too, but he talks of "macro" in his original post, and also it is in the macros section, that is why I sort of ignored it when it was first posted.

For the main GUI I do not believe it is required or useful.
I mean if you have to have a tooltip to give you a clue .... Should you be operating a CNC machine?
Also the tasks are somewhat repetitive.... So once you've pressed the load file, rewind a few times you know what they do..... Once you have set the ports and pins you should never need to do it again...
Robertspark
 
Posts: 1892
Joined: Sat Sep 03, 2016 4:27 pm

Re: Windows Mouse Hover Tooltip

Postby cncdrive » Wed Feb 20, 2019 6:48 pm

I can only think about usefulness in the learning curve when the user is still learning how to operate the software and so some tooltips might be helpful, but in the normal usage period when the user already knows what buttons are doing what then it would be only annoying getting tooltips. :)
cncdrive
Site Admin
 
Posts: 4887
Joined: Tue Aug 12, 2014 11:17 pm

Re: Windows Mouse Hover Tooltip

Postby ger21 » Wed Feb 20, 2019 7:32 pm

Not only would you yo program them, you'd then have to program a way to turn them off. ;)
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2714
Joined: Sat Sep 03, 2016 2:17 am

Re: Windows Mouse Hover Tooltip

Postby CNC22369 » Thu Feb 21, 2019 6:21 pm

Thank you all for taking the time to reply to my question about tooltip capability. I understand your replies. I do not have a serious need for the capability, but thought if it were possible, I might use it in a limited way on a new Run screen I'm working on. I am prototyping a Run screen that is heavily based on Icon buttons rather than text label buttons. I don't know if I will adopt the Icon based screen for daily use, but I want to see if a structured, matrix oriented screen layout makes sense for me, particularly when using a touch screen. Attached is a "work in progress" screen shot.
Attachments
Icon run screen.PNG
CNC22369
 
Posts: 35
Joined: Mon Sep 19, 2016 4:05 pm

Re: Windows Mouse Hover Tooltip

Postby dezsoe » Fri Feb 22, 2019 11:55 am

It looks very nice! I have an idea to make the tooltip, I'll try it on the weekend.
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary


Return to Macros

Who is online

Users browsing this forum: No registered users and 6 guests

cron