Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Message when moving mouse over an ArrayCtrl
Message when moving mouse over an ArrayCtrl [message #23232] Thu, 01 October 2009 23:08 Go to next message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
Hello

I would like to show a help message when moving the mouse over an ArrayCtrl row.

This message text would depend on the row.

This could be similar to the message that appears when moving over a Bar button, or the text in the status bar with .Help("Message") also in Bars.

Best regards
Koldo


Best regards
Iñaki
Re: Message when moving mouse over an ArrayCtrl [message #23315 is a reply to message #23232] Thu, 08 October 2009 16:33 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
koldo wrote on Thu, 01 October 2009 17:08

Hello

I would like to show a help message when moving the mouse over an ArrayCtrl row.

This message text would depend on the row.

This could be similar to the message that appears when moving over a Bar button, or the text in the status bar with .Help("Message") also in Bars.

Best regards
Koldo


I guess overriding MouseMove and changing Tip accordigly to the column/row might work.
Re: Message when moving mouse over an ArrayCtrl [message #23318 is a reply to message #23315] Thu, 08 October 2009 22:53 Go to previous message
koldo is currently offline  koldo
Messages: 3356
Registered: August 2008
Senior Veteran
Hello Mirek

Thank you for your help.

I have done this test

struct ArrayCtrlTip : ArrayCtrl {
	virtual void MouseMove(Point p, dword d)
	{
		int i = GetLineAt(p.y + GetScroll());
		if(!IsNull(i)) 
			Tip(String("You are in row " + i));
		ArrayCtrl::MouseMove(p, d);
	}
	typedef ArrayCtrlTip CLASSNAME;
};


Unfortunately the Tip does not appear.

If I add a Tip with some text when ArrayCtrl setup, the Tip appears but with only fragments of the text.

Any idea ?

Bestt regards
Koldo


Best regards
Iñaki
Previous Topic: Stop update in arrayctrl
Next Topic: Get number of displayed row in arrayctrl
Goto Forum:
  


Current Time: Thu Apr 18 21:22:54 CEST 2024

Total time taken to generate the page: 0.03813 seconds