Print Page | Close Window

Weird Paint issue on a skinned calendar control

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=17002
Printed Date: 19 May 2024 at 10:06am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Weird Paint issue on a skinned calendar control
Posted By: YellowStreak
Subject: Weird Paint issue on a skinned calendar control
Date Posted: 27 July 2010 at 4:06am
We are using the Calendar control in our VB6 app and have encountered a weird paint issue.  Whenever the user double clicks an event we open a non-modal form showing additional info.  This form is large and covers the 5/7 day week radio buttons.  When the form is closed the radio buttons do not redraw correctly.  It randomly displays them as a white box, text but no radio buttons, checkboxes and even combo dropdown buttons!  The form is skinned so I'm guessing it's a problem with the skinning.
 
Further investigation has confirmed that the issue only occurs when the control is skinned so it's definitely an issue with the skinning.  We have also discovered that it only occurs if the opened form contains VB.NET interop user controls (which we also use the skinframework control to skin).
 
I have attached a zip file showing some screen shots if the issue
http://forum.codejock.com/uploads/20100727_040501_PaintSamples.zip - uploads/20100727_040501_PaintSamples.zip
 
http://forum.codejock.com/uploads/20100720_050259_PaintSamples.zip -
Any adviced would be appreciated.
 
Thanks.



Replies:
Posted By: YellowStreak
Date Posted: 27 July 2010 at 12:11pm
OK - I've got a work-around for this now.  I'll post it here just in case anyone else encounters the same issue. 
 
After the popup form has closed, the form that the calendar is on receives a form_activated event.  In this event I simply hide and then show the calendar toolbar.  This seems to force a repaint of the option buttons and they return to their correct state.   This is not and ideal fix and I would still like to hear what codejock have to save about this as it is obviously a bug.  It doesn't occur with any other radio buttons - only the ones on the calendar toolbar.
 
I'm Using 12.1 by the way but nothing in the release notes for subsequent versions appears to address this issue.



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