![]() |
how to bind data dynamically in markup? |
Post Reply ![]() |
Author | |
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1198 |
![]() ![]() ![]() ![]() ![]() Posted: 25 April 2011 at 3:22pm |
Hi;
Use CString::Format() In your case CString Caption("Hello World"); CString MarkupText; MarkupText.Format(_T("<Button>%s</Button>"), Caption); ... |
|
Martin
Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0 Platform: Windows 10 v 1909 (64bit) Language: VC++ 2017 |
|
![]() |
|
liwenhaosuper ![]() Newbie ![]() Joined: 01 April 2011 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
for instance, i want a button show text dynamically, how can?
cstring str="helloworld" and in the markup text, <Button>str</Button> ,how let it show 'helloworld' instead of 'str'?
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |