Einzelnen Beitrag anzeigen

pmc

Registriert seit: 9. Sep 2003
Ort: Düsseldorf
78 Beiträge
 
Delphi 6 Personal
 
#5

Re: Neue TImage Komponente entwickeln

  Alt 12. Sep 2003, 23:36
Hier mal mein Code :
Delphi-Quellcode:
 TBBox = class(timage)
  private
    FBBoxState : TBBoxState;
    FBitmapNormal : String;
    FBitmapOver : String;
    FBitmapClick : String;
    { Private declarations }
  protected
    procedure MouseMove(shift: TShiftState; x,y:Integer); override;
    { Protected declarations }
  public
    property BBoxState : TBBoxState read FBBoxState write FBBoxState;
    { Public declarations }
  published
    property Width;
    property BmpNormal : String read FBitmapNormal write FBitmapNormal;
    property BmpOver : String read FBitmapOver write FBitmapOver;
    property BmpClick : String read FBitmapClick write FBitmapClick;
    { Published declarations }
  end;

procedure Register;

implementation

procedure TBBox.MouseMove(shift: TShiftState; x,y:Integer);
begin
TBBox.picture.loadfromfile(FBitmapOver); (aber das funzt ja so nicht)
inherited MouseMove(shift,x,y);
end;
Woher soll ich wissen was ich denke,
wenn ich noch nicht gehört habe was ich sage?
  Mit Zitat antworten Zitat