问一个菜鸟问题:CoolBar怎样设置长度

LRobert 2002-11-07 05:12:41
同上
...全文
31 9 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
LRobert 2002-11-20
  • 打赏
  • 举报
回复
买单
xianyunguhe 2002-11-20
  • 打赏
  • 举报
回复
你的把它的Wrapable属性设置为FALSE后,才可以执行LIUX330老兄的那段代码
CloneCenter 2002-11-20
  • 打赏
  • 举报
回复
楼主,我来接分了。告诉大家用 ControlBar 控件。
李志林HZ 2002-11-08
  • 打赏
  • 举报
回复
TToolBar *Mytool=new TToolBar(this);
Mytool->Parent=CoolBar;


new some speedbutton on it:

TSpeedButton *spButton=new TSpeedButton(this);
spButton->Parent=Mytool;
spButton->Top=Mytool->Top;
spButton->Left=Mytool->Left;
spButton->Hint="Edit";
spButton->ShowHint=true;
spButton->Caption="Edit";
spButton->Flat=true;

LRobert 2002-11-08
  • 打赏
  • 举报
回复
难道大家已经不肖与回答了吗,帮忙亚
LRobert 2002-11-07
  • 打赏
  • 举报
回复
像BCB主界面中,主菜单的效果,它是有长度的,并且有Caption
LRobert 2002-11-07
  • 打赏
  • 举报
回复
不可以吧,老大
liux330 2002-11-07
  • 打赏
  • 举报
回复
设置ToolBar1->Align=alNone;
就可以设置它的尺寸了
ToolBar1->Width=;
ToolBar1->Length=;

不过它的位置得用代码设置好
ToolBar1->Left=0;
ToolBar1->Top=0;
LRobert 2002-11-07
  • 打赏
  • 举报
回复
错了,是CoolBar中的ToolBar

13,873

社区成员

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

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