我想用一个button类的控件,但是他的背景颜色和我的界面不称,所以想改变一下,但是不知道怎么改变,哪位高手可以帮我呀!

解决方案 »

  1.   

    呵呵。可以改啊。
    button.color:=red;
    开个玩笑了。
      

  2.   

    用SpeedButtong,load一个漂亮的图片即可。
    或者用第三方控件,例如raize
      

  3.   

    TbitBtn和speedbutton只能添加图片,但整个背景颜色还是改变不了呀!
    可惜不是我需要德!是不是又要用第三方控件呀!
      

  4.   

    用API函数FillRect,具体的使用方法你可以查找Delphi帮助。
      

  5.   

    绝招:
    用个panel,Caption改成button的,大小调整了和button一般大,OnClick事件实现你的button的Onclick事件。颜色随便你变。
      

  6.   

    If a control's ParentColor property is true, then changing the Color property of the control's parent automatically changes the Color property of the control. When the value of the Color property is changed, the control's ParentColor property is automatically set to false.
      

  7.   

    bitbtn只可以改字的颜色吧???
    同意 samcrm(阿靖) 
    或者用第三方控件呀,很多的
      

  8.   

    随便找个能改背景色的控件,在OnClick里面实现他要用的效果不就可以了 ?
    编译出来谁知道你是不是用的button按钮啊??
    只要效果达到就可以了是不?
      

  9.   

    procedure TForm1.Panel1MouseDown(Sender: TObject; Button: TMouseButton;
      Shift: TShiftState; X, Y: Integer);
    begin
    Panel1.BevelOuter:=bvLowered ;
    end;procedure TForm1.Panel1MouseUp(Sender: TObject; Button: TMouseButton;
      Shift: TShiftState; X, Y: Integer);
    begin
    Panel1.BevelOuter:=bvRaised;
    showmessage('hehe,我其实是个Panel');
    end;