Stocks software, mouse_over

  • Thread starter Thread starter philippe
  • Start date Start date
P

philippe

Hello,

I'm wondering how developpers dealing with Stocks
software, manage to allow user to visualize 'stock datas'
when moving mouse over a 'barchart' or a 'average
line' ???

Is it possible to achieve this in C# ?
If so, what's the 'secret' behind ? (detection
collision ???)

I'm eager to understand !

Philippe, FRANCE
 
Hi Philippe,

It really depends on which control is used to display bar charts. I think
some controls allow for specifying hint text for every bar on the chart, and
the text will than be displayed when the mouse pointer is over the bar.

Even if you draw bar charts with plain GDI+, you can employ the ToolTip
common control (requires P/Invoke calls to API level functions in this
context) to display stock information tips. You should be also easily able
to detect the "mouse over" event, as far as I remember it's one of the
standard events exposed by the Control class.
 
Thank you for replying Dmitriy,

Your idea of GDI+ and tooltip sounds nice...

Would you kindly give me a quick code example.

Thank you so much -)))

Philippe



-----Original Message-----
Hi Philippe,

It really depends on which control is used to display bar charts. I think
some controls allow for specifying hint text for every bar on the chart, and
the text will than be displayed when the mouse pointer is over the bar.

Even if you draw bar charts with plain GDI+, you can employ the ToolTip
common control (requires P/Invoke calls to API level functions in this
context) to display stock information tips. You should be also easily able
to detect the "mouse over" event, as far as I remember it's one of the
standard events exposed by the Control class.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

philippe said:
Hello,

I'm wondering how developpers dealing with Stocks
software, manage to allow user to visualize 'stock datas'
when moving mouse over a 'barchart' or a 'average
line' ???

Is it possible to achieve this in C# ?
If so, what's the 'secret' behind ? (detection
collision ???)

I'm eager to understand !

Philippe, FRANCE

.
 
You're welcome Philippe, but unfortunately I don't have any code examples at
hand. Try searching the Internet and the archived content of
microsoft.dotnet.* newsgroups available at http://groups.google.com.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

Philippe said:
Thank you for replying Dmitriy,

Your idea of GDI+ and tooltip sounds nice...

Would you kindly give me a quick code example.

Thank you so much -)))

Philippe



-----Original Message-----
Hi Philippe,

It really depends on which control is used to display bar charts. I think
some controls allow for specifying hint text for every bar on the chart, and
the text will than be displayed when the mouse pointer is over the bar.

Even if you draw bar charts with plain GDI+, you can employ the ToolTip
common control (requires P/Invoke calls to API level functions in this
context) to display stock information tips. You should be also easily able
to detect the "mouse over" event, as far as I remember it's one of the
standard events exposed by the Control class.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

philippe said:
Hello,

I'm wondering how developpers dealing with Stocks
software, manage to allow user to visualize 'stock datas'
when moving mouse over a 'barchart' or a 'average
line' ???

Is it possible to achieve this in C# ?
If so, what's the 'secret' behind ? (detection
collision ???)

I'm eager to understand !

Philippe, FRANCE

.
 
Dmitriy,

Thank you anyway for your kind answers

Philippe
-----Original Message-----
You're welcome Philippe, but unfortunately I don't have any code examples at
hand. Try searching the Internet and the archived content of
microsoft.dotnet.* newsgroups available at http://groups.google.com.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

Thank you for replying Dmitriy,

Your idea of GDI+ and tooltip sounds nice...

Would you kindly give me a quick code example.

Thank you so much -)))

Philippe



-----Original Message-----
Hi Philippe,

It really depends on which control is used to display bar charts. I think
some controls allow for specifying hint text for every bar on the chart, and
the text will than be displayed when the mouse pointer is over the bar.

Even if you draw bar charts with plain GDI+, you can employ the ToolTip
common control (requires P/Invoke calls to API level functions in this
context) to display stock information tips. You should be also easily able
to detect the "mouse over" event, as far as I remember it's one of the
standard events exposed by the Control class.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

Hello,

I'm wondering how developpers dealing with Stocks
software, manage to allow user to visualize 'stock datas'
when moving mouse over a 'barchart' or a 'average
line' ???

Is it possible to achieve this in C# ?
If so, what's the 'secret' behind ? (detection
collision ???)

I'm eager to understand !

Philippe, FRANCE

.

.
 
Back
Top