Programmatically changing text of a UI control


Author
Message
Maisy Kay
Maisy Kay
Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)
Group: Forum Members
Posts: 1, Visits: 4
Hey Guys, 

I've only started using Nevron today and I'm finding it impossible to change the text for UI elements during run time. I noticed that NButton inherits some modifiers from the built in UI controls that come in .net but for example if I try the following:

myButton.Text = "foo";

No changes are being displayed. Can someone tell me how I am to implement the programmatic change of text during runtime.

Thanks,
Maisy
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.1K
Hi Maisy,

In order to apply text to a NOV button you need to use:

nButtonControl1.Content = new NLabel("Hello World");

This is required as in NOV buttons can host any widget - for example image, image and text etc. 
We hope this helps - let us know if you meet any problems or have any questions.




Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic
4 active, 4 guests, 0 members, 0 anonymous
No members currently viewing this topic!

Login

Explore
Messages
Mentions
Search