Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - BUG with Label Markup on a UserControl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

BUG with Label Markup on a UserControl

 Post Reply Post Reply
Author
Message
Stilki View Drop Down
Groupie
Groupie


Joined: 27 May 2005
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote Stilki Quote  Post ReplyReply Direct Link To This Post Topic: BUG with Label Markup on a UserControl
    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.
uploads/20080923_024249_MarkupLabelBugv.zip
Back to Top
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 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

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