MarkupCheckBox object problem |
Post Reply |
Author | |
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
Posted: 24 January 2009 at 10:48pm |
Hi,
I'm having a couple of problems with the MarkupLabel Checkbox object: 1) How do I set the text of the Checkbox after creating the object with MarkupLabel1.MarkupContext.CreateObject("CheckBox")? It seems the CheckBox won't appear without text either. I think the MarkupCheckbox object needs a Child property. 2) If I create a CheckBox with MarkupLabel1.MarkupContext.Parse("<CheckBox>Test</CheckBox>") and then try to set the CheckBox to appear checked with IsChecked = True, the CheckBox does not appear checked. Same problem with IsThreeState = True. Any ideas? Thanks... |
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3 Language: Visual Basic 6.0 SP6 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
1. It has Content property:
Private Sub Form_Load()
Dim c As MarkupCheckBox Set c = MarkupLabel1.MarkupContext.CreateObject("CheckBox") Dim txt As MarkupTextBlock
Set txt = MarkupLabel1.MarkupContext.CreateObject("TextBlock") txt.Text = "Text" txt.VerticalAlignment = xtpMarkupVerticalAlignmentCenter c.Content = txt
MarkupLabel1.MarkupUIElement = c
End Sub
2. right - it declared as boolean but its long:
c.IsChecked = 1 ' 2 for intermediate.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |