Search the documentation, because there is some functions that return each color : Red, Green, Blue.
Or you can apply some bit operation(binary and and shift to right) on the TColor variable to find each color.
TColor in hexa is something like this : 0xRRGGBB.
normal c++ programmer
If you don't try, you don't know !!
I'm using GetAsyncKeyState at 50 miliseconds in a timer, and it doesn't slow down my application!
normal c++ programmer
If you want to make a game, you must use a loop where you can call the win api function GetAsyncKeyState.
Or you can use a timer to call GetAsyncKeyState.
The GetAsyncKeyState function determines whether a key is up or down at the time the function is called, and whether the key was pressed...
You must add a handler to the BeforePrint message for the first band (usualy the title band) on each of the basic reports. In these handlers call the NewPage() method of the report.
void __fastcall GenericBeforePrint(TObject *Sender)
{
((TMyReport*)Sender)->NewPage();
}
TMyReport * Rep[100]...
I was working on a package of controls for Builder and i'm stuck with creating a new CheckBox with my own drawing.
I've tried :
class XCheckBox : public TCustomCheckBox
{
....
};
but is not working, the class TCustonCheckBox do not include Canvas, and I can't draw the control.
I need to create...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.