Print Page | Close Window

MarkupAxContainer Object

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: MarkupLabel Control
Forum Description: Topics Related to Codejock MarkupLabel Control
URL: http://forum.codejock.com/forum_posts.asp?TID=16409
Printed Date: 01 May 2024 at 4:30am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: MarkupAxContainer Object
Posted By: jpbro
Subject: MarkupAxContainer Object
Date Posted: 07 March 2010 at 1:53pm
Okay, here's a new feature I would KILL for: a MarkupAxContainer control. Essentially, this would be a control that we could add any ActiveX control to and it would sit inline with the markup objects.

For example, you could do something like (AIR-CODE WARNING):


Dim lo_FlatEdit As MarkupAxContainer
Dim lo_StackPanel As MarkupStackPanel
Dim lo_TextBlock As MarkupTextBlock

Set lo_FlatEdit = Me.MarkupLabel1.MarkupContext.CreateObject("AxContainer")
With lo_FlatEdit
    Set .Child = Me.FlatEdit1
    .MaxWidth = 350
    .Height = 21
End With

Set lo_TextBlock = Me.MarkupLabel1.MarkupContext.CreateObject("TextBlock")
With lo_TextBlock
    .Text = "Your name"
End With

Set lo_StackPanel = Me.MarkupLabel1.MarkupContext.CreateObject("StackPanel")
With lo_StackPanel
    .Orientation =xtpMarkupOrientationHorizontal

    .Children.Add lo_TextBlock
    .Children.Add lo_FlatEdit
End With

Set Me.MarkupLabel1.MarkupUiElement = lo_StackPanel


This would attach a markup TextBlock and CJ FlatEdit control into the MarkupLabel and render them side-by-side. The CJ FlatEdit control would already have to be present on the same form as the MarkupLabel. We could then use all of the FlatEdit events and properties.

As far as I can tell, the MarkupAxContainer would only have to handle positioning, sizing and visibility changes of the child ActiveX controls (much like the existing CJ Resizer control I assume does). I would appreciate comments in this area though - what else might need to be managed by the AxContainer?

To me this would be revolutionary, and I think it would take a serious work-load of CJ from people asking for markup native controls like textboxes, grids, etc... There is a tonne of work already done in ActiveX controls - why not leverage that existing infrastructure into the MarkupLabel?

Is there any hope for such a feature?


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6




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