Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - Strangest bug this year ?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Strangest bug this year ?

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


Joined: 02 August 2005
Location: Norway
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote ddebono Quote  Post ReplyReply Direct Link To This Post Topic: Strangest bug this year ?
    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
Back to Top
ijwelch View Drop Down
Senior Member
Senior Member


Joined: 20 June 2006
Status: Offline
Points: 262
Post Options Post Options   Thanks (0) Thanks(0)   Quote ijwelch Quote  Post ReplyReply Direct Link To This Post Posted: 15 August 2008 at 9:39pm
Set Picture1.AutoRedraw to True to fix this.

Maybe CJ can do something about it?
Back to Top
ddebono View Drop Down
Groupie
Groupie


Joined: 02 August 2005
Location: Norway
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote ddebono Quote  Post ReplyReply Direct Link To This Post Posted: 16 August 2008 at 4:00am
Nope, does not fix the problem.
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
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.141 seconds.