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 » Draw, Display, Images, Bitmaps, Icons » image of cursor
Re: image of cursor [message #3649 is a reply to message #3644] Sun, 11 June 2006 20:53 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13984
Registered: November 2005
Ultimate Member
fudadmin wrote on Sat, 10 June 2006 06:12

Something like this:
Image MyCtrl::CursorImage(Point p, dword keyflags)
{
	Point p1=Point(0,50);
	Point p2=Point(200,60);
///	if (p.x>p1.x && p.x<p2.x && p.y>p1.y && p.y<p2.y)
///	return CtrlImg::vertpos1();
//		SetMouseCursor(CtrlImg::vertpos1());
	//	PromptOK("inside");

///	else return Image::Arrow();
	return Image::Arrow();
}




Well, with those commented out lines, not quite a representative example... Wink

To original poster: Just return the Image you want from the CursorImage overload..

Mirek
 
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Graphics Context and Draw Object
Next Topic: StreamRaster::LoadAnyFile -- not exist in distribution?
Goto Forum:
  


Current Time: Sat Jun 08 20:38:40 CEST 2024

Total time taken to generate the page: 0.01951 seconds