Forum > LCL

[solved - kind of] Speedbutton - ImageIndex - Image does not show at runtime

(1/4) > >>

Nicole:
I have a speedbutton. There I can load a glyph inside, - works fine.

To save ressources I would prefer to load it from an imagindex.

My problem: At design-time does the image show up, at runtime it does not.
The "invisible image" takes some pixels at runtime and shifts the text of the speedbutton slightly to the right.

What can I do, that the image of the designtime is there at runtime as well?

jamie:
are you using AUTOSIZE := True?

Can you show us a screen shot of what it looks like ?

wp:
Did you assign an ImageList to the SpeedButton?

Nicole:
I tried to use autosize now: The same result.
Autosize is performed at design-time and at runtime.

Contrary
The image from the imagelist is only visible at design-time and not at runtime.

Screenshot attached

wp:
I don't know what you are doing, but here it is working as it should.

Navigation

[0] Message Index

[#] Next page

Go to full version