禁用状态下如何在Tspeedbutton中显示位图图像 [英] How to Show bitmap image in Tspeedbutton when it is in disables state
问题描述
我正在以动态方式在制表符更改过程中创建速度按钮,我想使速度按钮处于禁用状态,当禁用它时,它不会显示加载的图像。禁用状态下如何在速度按钮上显示图像。我正在使用代码
SpeedButton,SpeedButton.Glyph.LoadFromFile(Path)并使用SpeedButton.numGlyphs = 1
字形中使用的图像最多可包含4张图像,每个SpeedButton状态(上,下,禁用,选定)各一张。
这些图像相邻放置在用于SpeedButton的Glyph属性的单个位图文件中彼此映射。使用NumGlyphs指示该字形中使用了多少个图像(例如,您只能使用2个图像或仅3个图像)。
阅读有关SpeedButton Glyph属性的文档。 / p>
I am dyanamically creating speedbuttons in tab change procedure, i want to made speed button disabled , when it is disabled it is not showing the loaded image. how to show the image on speed button when it is in disable state. I am using the code SpeedButton,SpeedButton.Glyph.LoadFromFile(Path) AND USING SpeedButton.numGlyphs =1
The image used in the Glyph can contain upto 4 images, one for each state of the SpeedButton (up, down, disabled, selected).
The images are placed adjacent to each other in a single bitmap file that is used for the Glyph property of the SpeedButton. Use NumGlyphs to indicate how many images are used in the Glyph (eg. you can use only 2 or only 3 images).
Read the documentation on SpeedButton Glyph property.
这篇关于禁用状态下如何在Tspeedbutton中显示位图图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!