Recent

Author Topic: Show Form2  (Read 18585 times)

Sven

  • New Member
  • *
  • Posts: 16
Show Form2
« on: August 21, 2010, 08:05:53 pm »
Hello

i know i am nerving you ;)
but i searched ~ an hour and i didnt't find something.

i made a second Form named Form2 And i want to show it here:
Code: [Select]
procedure TForm1.MenuItem7Click(Sender: TObject);
begin
    //here i want to put in the code to show form 2
end;

i tasted a lot of possible things but i didn't work.


Please help me. If you know a good page ti find easy and fast information about Lazarus/freepascal i like to know it to.

i have to use Lazarus for school, so i cauldn't use another programm

BlueIcaro

  • Hero Member
  • *****
  • Posts: 820
    • Blog personal
Re: Show Form2
« Reply #1 on: August 21, 2010, 08:12:39 pm »
Add the name of the unit where is defined Form2 to your uses clause, like this:
Quote
uses unit2;
just after implementation clause.

In your event, put:

Quote
Form2.show;

/BlueIcaro

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Show Form2
« Reply #2 on: August 21, 2010, 08:13:24 pm »
« Last Edit: August 21, 2010, 08:16:44 pm by typo »

BlueIcaro

  • Hero Member
  • *****
  • Posts: 820
    • Blog personal
Re: Show Form2
« Reply #3 on: August 21, 2010, 08:53:02 pm »
Feel free to ask.

Of course. One a teacher tell me: "Who ask is a fool five minutes, who doesn't ask is a fool for all the life". He wanted to say: "Don't feel as a fool, if you have a question, do it".

/blueIcaro

Sven

  • New Member
  • *
  • Posts: 16
Re: Show Form2
« Reply #4 on: August 21, 2010, 09:05:54 pm »


http://www.delphibasics.co.uk/index.html

why delphi? is it the same?

Feel free to ask.

 :D I like to hear it

ehm  maybe you no a german site or is there no germen help site?(because it#s easier to understand for me and i can better say what i wanna have)
« Last Edit: August 21, 2010, 09:20:30 pm by Sven »

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Show Form2
« Reply #5 on: August 21, 2010, 09:09:45 pm »
Lazarus is fully compatible with Delphi.

Sven

  • New Member
  • *
  • Posts: 16
Re: Show Form2
« Reply #6 on: August 21, 2010, 09:18:32 pm »
Lazarus is fully compatible with Delphi.

ok that's helpful ;)

know i understand why our teacher want to use Lazarus.
first it's free
second before he has programmed with delphi

BlueIcaro

  • Hero Member
  • *****
  • Posts: 820
    • Blog personal
Re: Show Form2
« Reply #7 on: August 21, 2010, 09:27:53 pm »

Germany: http://www.lazarusforum.de

/BlueIcaro

JD

  • Hero Member
  • *****
  • Posts: 1907
Re: Show Form2
« Reply #8 on: August 21, 2010, 09:44:40 pm »
Lazarus is fully compatible with Delphi.

Not quite. Lazarus does not support form inheritance. Sorting DBGrids the Delphi way does not work in Lazarus etc, etc. There are others.

Some of these incompatibilities are due to non-portable Windows specific issues
Linux Mint - Lazarus 4.0/FPC 3.2.2,
Windows - Lazarus 4.0/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Show Form2
« Reply #9 on: August 21, 2010, 09:59:04 pm »
Then Lazarus is 99% compatible with Delphi.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8819
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Show Form2
« Reply #10 on: August 23, 2010, 10:50:12 am »
Code: [Select]
Lazarus does not support form inheritanceEhm! Are you sure? ;)
http://wiki.lazarus.freepascal.org/IDE_Development#VFI_-_Visual_Form_Inheritance

Some of the things have worked very well, esp. Frames (this is a great feature)

 

TinyPortal © 2005-2018