Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

 

 

(C++) Using a custom cursor in C++ Builder

 

A C++ Builder FAQ about how to use a custom cursor in C++ Builder.

 

You can make a cursor in 'Tools | Image Editor'.

 

Put the code below in your Forms's constructor.

 

const TCursor c = static_cast<TCursor>(22); //22 is by default an unused index
Screen->Cursors[c] = LoadCursorFromFile("MyCursor.cur");
this ->Cursor = c;

 

 

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict