Welcome, Guest
Username: Password: Remember me
CodeTyphon Cross-Build Development, discussions and problems
  • Page:
  • 1

TOPIC:

Can not show other form in project 9 years 9 months ago #5733

  • Ahmad
  • Ahmad's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 35
  • Thank you received: 2
Hi all

I create an android project with Typhon. This project have two form, but on form 1 I need to show form 2 with below code:
Form2.Show;
or
Form2.ShowModal;

But don't work any code in emulator, and when click button that include this command, exit from program.

I test this APK file on Android versions 2.2 and 4.0.
Do you any solution?

Please Log in or Create an account to join the conversation.

Last edit: by Ahmad.

Can not show other form in project 9 years 9 months ago #5734

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4512
  • Thank you received: 1101
Sir, did you try to hide the "main form" after "show" the second form?
how many forms can show the Android in a simple applications?
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Can not show other form in project 9 years 9 months ago #5736

  • Ahmad
  • Ahmad's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 35
  • Thank you received: 2
Hi.

Yes.
First I don't know your suggestion, but then your suggestion write this code:
frmTestMain.Show;
  Self.Hide;
even I think to change priority code line and write:
Self.Hide;
  frmTestMain.Show;
But don't work any codes and, Android exit from my application.

Please Log in or Create an account to join the conversation.

Last edit: by Ahmad.

Can not show other form in project 9 years 9 months ago #5738

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4512
  • Thank you received: 1101
My suggestion, try to use Tframe comp
one mainform, many frames
the mainform load frames
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Sternas Stefanos.

Can not show other form in project 9 years 8 months ago #5744

  • Ahmad
  • Ahmad's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 35
  • Thank you received: 2
Hi
Don't solve my problem even with TFrame.
With create and show a TFrame into onCreate event mainform, it's view, but when click on this frame application is close.
With use this code into a button don't work.
  f := TFrame1.Create(Self);
  f.Parent:=Self;
  f.Align:=alClient;

Please Log in or Create an account to join the conversation.

  • Page:
  • 1