Delphi – How to prevent selection of specific colors in Component TColorbox?

Does anyone know how to remove a certain color from the drop-down list of TColorBox?
You need to delete the color in the list:

procedure TForm7.FormCreate(Sender: TObject);
var i: Integer;
begin
i := ColorBox1.Items.IndexOf('clGreen');
if i < > -1 then
ColorBox1.Items.Delete(i)
else
Showmessage('invalid color');
end;

Does anyone know how to delete a certain color from the drop-down list of TColorBox?

You need to delete the color in the list:

procedure TForm7.FormCreate(Sender: TObject);< br />var i: Integer;
begin
i := ColorBox1.Items.IndexOf('clGreen');
if i <> -1 then
ColorBox1.Items. Delete(i)
else
Showmessage('invalid color');
end;

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 3139 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.