Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - MarkupCheckBox object problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

MarkupCheckBox object problem

 Post Reply Post Reply
Author
Message
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Topic: MarkupCheckBox object problem
    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

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.