求解?
请问ToolButton的用法,其图标如何装载? 问题点数:10、回复次数:7Top
1 楼xycleo()虚竹和尚()回复于 2001-04-19 21:37:00 得分 0
应该是指定TImage控件!!!!图标在TImage中加入Top
2 楼ALNG(?)回复于 2001-04-19 21:48:00 得分 10
1.加一个ImageList, 在其中加入图片
2. 加入一个ToolBar, set Images=ImageList1;
3. New ToolButtons, and set their ImageIndex. In fact the IDE set for you, but you 're free to make any adjustment.
Another concerned property of ToolBar is HotImages, Check Help.Top
3 楼mengli(oldman)回复于 2001-04-19 21:48:00 得分 0
可是我试了,实现不了呀。
Top
4 楼songhtao(三十年孤独)回复于 2001-04-19 21:52:00 得分 0
ToolButton BCB中没有呀?Top
5 楼ALNG(?)回复于 2001-04-19 21:52:00 得分 0
这样吧,你:
File/New.../Projects/MDI Application,
and you get a very good example. An MDI framework. A lot of cool things including ToolBar. And ActionListTop
6 楼ALNG(?)回复于 2001-04-19 21:54:00 得分 0
Did you put TButtons on the ToolBar ?
You're expected to new a ToolButton by right click your mouse on the ToolBar, and select New ToolButton, New Separator...Top
7 楼rh(花覆茅檐)回复于 2001-04-19 21:57:00 得分 0
ALNG(阿良) 的是对的
应该可以实现
注意是ImageList而不是image
在ImageList里要双击它选定你需要的图片
在toolbar里生成你需要的按钮
设置Images和hotImages(有必要的话)Top





