Home » Community » Newbie corner » how alter name of EditField ?
how alter name of EditField ? [message #58127] |
Tue, 22 February 2022 01:46 ![Go to next message Go to next message](theme/default/images/down.png) |
BetoValle
Messages: 203 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: Sun Sep 01 07:41:43 CEST 2024
Total time taken to generate the page: 0.04794 seconds
|