Search found 8 matches

by armin.it
04 Aug 2020, 16:45
Forum: General Discussion
Replies: 11
Views: 65

Re: Set property by name

great, that's what I'm looking for

thanks
by armin.it
04 Aug 2020, 13:16
Forum: General Discussion
Replies: 11
Views: 65

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 work Are there any Conv...
by armin.it
04 Aug 2020, 08:38
Forum: General Discussion
Replies: 11
Views: 65

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<BaseComponen...
by armin.it
03 Aug 2020, 20:44
Forum: General Discussion
Replies: 11
Views: 65

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 = lData->Fi...
by armin.it
03 Aug 2020, 12:25
Forum: General Discussion
Replies: 3
Views: 42

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 "btn01", set die Clickevent...
by armin.it
03 Aug 2020, 12:14
Forum: General Discussion
Replies: 11
Views: 65

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 already able to find th...
by armin.it
01 Aug 2020, 13:04
Forum: General Discussion
Replies: 3
Views: 42

Create Control by Name

Hi,

It is possible creating a control by his name

For example like

Control ct = new Control(„Button“)
by armin.it
01 Aug 2020, 13:00
Forum: General Discussion
Replies: 11
Views: 65

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“)