unit Main;
{PUBDIST}
interface
uses
IWAppForm, IWApplication, IWTypes, IWCompButton, IWCompEdit, Classes,
Controls, IWControl, IWCompLabel, Dialog, IWHTMLControls;
type
TformMain = class(TIWAppForm)
IWLabel1: TIWLabel;
editText: TIWEdit;
butnOk: TIWButton;
IWLink1: TIWLink;
procedure butnOkClick(Sender: TObject);
procedure IWAppFormCreate(Sender: TObject);
procedure IWLink1Click(Sender: TObject);
public
FDialogForm: TformDialog;
end;
implementation
{$R *.dfm}
uses
SysUtils;
procedure TformMain.butnOkClick(Sender: TObject);
var
s: string;
begin
s := Trim(editText.Text);
editText.Text := '';
if s = '' then begin
WebApplication.ShowMessage('Please enter some text.');
end else begin
with FDialogForm do begin
IWMemo1.Lines.Add(s);
Inc(FCount);
Show;
end;
end;
end;
procedure TformMain.IWAppFormCreate(Sender: TObject);
begin
FDialogForm := TformDialog.Create(WebApplication);
end;
procedure TformMain.IWLink1Click(Sender: TObject);
begin
WebApplication.Terminate('Good bye!');
end;
end.
AppMode模式的IntraWeb应用程序
IWAppForm应用实例
最新推荐文章于 2024-12-18 11:00:06 发布
本文介绍了一个使用IWAppForm创建简单Web应用程序的例子。该程序包括一个输入框供用户输入文本,一个按钮用于提交文本,以及一个链接用于退出程序。提交后的文本将显示在一个对话框中。
2076

被折叠的 条评论
为什么被折叠?



