IntraWeb使BackButton生效

xiaohuan 2003-09-05 12:08:32
我用的是 IntraWeb 5.1.22
TMS1.2

我看到 IntraWeb 5.1.22 的demo里面可以使用IE的backbutton ,例子很简单但是我怎么也找不到它是怎么做到的,从代码里面根本看不出啊

那位大哥帮帮我,另外有关于intraweb的资料吗?

...全文
62 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
tccb 2003-09-05
  • 打赏
  • 举报
回复
intraweb开发有两种方式。AppMode和PageMode,即应用模式和页模式。
PageMode灵活性更强一些,可以支持backbutton
xiaohuan 2003-09-05
  • 打赏
  • 举报
回复
自己顶
xiaohuan 2003-09-05
  • 打赏
  • 举报
回复
搞定
bambino 2003-09-05
  • 打赏
  • 举报
回复
historyenabled属性改为true
不过有一点小问题,要写代码解决
xiaohuan 2003-09-05
  • 打赏
  • 举报
回复
下面的这个例子用的可是AppMode ,backbutton能用,代码也很简单,可我就是不明白是怎么做到的。

program BackButton;
uses
Forms,
IWMain,
ServerController in 'ServerController.pas' {IWServerController: TIWServerController},
Main in 'Main.pas' {MainForm: TIWFormModuleBase},
Second in 'Second.pas' {SecondForm: TIWAppForm},
Third in 'Third.pas' {ThirdForm: TIWAppForm};

{$R *.res}

begin
Application.Initialize;
Application.CreateForm(TformIWMain, formIWMain);
Application.Run;
end.


////////////////////////////////////////
unit Main;

interface

uses
Classes, SysUtils, IWAppForm, IWApplication, IWTypes, IWCompButton,
IWCompEdit, Controls, IWBaseControl, IWControl, IWCompLabel;

type
TMainForm = class(TIWAppForm)
IWLabel1: TIWLabel;
IWLabel2: TIWLabel;
IWLabel3: TIWLabel;
editUsername: TIWEdit;
editPassword: TIWEdit;
butnLogin: TIWButton;
IWLabel4: TIWLabel;
lablLoginStatus: TIWLabel;
procedure butnLoginClick(Sender: TObject);
public
end;

implementation
{$R *.dfm}

uses
ServerController, Second;

procedure TMainForm.butnLoginClick(Sender: TObject);
begin
if (editUsername.Text = 'demo') and (editPassword.Text = 'demo') then begin
TSecondForm.Create(WebApplication).Show;
end else begin
lablLoginStatus.Visible := True;

end;
end;

initialization
TMainForm.SetAsMainForm
end.


////////////////////////////////////////////////
unit Second;

interface

uses
Classes, SysUtils, IWAppForm, IWApplication, IWTypes, Controls,
IWBaseControl, IWControl, IWCompText, IWHTMLControls;

type
TSecondForm = class(TIWAppForm)
IWText1: TIWText;
IWLink1: TIWLink;
procedure IWLink1Click(Sender: TObject);
public
end;

implementation

uses Third;

{$R *.dfm}

procedure TSecondForm.IWLink1Click(Sender: TObject);
begin
TThirdForm.Create(WebApplication).Show;
end;

end.









官方最新版14.2.3,支持XE3~10.2 Important Installation Notices Windows XP Users Windows XP SP2 introduced a firewall setting that can block communication with web server applications, by closing certain ports. If prompted by the firewall to unblock certain ports on loading Delphi, please acknowledge for correct functioning of IntraWeb. For more information, please see the FAQ on our web site at intraweb/FAQ> . First time installing IntraWeb? Please make sure you removed the Bundled Edition of IntraWeb that is included with your RAD Studio / Delphi / C++ Builder. If you still did not remove the Bundled Edtion, please access the link below before proceeding rading IntraWeb.html> 3rd Party Notices IntraWeb XII uses NativeXML for content parsing/generation in the IWP RSS feed modules NativeXML License information Copyright (c) 2003 - 2011 Simdesign BV. All rights reserved. THIS SOFTWARE IS PROVIDED BY SIMDESIGN BV "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SIMDESIGN BV OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

1,594

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 网络通信/分布式开发
社区管理员
  • 网络通信/分布式开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧