Print Page | Close Window

MarkupCheckBox object problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=13250
Printed Date: 22 November 2024 at 2:39pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: MarkupCheckBox object problem
Posted By: jpbro
Subject: MarkupCheckBox object problem
Date 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




Replies:
Posted By: Oleg
Date Posted: 26 January 2009 at 2:17am
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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net