AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Delphi window

Ein Thema von question · begonnen am 21. Apr 2013 · letzter Beitrag vom 25. Apr 2013
Antwort Antwort
question

Registriert seit: 17. Apr 2013
97 Beiträge
 
#1

Delphi window

  Alt 21. Apr 2013, 06:38
Hello,

I am using Delphi 2010 and facing some problem to open multiple window for example , when I run the program then i see the main window with some navigation buttons which are linked to another window , but the problem is: I cannot open multiple window by minimizing one after another, I always need to close the currently opened window in order to open the other one, I have tried to change the value from FormStyle property, but i am not successful,could you please give me some suggestion to solve this problem.

I would be thankful for your reply
  Mit Zitat antworten Zitat
Benutzerbild von haentschman
haentschman

Registriert seit: 24. Okt 2006
Ort: Seifhennersdorf / Sachsen
5.297 Beiträge
 
Delphi 12 Athens
 
#2

AW: Delphi window

  Alt 21. Apr 2013, 06:52
Moin...

How you show the windows ? Show or ShowModal ?

  Mit Zitat antworten Zitat
question

Registriert seit: 17. Apr 2013
97 Beiträge
 
#3

AW: Delphi window

  Alt 21. Apr 2013, 07:05
Moin...

How you show the windows ? Show or ShowModal ?

Moin..
Thanks for your reply

I use the ShowModal
  Mit Zitat antworten Zitat
Benutzerbild von haentschman
haentschman

Registriert seit: 24. Okt 2006
Ort: Seifhennersdorf / Sachsen
5.297 Beiträge
 
Delphi 12 Athens
 
#4

AW: Delphi window

  Alt 21. Apr 2013, 07:15
That`s it...
Zitat:
Use ShowModal to show a form as a modal form. A modal form is one where the application can't continue to run until the form is closed.
use Show.

http://docwiki.embarcadero.com/Libra...Form.ShowModal


Geändert von haentschman (21. Apr 2013 um 07:17 Uhr)
  Mit Zitat antworten Zitat
question

Registriert seit: 17. Apr 2013
97 Beiträge
 
#5

AW: Delphi window

  Alt 21. Apr 2013, 07:40
Thanks for your reply,i am going to try it out
actually i am new to Delphi, therefore i have another question, i have read some tutorial to understand the difference between procedure and function, but still now i am not so clear. for example ,i have seen that, the Show is a procedure whereas ShowMdal is a function, It would be so kind of you, if you tell me the difference between them, Thanks in advance.
  Mit Zitat antworten Zitat
madtom

Registriert seit: 24. Feb 2005
Ort: Hamburg
115 Beiträge
 
Delphi XE7 Professional
 
#6

AW: Delphi window

  Alt 21. Apr 2013, 08:19
Hy,

- a function gives you a result value, if the work is done,
- a procedure doesn't give you anything back (similar to the "void" in C++).

You can do something with the result of the funtion, for instance ShowModal returns the "ModalResult". With the ModalResult you can see in which way the modal form was closed, may be by pressing the OK-Button (mrOK) or the Cancel-Button (mrCancel) (see help).
This values you can set in the Object Inspector for the Buttons of your modal form.
Thomas
Delphi Programming

Geändert von madtom (21. Apr 2013 um 08:26 Uhr)
  Mit Zitat antworten Zitat
question

Registriert seit: 17. Apr 2013
97 Beiträge
 
#7

AW: Delphi window

  Alt 23. Apr 2013, 05:49
Hi,
I have try it out with Show instead of ShowModal, now i can open multiple window as i wanted but the problem is , when i click on one button it opens two windows together and i also cannot close the window properly (i mean when i click to close ,it does not close , then i need to force to close the window)

do you have any suggestion please ?
  Mit Zitat antworten Zitat
Benutzerbild von Sir Rufo
Sir Rufo

Registriert seit: 5. Jan 2005
Ort: Stadthagen
9.454 Beiträge
 
Delphi 10 Seattle Enterprise
 
#8

AW: Delphi window

  Alt 23. Apr 2013, 06:52
You should give us a little bit more information (source code, form properties).

It seems that you are building a MDI application and Delphi-Referenz durchsuchenTForm.FormStyle is set to fsMDIChild .
The behaviour (minimize on close) is as designed and you should use the Delphi-Referenz durchsuchenTForm.OnClose Event.

But this is just a guess without any code or more detailed information from you
Kaum macht man's richtig - schon funktioniert's
Zertifikat: Sir Rufo (Fingerprint: ‎ea 0a 4c 14 0d b6 3a a4 c1 c5 b9 dc 90 9d f0 e9 de 13 da 60)
  Mit Zitat antworten Zitat
question

Registriert seit: 17. Apr 2013
97 Beiträge
 
#9

AW: Delphi window

  Alt 25. Apr 2013, 22:19
You should give us a little bit more information (source code, form properties).

It seems that you are building a MDI application and Delphi-Referenz durchsuchenTForm.FormStyle is set to fsMDIChild .
The behaviour (minimize on close) is as designed and you should use the Delphi-Referenz durchsuchenTForm.OnClose Event.

But this is just a guess without any code or more detailed information from you
Thanks for your response , the FormStyle property is set to : fsNormal ,
and i have used the following events
FormCreate,
FormShow,
SormActive and
FormClose.
i want to open multiple window by minimizing one after another ,therefore i have used Show instead of ShowModal, but the problem is, when i click on one button to open one windows it open two windows together ,i need your suggestion, what should i change? after Form.Show, do i need to make it free or release ? actually i dont have clear idea, it would be nice to have your suggestion, thanks in advance
  Mit Zitat antworten Zitat
Benutzerbild von Sir Rufo
Sir Rufo

Registriert seit: 5. Jan 2005
Ort: Stadthagen
9.454 Beiträge
 
Delphi 10 Seattle Enterprise
 
#10

AW: Delphi window

  Alt 25. Apr 2013, 22:37
You should give us a little bit more information (source code, form properties).

It seems that you are building a MDI application and Delphi-Referenz durchsuchenTForm.FormStyle is set to fsMDIChild .
The behaviour (minimize on close) is as designed and you should use the Delphi-Referenz durchsuchenTForm.OnClose Event.

But this is just a guess without any code or more detailed information from you
Thanks for your response , the FormStyle property is set to : fsNormal ,
and i have used the following events
FormCreate,
FormShow,
SormActive and
FormClose.
i want to open multiple window by minimizing one after another ,therefore i have used Show instead of ShowModal, but the problem is, when i click on one button to open one windows it open two windows together ,i need your suggestion, what should i change? after Form.Show, do i need to make it free or release ? actually i dont have clear idea, it would be nice to have your suggestion, thanks in advance
Sorry, but you show us so much code, so it will take some time to get into ...

Why do you think we have magic eyes to look at your screen or your harddisc or even inside your brain?
Be sure, we can't, and so we can't answer your question.

Think about how we can get a clue what you are doing and why it is not working as expected.
Kaum macht man's richtig - schon funktioniert's
Zertifikat: Sir Rufo (Fingerprint: ‎ea 0a 4c 14 0d b6 3a a4 c1 c5 b9 dc 90 9d f0 e9 de 13 da 60)
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 04:23 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz