Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi Update property of some type with other window (https://www.delphipraxis.net/165431-update-property-some-type-other-window.html)

WojTec 30. Dez 2011 13:10

Delphi-Version: 2010

Update property of some type with other window
 
Continued old thred about frames...

So, on frame I have color selector. How can I assign choosed color in "real time" to any color property on main form (selecting color from image by mouse down and moving cursor)? When I want to modify object it's simple, because I can do it by pointer, but how about simple types?

I added field FColor: PColor. When picking color C := SelectedColor and then FColor := @C. Don't working.

Furtbichler 30. Dez 2011 13:17

AW: Update property of some type with other window
 
Use the Observer-Pattern. Oh, and try to find examples in Delphi before you continue to ask ;-)


Alle Zeitangaben in WEZ +1. Es ist jetzt 01:26 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