Componentes.Terceros.TRichView/12.0.4/Demos/DelphiUnicode/Editors/Editor 1/PropFrm.pas
david fddb8c1dff Importación inicial con versión 12.0.4
NO HAY CÓDIGO FUENTE

git-svn-id: https://192.168.0.254/svn/Componentes.Terceros.TRichView@1 b34d35ef-135b-4489-b9d1-9916e9c25524
2010-01-11 12:26:42 +00:00

68 lines
1.6 KiB
ObjectPascal

unit PropFrm;
interface
{$I RV_Defs.inc}
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ComCtrls, StdCtrls, ExtCtrls;
type
TfrmProp = class(TForm)
PageControl1: TPageControl;
tsBullet: TTabSheet;
tsHotSpot: TTabSheet;
btnOk: TButton;
btnCancel: TButton;
Label1: TLabel;
txtTag: TEdit;
rgBullet: TRadioGroup;
tsPicture: TTabSheet;
rgHotSpot: TRadioGroup;
Label3: TLabel;
txtName: TEdit;
Image1: TImage;
btnChangePicture: TButton;
tsText: TTabSheet;
lblText: TLabel;
tsComponent: TTabSheet;
lblComponent: TLabel;
txtWidth: TEdit;
Label2: TLabel;
txtHeight: TEdit;
Label4: TLabel;
rgPicVAlign: TRadioGroup;
rgCtrlVAlign: TRadioGroup;
tsBreak: TTabSheet;
txtBreakWidth: TEdit;
Label5: TLabel;
rgBreakColor: TRadioGroup;
rgBreakStyle: TRadioGroup;
procedure btnChangePictureClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frmProp: TfrmProp;
implementation
uses Unit1;
{$R *.DFM}
procedure TfrmProp.btnChangePictureClick(Sender: TObject);
begin
Form1.OpenDialog1.Title := 'Changing Image';
{$IFDEF RICHVIEWDEF3}
Form1.OpenDialog1.Filter := 'Graphics(*.bmp;*.wmf;*.ico;*.jpg)|*.bmp;*.wmf;*.ico;*.jpg|All(*.*)|*.*';
{$ELSE}
Form1.OpenDialog1.Filter := 'Graphics(*.bmp;*.wmf;*.ico)|*.bmp;*.wmf;*.ico|All(*.*)|*.*';
{$ENDIF}
if Form1.OpenDialog1.Execute then
Image1.Picture.LoadFromFile(Form1.OpenDialog1.FileName);
end;
end.