andrea-magni / TFrameStand

TFrameStand and TFormStand components for Delphi FireMonkey (FMX)
Mozilla Public License 2.0
263 stars 78 forks source link

Get parameters from a Frame #47

Open andrecampestre opened 5 years ago

andrecampestre commented 5 years ago

(Sorry for the dummy question)

I have two frames:

Frame_1 Frame_2 In the Frame_1, I call (Frame_2). I need to go back to FRAME_1, but I need values from FRAME_2.

Somebody could to help me?

abritolda commented 5 years ago

I think you can do what you want using CommonActions

andrecampestre commented 5 years ago

@abritolda, Could you show a sample? I appreciate it.

checkdigits commented 5 years ago

@andrecampestre - how far have you got with your own code? If you post us the code which you haven't quite got working yet maybe we can suggest some corrections or show you how to do it better?

Your question is a bit vague - it all really depends on what you have on your frame and how you've populated the controls. For example, are you using data binding - or are you using objects with a kind of Model/View arrangement?

Post an example of what you're trying to do and we can all pitch in and help you. 😃 👍

abritolda commented 5 years ago

@andrecampestre you can see an example in https://youtu.be/Z6_ZvnCmFCw?t=2119

EndErr commented 5 years ago

I used to create public parameters in the frame declaration and then use them from outside, from MainForm for example.