Print Page | Close Window

BUG with Label Markup on a UserControl

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=12241
Printed Date: 22 November 2024 at 12:58am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: BUG with Label Markup on a UserControl
Posted By: Stilki
Subject: BUG with Label Markup on a UserControl
Date Posted: 23 September 2008 at 2:44am

If you have a label on a usercontrol with the Markup property set to true, the UserControl does not terminate when the hosting form is unloaded - and the hosting form is a secondary window from the Main applications window.

eg.
Place a label on a usercontrol and set MarkUp to true.
Set in code the markup properties:
lblLabel1.MarkupContext.SetMethod Me, "Markup_Click"
lblLabel1.Caption = "Mark up anything"

Place debug.print statements in the Initalize and Terminate events of the control.
Private Sub UserControl_Terminate()  
   Debug.Print "UserControl_Terminate"  
End Sub
Private Sub UserControl_Initialize()
   Debug.Print "UserControl_Initialize"
End Sub


Place the usercontrol on a secondary form and open it from another form.
Watch the immediate window in VB6 - The terminate statement does not get executed.

Below is a sample project in VB6 CJ v12.02 that demonstrates the bug.
https://forum.codejock.com/uploads/20080923_024249_MarkupLabelBugv.zip - uploads/20080923_024249_MarkupLabelBugv.zip



Replies:
Posted By: jpbro
Date Posted: 23 September 2008 at 9:47am
Also confirmed in 12.1.0 Beta.

-------------
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