![]() |
Form icon background |
Post Reply ![]() |
Author | |
spol ![]() Groupie ![]() Joined: 04 November 2005 Location: Italy Status: Offline Points: 26 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
Oleg ![]() Senior Member ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Please attach this icon to test.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
spol ![]() Groupie ![]() Joined: 04 November 2005 Location: Italy Status: Offline Points: 26 |
![]() ![]() ![]() ![]() ![]() |
20071030_094458_WarningRed.zip
Here is the icon I use. I tried with some others with identical result Thanks Paolo |
|
![]() |
|
Oleg ![]() Senior Member ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
I Just tried it with our RibbonMDI sample. and it works ok. Please try.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
spol ![]() Groupie ![]() Joined: 04 November 2005 Location: Italy Status: Offline Points: 26 |
![]() ![]() ![]() ![]() ![]() |
Please find attached a simple example that show the problem. The icon in the generated exe file is not ok.
20071103_034349_test_icon.zip Thanks, Paolo |
|
![]() |
|
Oleg ![]() Senior Member ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
spol ![]() Groupie ![]() Joined: 04 November 2005 Location: Italy Status: Offline Points: 26 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
gaudetm ![]() Senior Member ![]() ![]() Joined: 23 September 2006 Location: Canada Status: Offline Points: 134 |
![]() ![]() ![]() ![]() ![]() |
the problem came from the picturebox control loadpicture icon from file instead to check if fix the problem
|
|
![]() |
|
gaudetm ![]() Senior Member ![]() ![]() Joined: 23 September 2006 Location: Canada Status: Offline Points: 134 |
![]() ![]() ![]() ![]() ![]() |
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
|
|
![]() |
|
spol ![]() Groupie ![]() Joined: 04 November 2005 Location: Italy Status: Offline Points: 26 |
![]() ![]() ![]() ![]() ![]() |
THANK YOU VERY MUCH !!!
IT WORKS PERFECTLY ![]() ![]() Paolo |
|
![]() |
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 |