Jump to content
softtouch

Raize TRZCheckBox and CustomGlyphImages

Recommended Posts

Delphi 12: Does anybody know how the customglyphimages is supposed to work with TRzCheckBox of the Raize Components?

I set the imagelist, which hold various 16x16 images. In the designer, they are also visible instead of the default checkmarks, but when I run the program, it only shows the normal checkboxes instead.

Share this post


Link to post
9 hours ago, softtouch said:

when I run the program, it only shows the normal checkboxes instead.

Got same issue.
As workaround, I force UseCustomGlyphs to true at runtime.
 

procedure TForm1.FormCreate(Sender: TObject);
begin
for var ctrl in GetControls()
   do begin
     if ctrl is TRzCheckBox then TRZCheckBox(ctrl).UseCustomGlyphs:=true;
   end;
end;

 

 

Share this post


Link to post

The issue I see is that when the image sin the imagelist are set to 16x16, they will not appear in the checkbox. Any size different that that will show the images. Of course, everything more than 16x16 will cur them and you see only a part of them... so it must be a bug that just the needed 16x16 images are not displayed.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×