Jump to content


Check out our Community Blogs

BramS

Member Since 17 Jan 2011
Offline Last Active Mar 01 2011 11:54 AM
-----

Posts I've Made

In Topic: Several windows

14 February 2011 - 01:29 PM

Thanks for your advise, I'll try it tomorrow or wednesday (I'm lacking time right now)

@LuthfiHakim: Thanks for the information about the local uses, I didn't know that I had to use it.:)

In Topic: Several windows

12 February 2011 - 08:49 AM

@LuthfiHakim: The code of Unit1 didn't work, didn't recognize form2
I have actually no idea where I have to place the code of Zorfox (project source, unit1, unit2?)

In Topic: Several windows

12 February 2011 - 08:34 AM

I did this as first simple try

in Unit1:
procedure TForm1.Button1Click(Sender: TObject);
begin
  Form1.hide;
  Form2.show;
end;

in the project source:
program project1;

{$mode objfpc}{$H+}

uses
  {$IFDEF UNIX}{$IFDEF UseCThreads}
  cthreads,
  {$ENDIF}{$ENDIF}
  Interfaces, // this includes the LCL widgetset
  Forms, unitA, LResources, Unit2
  { you can add units after this };

{$IFDEF WINDOWS}{$R project1.rc}{$ENDIF}

begin
  {$I project1.lrs}
  Application.Initialize;
  Application.CreateForm(TForm1, Form1);
  Application.CreateForm(TForm2, Form2);
  Form2.hide;
  Application.Run;
end.


I also tried the example of zorfox
Both didn't work, maybe did I misunderstand Zorfox and placed the code on the wrong place?

In Topic: Several windows

12 February 2011 - 07:18 AM

@Zorfox: Thank you, I'll try this.

In Topic: Several windows

12 February 2011 - 02:13 AM

What I mean works like an instalation wizard.

e.g: You have to give your name at the first page, you press next and you have to choose a mode or something like that, and the next page is the actual program and the user input will be used in it.
I don't know if this works like a splash window.

Or do I have to work with page controls or tabs?

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download