Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Toolbar following the cursor.

Status
Not open for further replies.

pierrotsc

Programmer
Nov 25, 2007
358
US
When I click on an icon, I have asmall option toolbar that will display on the right of the cursor. I use :
var ty:tpoint;

ty:=mouse.cursorpos;
toolbar.setfloating(ty.x+20,ty.y);

Is there a way, i can have the toolbar follow my mouse everywhere i go. I would like to have it anchored to the cursor a little bit positionned on the left.

If it involves too much programming, just let me know.

Thanks.
PO
 
Forget about it. I was able to make it work but i do not like thev output.
Sorry for the post.
PO
 
Look for the OnMouseMove event on the form or compnent that is receiveing the mouse messages. Place your popup menu code to trigger on the onmouse move event. You should be able to access and enter code for this directly through the object inspector window events page.
 
Hi pierrotsc

How'd you get it to work? Is your solution different from what JES1904 mentioned?

 
Yes i used the onmousemove event but the result was annoying. I thought it was going to look better.

PO
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top