UIControl attribute

I create a subclass of DesktopTextField with a PreferenceKey As String property. I use that key to manage my user preferences. A large part of my code come from this @Paul_Lefebvre tutorial :

1- Is there a way to see my PreferenceKey on the IDE interface on the right panel ?
2- Where can I initialize my PreferenceKey value ? I can not use Opening method because I use it already use it on my subclass to initialize the text value. For now I initialize the key in the Opening event of the window. Is it the correct / best way ?

1 - use the inspector behavior ( right-clic menu on your subclass)
2 - use the ide navigation pane once you have set up the property with the above 1

https://documentation.xojo.com/getting_started/using_the_ide/inspector.html_Behavior

2 Likes

Merci @Jean-Yves_Pochez