![]() |
how to bind data dynamically in markup? |
Post Reply
|
| Author | |
mgampi
Senior Member
Joined: 14 July 2003 Status: Offline Points: 1210 |
Post Options
Thanks(0)
Quote Reply
Topic: how to bind data dynamically in markup?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 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
![]() |
|
liwenhaosuper
Newbie
Joined: 01 April 2011 Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 April 2011 at 7:37am |
|
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 |