Print Page | Close Window

Strangest bug this year ?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=11839
Printed Date: 16 November 2024 at 8:55am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Strangest bug this year ?
Posted By: ddebono
Subject: Strangest bug this year ?
Date Posted: 15 August 2008 at 1:50pm
This is a very strange and maybe never seen before bug in the Suite Controls. Just happens that it made a huge impact on our application.

This happens in VB6 SP6 with the Suite controls 12.0.1

- Create a form
- Create a VB picturebox (picture1)
- Make two Suite control labels (Label1 and Label2) inside the picturebox
- Make the labels transparent

Insert this code in the form:

Private Sub Form_Resize()

Dim lWidth As Long

    Picture1.Height = 14519
    Picture1.Width = 24800
    Picture1.Top = 0
    Picture1.Left = 0
    
    lWidth = Picture1.Width
    
    Label2.Left = 0
    Label2.Width = lWidth
    Label2.Top = 0
    Label2.Height = 7250
    
    Label1.Left = 0
    Label1.Width = lWidth
    Label1.Height = 7260
    Label1.Top = Label2.Height + 0
    
End Sub

-----------------

Run the program and maximize the window.

It will maximize the window, but the picturebox will become corrupted because label1 and label2 are overlapping.

The solution was to make the label1.top = label2.height+15

Very few will ever experience this problem, but it signals a major fault in the Suite controls, and it might be happening in other situations too. Changing some other values will make it work.... so it's one in a million chance...

Also attach a VB6 project to show the bug. uploads/20080815_134919_TestBug.zip - 20080815_134919_TestBug.zip



Replies:
Posted By: ijwelch
Date Posted: 15 August 2008 at 9:39pm
Set Picture1.AutoRedraw to True to fix this.

Maybe CJ can do something about it?


Posted By: ddebono
Date Posted: 16 August 2008 at 4:00am
Nope, does not fix the problem.


Posted By: Aaron
Date Posted: 17 August 2008 at 1:04am
Hi,
 
Even in IDE you can see that there's something wrong. If you position label2 over label1 and drag label2 a little to the bottom it will act the same as with your code.
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....



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