Hello community, and thanks for a great product @Anywhere Software.
I am creating a custom view in B4J that requires the Name property set by the user in the designer grid. I know I can get the event name, text properties through the lbl, size properties through Base, as well as the custom properties through Prop.
Is there any way of getting the Name property for the control whether set through the designer or initiated in a dim statement (Dim x as myControl:x.initialize)?
I also need a unique ID for each instance of the created control. Any suggestions what I can use for this?
My custom control keeps track of each control added in a map. I was using the EventName to distinguish between the different controls but as could be expected this doesn't work well when one shares the same Event or when they use the same control name in different container (i.e. Control1 in Pane1 and control1 in Pane2 both loaded under Tab1 and Tab2).
I am creating a custom view in B4J that requires the Name property set by the user in the designer grid. I know I can get the event name, text properties through the lbl, size properties through Base, as well as the custom properties through Prop.
Is there any way of getting the Name property for the control whether set through the designer or initiated in a dim statement (Dim x as myControl:x.initialize)?
I also need a unique ID for each instance of the created control. Any suggestions what I can use for this?
My custom control keeps track of each control added in a map. I was using the EventName to distinguish between the different controls but as could be expected this doesn't work well when one shares the same Event or when they use the same control name in different container (i.e. Control1 in Pane1 and control1 in Pane2 both loaded under Tab1 and Tab2).