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 ToolButton für 2 verschiedene RichEdit (https://www.delphipraxis.net/44654-toolbutton-fuer-2-verschiedene-richedit.html)

toms 22. Apr 2005 11:22

Re: ToolButton für 2 verschiedene RichEdit
 
Zitat:

Zitat von freak4fun
Zitat:

Zitat von toms
oder so:

Delphi-Quellcode:
  if ActiveControl <> nil then
    if ActiveControl is TRichEdit then
      TRichEdit(ActiveControl)....

Das kannst du aber nicht in das ButtonClick-Ereignes schreiben, weil dann das ActiveControl auf dem Button steht. :gruebel:

MfG
freak


Die TToolButtons nehmen keinen Focus an. Darum besteht hier das Problem gar nicht.


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

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