AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Projekte TInfoBox - eine InfoBox direkt auf dem Desktop
Thema durchsuchen
Ansicht
Themen-Optionen

TInfoBox - eine InfoBox direkt auf dem Desktop

Ein Thema von 3_of_8 · begonnen am 1. Aug 2006 · letzter Beitrag vom 9. Apr 2007
Antwort Antwort
Seite 4 von 6   « Erste     234 56      
EDatabaseError

Registriert seit: 11. Mai 2005
Ort: Göppingen
1.238 Beiträge
 
Delphi 2007 Professional
 
#1

Re: TInfoBox - eine InfoBox direkt auf dem Desktop

  Alt 8. Aug 2006, 14:33
Öhm, hast du jetzt ma die Sourcen wie ich das Ding anwenden kann

Mfg
Tobi
Tobias
It's not a bug, it's a feature.
  Mit Zitat antworten Zitat
Nils_13

Registriert seit: 15. Nov 2004
2.647 Beiträge
 
#2

Re: TInfoBox - eine InfoBox direkt auf dem Desktop

  Alt 9. Aug 2006, 08:26
Zitat von EDatabaseError:
Öhm, hast du jetzt ma die Sourcen wie ich das Ding anwenden kann

Mfg
Tobi
Genau, wir wollen Codes sehen. Oder erklär mal, wie man sie erstellt. Ich habe es mit
Delphi-Quellcode:
bla := InfoBox.Create;
bla.bla2.bla3;
gemacht.
  Mit Zitat antworten Zitat
Benutzerbild von 3_of_8
3_of_8

Registriert seit: 22. Mär 2005
Ort: Dingolfing
4.129 Beiträge
 
Turbo Delphi für Win32
 
#3

Re: TInfoBox - eine InfoBox direkt auf dem Desktop

  Alt 9. Aug 2006, 14:05
Also ich würde es im Formulardesigner auf ne Form ziehen und dann Komponenten draufpacken. Angezeigt wird es dann einfach mit InfoBox.Show;

Allerdings kann mans natürlich auch zur Laufzeit erstellen, wenn man will.

Delphi-Quellcode:
InfoBox:=TInfoBox.Create(nil);
InfoBox.Width:=160;
InfoBox.Height:=100;
lbl:=TLabel.Create(InfoBox);
lbl.Left:=8;
lbl.Top:=8;
lbl.Caption:='Blubb';
InfoBox.Show;
Manuel Eberl
„The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.“
- Terry Pratchett
  Mit Zitat antworten Zitat
Nils_13

Registriert seit: 15. Nov 2004
2.647 Beiträge
 
#4

Re: TInfoBox - eine InfoBox direkt auf dem Desktop

  Alt 9. Aug 2006, 14:27
Und wie gebe ich die Komponente wieder frei ? Mit oder ohne Freigabe bekomme ich beim Beenden des Programms eine AV.
  Mit Zitat antworten Zitat
Benutzerbild von Meflin
Meflin

Registriert seit: 21. Aug 2003
4.856 Beiträge
 
#5

Re: TInfoBox - eine InfoBox direkt auf dem Desktop

  Alt 9. Aug 2006, 14:45
Zitat von Nils_13:
Und wie gebe ich die Komponente wieder frei ?
wie alles mit Blubb.Free

  Mit Zitat antworten Zitat
EDatabaseError

Registriert seit: 11. Mai 2005
Ort: Göppingen
1.238 Beiträge
 
Delphi 2007 Professional
 
#6

Re: TInfoBox - eine InfoBox direkt auf dem Desktop

  Alt 9. Aug 2006, 15:33
Zitat von 3_of_8:
Also ich würde es im Formulardesigner auf ne Form ziehen und dann Komponenten draufpacken. Angezeigt wird es dann einfach mit InfoBox.Show;

Allerdings kann mans natürlich auch zur Laufzeit erstellen, wenn man will.

Delphi-Quellcode:
InfoBox:=TInfoBox.Create(nil);
InfoBox.Width:=160;
InfoBox.Height:=100;
lbl:=TLabel.Create(InfoBox);
lbl.Left:=8;
lbl.Top:=8;
lbl.Caption:='Blubb';
InfoBox.Show;

und wie sieht das in einer Anwendung aus??? So wie in deinem Periodensystem als Hint könnte ichs nämlich gebrauchen
Tobias
It's not a bug, it's a feature.
  Mit Zitat antworten Zitat
Nils_13

Registriert seit: 15. Nov 2004
2.647 Beiträge
 
#7

Re: TInfoBox - eine InfoBox direkt auf dem Desktop

  Alt 9. Aug 2006, 19:12
Zitat von Meflin:
Zitat von Nils_13:
Und wie gebe ich die Komponente wieder frei ?
wie alles mit Blubb.Free
AV ist AV.

1. Muss ich die Komponente und die Instanz freigeben
2. Steht hier doch das Problem:
Zitat:
Mit oder ohne Freigabe bekomme ich beim Beenden des Programms eine AV.
Ich brauche die InfoBox außerdem für eine Listbox, von jedem Item sollen Sachen ausgelesen werden. Ein kleines Kurztutorial oder Codebeispiel wäre wirklich hilfreich. Du hast doch einen Webspace, also liegt da nicht das Problem.
  Mit Zitat antworten Zitat
Benutzerbild von 3_of_8
3_of_8

Registriert seit: 22. Mär 2005
Ort: Dingolfing
4.129 Beiträge
 
Turbo Delphi für Win32
 
#8

Re: TInfoBox - eine InfoBox direkt auf dem Desktop

  Alt 9. Aug 2006, 19:42
Also wenn du die Listbox in die Infobox tun willst, dann geht das nicht. Da musst du ne eigene Form nehmen. Denn Fokus in einem Panel ohne Parent - das kann nicht gut gehen.
Manuel Eberl
„The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.“
- Terry Pratchett
  Mit Zitat antworten Zitat
Nils_13

Registriert seit: 15. Nov 2004
2.647 Beiträge
 
#9

Re: TInfoBox - eine InfoBox direkt auf dem Desktop

  Alt 9. Aug 2006, 19:43
Ich will die Infobox doch nur an der richtigen Stelle mit .Show anzeigen, ohne die Listbox in die Infobox zu packen.
  Mit Zitat antworten Zitat
Benutzerbild von 3_of_8
3_of_8

Registriert seit: 22. Mär 2005
Ort: Dingolfing
4.129 Beiträge
 
Turbo Delphi für Win32
 
#10

Re: TInfoBox - eine InfoBox direkt auf dem Desktop

  Alt 9. Aug 2006, 19:49
Dann gehts.

Sorry, ich dachte irgendwie das ganze wäre selbsterklärend.

Du musst nur Labels auf die InfoBox packen, oder Images usw... Alles was keinen Fokus braucht.

Mit Show zeigst du sie dann an und mit Hide verbirgst du sie wieder.

Sorry, aber wozu ein Beispielprojekt?
Manuel Eberl
„The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.“
- Terry Pratchett
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 4 von 6   « Erste     234 56      


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 00:56 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz