Search found 8 matches
- 04 Aug 2020, 16:45
- Forum: General Discussion
- Replies: 11
- Views: 3023
Re: Set property by name
great, that's what I'm looking for
thanks
thanks
- 04 Aug 2020, 13:16
- Forum: General Discussion
- Replies: 11
- Views: 3023
Re: Set property by name
... that's means that I must prior know the datatype of the property for specifing the template (for example <float> ) in my code. Another hint for me is that the property FontFamily returns as Type "FontFamily", but setting "FontFamily" in the brackets of the template didn't wor...
- 04 Aug 2020, 08:38
- Forum: General Discussion
- Replies: 11
- Views: 3023
Re: Set property by name
I found the function "FindDependencyProperty" with seems to find the property's, but i don't understand how I can set and get the value of the property, because I don't understand the needed arguments of the function GetValue.. and SetValue ... Is there any example or code snippet ? Ptr<Ba...
- 03 Aug 2020, 20:44
- Forum: General Discussion
- Replies: 11
- Views: 3023
Re: Set property by name
My test didn't work, FindPorperty returns always a Null-Pointer ? Ptr<BaseComponent> lNew = Factory::CreateComponent(Symbol("Button")); const Noesis::TypeClass *lT = lNew->GetClassType(); UIElementData* lData = lT->GetMetaData().Find<UIElementData>(); const Noesis::DependencyProperty *lP =...
- 03 Aug 2020, 12:25
- Forum: General Discussion
- Replies: 3
- Views: 7458
Re: Create Control by Name
HI, thanks, for your reply. At runtime (C++) I need to create buttons and other controls. A client sends a Message to my C++ GUI App like "Listbox01.add.Button:btn01", and the GUI-App now should find the control with the name "Listbox01", create a new Button with the name "b...
- 03 Aug 2020, 12:14
- Forum: General Discussion
- Replies: 11
- Views: 3023
Re: Set property by name
A client-program sends message to my C++ GUI server program, and need's to get and set propertys of Controls of the GUI. The message contains the name of the control and the name of the property as strings, for example "Button01.set.background=Red" or "Textbox05.get.Text" I'm alr...
- 01 Aug 2020, 13:04
- Forum: General Discussion
- Replies: 3
- Views: 7458
Create Control by Name
Hi,
It is possible creating a control by his name
For example like
Control ct = new Control(„Button“)
It is possible creating a control by his name
For example like
Control ct = new Control(„Button“)
- 01 Aug 2020, 13:00
- Forum: General Discussion
- Replies: 11
- Views: 3023
Set property by name
Hi,
it is possible to set a property of a control using the name of the property?
Like
Control->Setproperty(„Background“,“Red“)
it is possible to set a property of a control using the name of the property?
Like
Control->Setproperty(„Background“,“Red“)