PROBLEM FIXED
I made a TButton called "FindColorButton" and I want to make it so that when I click it, it waits for me to press a key on the keyboard, and when I press it it will get the color of whatever color my cursor is over. This is what I have-
Code:Procedure FindColorProcedure (Sender: TObject); Begin End;What do you think?Code:FindColorButton := TButton.Create(frmDesign); //FindColor FindColorButton.Parent := TabPages[2]; FindColorButton.Left := 300; FindColorButton.Top := 100; FindColorButton.name :='FindColor'; FindColorButton.Caption :='Find Color'; FindColorButton.Width := 100; FindColorButton.OnClick := @FindColorProcedure;
EDIT:
Instead I found the TColorPicker object and I think I can use that instead.


Reply With Quote


