Thank-you for adding the new feature. The new checkbox visibility feature works well... but how do you uncheck a checkbox?
I tried:
procedure TForm1.Collection1CheckboxClick(Sender: TObject; idx: Integer;
var bChecked: Boolean);
{ Collection1CheckboxClick. }
begin
{ Delete the checked image? }
AdvTaskDialog1.Clear;
AdvTaskDialog1.Title := 'Warning';
AdvTaskDialog1.Instruction := 'Delete This Image';
AdvTaskDialog1.Content := 'Delete this image from the collection?';
AdvTaskDialog1.DialogPosition := dpOwnerFormCenter;
AdvTaskDialog1.Icon := tiQuestion;
AdvTaskDialog1.CommonButtons := [cbYes, cbNo];
if AdvTaskDialog1.Execute = mrYes then
begin
if bChecked then
begin
{ Remove the item from the collection }
Collection1.DeleteImage(idx);
Collection1.Update;
end;
end
else
begin
{ uncheck the checkbox if the image is not deleted }
Collection1.Checked[idx] := False;
Collection1.UpdateImage(idx);
Collection1.Update;
end;
end;
but the checkbox remains checked if the user selects no?
When the user does not delete the thumbnail the checkbox remains checked despite unchecking the checkbox and refreshing the thumbnail,
Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development