Strangest bug this year ? |
Post Reply |
Author | |
ddebono
Groupie Joined: 02 August 2005 Location: Norway Status: Offline Points: 31 |
Post Options
Thanks(0)
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.20080815_134919_TestBug.zip |
|
ijwelch
Senior Member Joined: 20 June 2006 Status: Offline Points: 262 |
Post Options
Thanks(0)
|
Set Picture1.AutoRedraw to True to fix this.
Maybe CJ can do something about it? |
|
ddebono
Groupie Joined: 02 August 2005 Location: Norway Status: Offline Points: 31 |
Post Options
Thanks(0)
|
Nope, does not fix the problem.
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
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.... |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |