Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > MarkupLabel Control
  New Posts New Posts RSS Feed - MarkupAxContainer Object
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

MarkupAxContainer Object

 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: MarkupAxContainer Object
    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

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.195 seconds.