For Programmers: Free Programming Magazines  


Home > Archive > Delphi > August 2005 > Hints Components









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Hints Components
MarcelloIozzia

2005-05-28, 3:58 pm

Guys, all delphi components have a hint,
but i need show different hint depending of the position of the mouse
over a TPaintBox.

I think to remember of a simple components that make this, do you know
where can i found it ???

Thanks


Jamie

2005-05-28, 3:58 pm

MarcelloIozzia wrote:
> Guys, all delphi components have a hint,
> but i need show different hint depending of the position of the mouse
> over a TPaintBox.
>
> I think to remember of a simple components that make this, do you know
> where can i found it ???
>
> Thanks
>
>

ThintWindow

Jon Souter

2005-08-07, 4:01 am

MarcelloIozzia wrote:
> Guys, all delphi components have a hint,
> but i need show different hint depending of the position of the mouse
> over a TPaintBox.
>
> I think to remember of a simple components that make this, do you know
> where can i found it ???
>
> Thanks
>
>


One way I tackled a similar problem in the past (in an app that used a
'skin' was to have one image showing (the skin, as it were) and another
hidden image that acted as a colour map (where each zone of the skinned
area was coloured a different colour).

When a user clicked on the skin, I grabbed the x,y coordinate that they
had clicked at, then checked the colour in the hidden image at the same
x,y location to work out which zone they had clicked in.

It worked really nice - but requires more work if you need parts of your
interface to animate.

Hope this provides an alternative to using a component - it's more
rewarding when you create something by yourself, without resorting to
ready built components!

All the best,


KultiVator UK
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com