Home » Community » Newbie corner » how alter name of EditField ?
how alter name of EditField ? [message #58127] |
Tue, 22 February 2022 01:46  |
BetoValle
Messages: 204 Registered: September 2020 Location: Brasil Valinhos SP
|
Experienced Member |
|
|
Hi,
Instead of creating the editfield in the editor, if I wanted to do this at runtime (or dynamically), I would set
EditField myfield
So my question is: for umnome to receive the name identifier "code" what property/method do I have to call?
analogous to a myfield.SetName ="code" or myfield.SetId="code"
How do I name my myfield field?
my goal is that this field created at runtime, along with the fields I create in the layout editor, it can be identified in the routine below:
for(Ctrl *q = x; q; q = q->GetNext()){
if(dynamic_cast<EditField *>(q)) {
String id = q->GetLayoutId();
String sv = q->GetData().ToString();
-----> if( id.IsEqual("myfieldcreateddinamically") )
doSomething();
}
}
Thanks!
|
|
|
|
Goto Forum:
Current Time: Fri May 02 17:07:38 CEST 2025
Total time taken to generate the page: 0.03158 seconds
|