就像IE上的后退,前进,停止是怎么把图标和文字一起放上去的啊我是新手,很菜的!

解决方案 »

  1.   

    SpeedButton1.Glyph.loadfromfile('添加bmp文件');
    SpeedButton1.caption:='添加文字';
    SpeedButton1.layout:= blGlyphTop;
      

  2.   

    |关闭图标    |
    |  关闭      |
    ------------
    在对象检视器里把speedbutton的caption设置为关闭
    然后在glyph添加你所需要的图标
    再在layout属性设为blGlyphTop就可以了
      

  3.   

    这样也行
    件一个 ToolBar
    把 Align:= alNone;
       AutoSize:= true;
       Flat:=True;
       images:={正常图标 imagelist};
       ShowCaptions:=true;
       EdgeInner:=esNone
       EdgeOuter:=esNone
       DisabledImages:={灰色图标 imagelist 就和IE一样了 一定要和 images 的一样就是颜色不同}
    {否则就有 鼠标移入移出 切换图标的效果 也不错}在 ToolBar 的上面建立一个 ToolButton
    ToolButton.imageindex:=1;(你需要的)//OK 一行代码都不用写
      

  4.   

    ToolButton.Caption:='你需要的文字'
      

  5.   

    http://expert.csdn.net/Expert/topic/2921/2921602.xml?temp=.5679438