كيف يمكن تزيين Button في دلفي7
#5
يمكنك استعمال Speedbutton الموجود في التبويب Additional كما اخبرك الأخ PLANSHARP.
أو إستعمال نسخ دلفي الحديثة.
كما يمكنك البحث عن مكونات تدعم هذه الخاصية.
أيضا
PHP كود :
unit Unit1;

interface

uses
  Windows
, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
 
 Dialogs, StdCtrls, Buttons, XPMan;

type
  TButton 
= class(StdCtrls.TButton)
 
 protected
    procedure WMPaint
(var Message: TWMPaint); message WM_PAINT;
 
 end;

type
  TForm1 
= class(TForm)
 
   Button1: TButton;
 
   XPManifest1: TXPManifest;
 
 private
    
{ Private declarations }
 
 public
    
{ Public declarations }
 
 end;

var
 
 Form1: TForm1;

implementation

{$R *.dfm}

procedure TButton.WMPaint(var Message: TWMPaint);
begin
  inherited
;
 
 DrawIconEx(GetDC(Handle), 5, (Height div 2) - 8, Application.Icon.Handle, 16, 16, 0, 0, DI_NORMAL);
end;

end. 
سبحان الله وبحمده سبحان الله العظيم
[-] كل من 1 user says قال شكرا ل Agmcz على المشاركة المفيدة
  • Delphi_2007
الرد


الردود في هذا الموضوع
RE: كيف يمكن تزيين Button في دلفي7 - بواسطة Agmcz - 13-10-2017, 11:43 PM
RE: كيف يمكن تزيين Button في دلفي7 - بواسطة bouh25 - 14-10-2017, 03:56 PM

التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم