Print Page | Close Window

Form icon background

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=8541
Printed Date: 01 February 2025 at 3:41am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Form icon background
Posted By: spol
Subject: Form icon background
Date Posted: 26 October 2007 at 12:17pm
Hi, when I set the commandbars visualtheme to xtpThemeOffice2007 and set the icon of a child form, I got a strange behaviour. In the VB6 IDE all is ok, but when I compile the program and run it the form icon get a black backgroung instead of the transparent one.

I am using the latest release of codejock component,11.2.0
Is there anything I can do to avoid this ?
Thanks
Paolo Saudin



Replies:
Posted By: Oleg
Date Posted: 29 October 2007 at 2:35am
Hi,
 
Please attach this icon to test.


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


Posted By: spol
Date Posted: 30 October 2007 at 9:45am
uploads/20071030_094458_WarningRed.zip - 20071030_094458_WarningRed.zip

Here is the icon I use. I tried with some others with identical result

Thanks
Paolo


Posted By: Oleg
Date Posted: 30 October 2007 at 10:09am
I Just tried it with our RibbonMDI sample. and it works ok. Please try.

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


Posted By: spol
Date Posted: 03 November 2007 at 3:45am
Please find attached a simple example that show the problem. The icon in the generated exe file is not ok.

uploads/20071103_034349_test_icon.zip - 20071103_034349_test_icon.zip

Thanks,
Paolo


Posted By: Oleg
Date Posted: 05 November 2007 at 1:38am
Hello,
 
Problem with icon and how you set it.
 
WindowsXP frame shows same Black rectangle around icon.
 
Don't set icon in code -
comment '  Me.Icon = imgAlertMax.Picture
line, but set icon property in designer.


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


Posted By: spol
Date Posted: 05 November 2007 at 2:17pm
Thanks for the reply.
Unfortunately I need to change the icon depending on a calculated value ...

Dim myvalue As Integer
myvalue = 11 ' some calculation
If myvalue > 10 Then
    Me.Icon = imgAlertMin.Picture
Else
    Me.Icon = imgAlertMax.Picture
End If

... so that the end user can get the alarm status with a little glance at the form. I'll find out another solution.

Thanks,
Paolo


Posted By: gaudetm
Date Posted: 06 November 2007 at 2:00pm
the problem came from the picturebox control loadpicture icon from file instead to check if fix the problem


Posted By: gaudetm
Date Posted: 06 November 2007 at 2:12pm
sorry the loadpicture does the problem in fact i put the icon in ressource file (.res) attached to the vb project and use the loadrespicture("WARNING",vbResIcon) to load the picture and it's a better programming way to do this


Posted By: spol
Date Posted: 06 November 2007 at 3:03pm
THANK YOU VERY MUCH !!!
IT WORKS PERFECTLY


Paolo



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