Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Buttons.Caption von einem Thread aus zu ändern, wie???? (https://www.delphipraxis.net/40335-buttons-caption-von-einem-thread-aus-zu-aendern-wie.html)

sakura 14. Feb 2005 15:29

Re: Buttons.Caption von einem Thread aus zu ändern, wie????
 
Zitat:

Zitat von Sanchez
Komponenten sind grundsätzlich published. Allerdings solltest du nicht direkt von außerhalb des Formulars auf dessen Komponenten zugreifen.

Falsch, wenn Delphi die einfügt, dann sind diese automated, bzw. in älteren Delphi-Version public, aber nie published ;-) automated hat in 99% der Fälle die gleichen Auswirkungen wie public, es ist lediglich für ActiveX und COM-Bibliotheken von Bedeutung wegen der dispids.

...:cat:...

Sanchez 14. Feb 2005 15:32

Re: Buttons.Caption von einem Thread aus zu ändern, wie????
 
Aha, ich dachte immer ohne Schlüsselwort = published.

sakura 14. Feb 2005 15:34

Re: Buttons.Caption von einem Thread aus zu ändern, wie????
 
Zitat:

Zitat von Sanchez
Aha, ich dachte immer ohne Schlüsselwort = published.

Nope, seit Delphi 3 oder 4 gilt es als automated, davor als public ;-)

...:cat:...

P.S.: automatic -> automated :wall:

sakura 14. Feb 2005 15:38

Re: Buttons.Caption von einem Thread aus zu ändern, wie????
 
STOP


Ich habe mich auch geirrt :duck: Es ist mal public und mal published. Hier die Auflösung aus der Hilfe :wall: :wall:

Zitat:

If a member's declaration appears without its own visibility specifier, the member has the same visibility as the one that precedes it. Members at the beginning of a class declaration that don't have a specified visibility are by default published, provided the class is compiled in the {$M+} state or is derived from a class compiled in the {$M+} state; otherwise, such members are public.
Sorry :oops:

...:cat:...

jkdfighter 14. Feb 2005 15:42

Re: Buttons.Caption von einem Thread aus zu ändern, wie????
 
Da ich kein neues Thema aufmachen möchte...
Hab ncoh ne Frage...
Wie deklariere ich IdTCPClientWork() in einem Thread???
Hab so:
Delphi-Quellcode:
procedure IdTCPClientWork(Sender: TObject; AWorkMode: TWorkMode;

.......

procedure Ttcp_client_Thread.IdTCPClientWork(Sender: TObject; AWorkMode: TWorkMode;
  const AWorkCount: Integer);
begin
  main.ProgressBar_set_position(AWorkCount);
end;

sakura 14. Feb 2005 15:44

Re: Buttons.Caption von einem Thread aus zu ändern, wie????
 
Zitat:

Zitat von jkdfighter
Da ich kein neues Thema aufmachen möchte...

Tue es bitte.

Danke.

...:cat:...

Sanchez 14. Feb 2005 16:28

Re: Buttons.Caption von einem Thread aus zu ändern, wie????
 
Zitat:

Zitat von sakura
Ich habe mich auch geirrt :duck: Es ist mal public und mal published.

:tongue: Sag ich doch :mrgreen:

Luckie 14. Feb 2005 17:01

Re: Buttons.Caption von einem Thread aus zu ändern, wie????
 
Zitat:

Zitat von jkdfighter
Da ich kein neues Thema aufmachen möchte...
Hab ncoh ne Frage...

Und aus genau diesem Grund mach bitte ein neues Thema auf.


Alle Zeitangaben in WEZ +1. Es ist jetzt 13:02 Uhr.
Seite 2 von 2     12   

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