求解?

mengli 2001-04-19 09:24:00
请问ToolButton的用法,其图标如何装载?
...全文
109 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
rh 2001-04-19
  • 打赏
  • 举报
回复
ALNG(阿良) 的是对的
应该可以实现

注意是ImageList而不是image
在ImageList里要双击它选定你需要的图片
在toolbar里生成你需要的按钮
设置Images和hotImages(有必要的话)
孩皮妞野 2001-04-19
  • 打赏
  • 举报
回复
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...
我不懂电脑 2001-04-19
  • 打赏
  • 举报
回复
ToolButton BCB中没有呀?
孩皮妞野 2001-04-19
  • 打赏
  • 举报
回复
这样吧,你:
File/New.../Projects/MDI Application,

and you get a very good example. An MDI framework. A lot of cool things including ToolBar. And ActionList
孩皮妞野 2001-04-19
  • 打赏
  • 举报
回复
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.
mengli 2001-04-19
  • 打赏
  • 举报
回复
可是我试了,实现不了呀。
xycleo 2001-04-19
  • 打赏
  • 举报
回复
应该是指定TImage控件!!!!图标在TImage中加入

13,824

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧