Print Page | Close Window

SOLVED: Resizing the helpsection (bug)

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=11676
Printed Date: 27 November 2024 at 10:44am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SOLVED: Resizing the helpsection (bug)
Posted By: Aaron
Subject: SOLVED: Resizing the helpsection (bug)
Date Posted: 31 July 2008 at 10:22am
Hi,
 
Yes, I'm back with another "trail" issue
 
I will begin the topic description with REMARK: ...  so that you guys from support don't get that annoyed with my issues. I don't know if this happens because of my PC or something else. If there are users who saw something simular, I would like you to reply on this, please ???. The support team must think I'm nuts (I had a simular issue with resizing the splitter of the grid) , if no one saw this ever... 
 
Note the horizontal dark lines, this happens when dragging the helpsection splitter.
 
 
 
 
Thanks
 


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



Replies:
Posted By: Oleg
Date Posted: 01 August 2008 at 3:16am
Traditional question - do you see it with our VB\PropertyGrid  sample ? :)
Seriously, how you do this?

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Aaron
Date Posted: 01 August 2008 at 4:32am
Hi,
 
I don't see this with your sample. But I can reproduce it with my sample  I'm glad it can be reproduced at all, I know what's causing it but I want you to look at it also. I think it will be the same on your machine
 
So here it is:
 
https://forum.codejock.com/uploads/20080801_042928_TestIssues.zip - uploads/20080801_042928_TestIssues.zip
 
It's a sample for testing issues of RC and added a PropertyGrid control to it (as in the original form I'm working on) I thought it had something to do with the RC updating but it wasn't that.
 
Thanks in advance for looking at it.


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


Posted By: Aaron
Date Posted: 02 August 2008 at 7:54am
Hi,
 
The previous uploaded screenshot is while dragging, the next screenshot is after the update of propertygriditems:
 
 
 


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


Posted By: Aaron
Date Posted: 18 August 2008 at 6:19am
Hi,
 
Test projects are suppost to be for testing, thats why I call it Test.... and it would nice if you test it yourself and reply with a result.
 
Thanks
 


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


Posted By: Oleg
Date Posted: 18 August 2008 at 9:44am
Hi,
Its weird, but I don't see problem with test project :(


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Aaron
Date Posted: 18 August 2008 at 9:56am
Hi Oleg,
 
Grrrrr.....
 
You are joking, right? I just downloaded the testproject and started the exe and it appears right away.  
 
 
 
 
I have to find another member who wants to test this, please please please...
 


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


Posted By: jpbro
Date Posted: 18 August 2008 at 8:16pm
I tried the EXE and I can not reproduce it either (yet)...

-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: jpbro
Date Posted: 18 August 2008 at 10:59pm
Strange, I decided to try it again and now I do see the redraw problem exhibited...I can't figure out what I did differently this time!

-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: jpbro
Date Posted: 18 August 2008 at 11:30pm
Okay, so the problem seems to happen during the Timer event when the Value properties of the 2 PropertyGridItems are changed. It seems that the control is not refreshing properly when "interrupted" by the Value property change.

I've thought of a workaround that seems to work in my limited testing...basically, only change the Value property if the left mouse button isn't down. Ugly, but could help until the problem is fixed.

In the General section:

Private Const VK_LBUTTON  As Long = 1

Private Declare Function GetKeyState Lib "user32.dll" (ByVal nVirtKey As Long) As Integer


Then replace wrap your Value changing code with this:

    If GetKeyState(VK_LBUTTON) And -128 = 0 Then
      ' Only change value Left Mouse Button not pressed

      wndPropertyGridFiles.FindItem("Physical memory").Value = PhysicalMemory & " Mb"
      wndPropertyGridFiles.FindItem("Free memory").Value = FreePhysicalMemory & " Mb"
    End If



-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: Aaron
Date Posted: 19 August 2008 at 12:40am
Hi Jason,
 
Thanks for confirming this is a bug. I also saw it happen with the timer event but I wanted to be sure that a support member would see it. Now it's official  
 
Oleg? Can you try again? Try the resize the help section (slowly) and you will see it.
 
Thanks
 


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


Posted By: Oleg
Date Posted: 19 August 2008 at 1:39am
Aaron, so if you comment
 
'wndPropertyGridFiles.FindItem("Physical memory").Value = PhysicalMemory & " Mb"
'wndPropertyGridFiles.FindItem("Free memory").Value = FreePhysicalMemory & " Mb"
problem will gone?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Aaron
Date Posted: 19 August 2008 at 1:47am
Hi Oleg,
 
Yes it will.
I'm glad you see it too
 


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


Posted By: Oleg
Date Posted: 19 August 2008 at 2:06am
Hi,
 
ok, at least we found reason. :)
I agree it. and working with fix.
 
Thanks for patient :)


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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