Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - Form icon background
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Form icon background

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


Joined: 04 November 2005
Location: Italy
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote spol Quote  Post ReplyReply Direct Link To This Post Topic: Form icon background
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 29 October 2007 at 2:35am
Hi,
 
Please attach this icon to test.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
spol View Drop Down
Groupie
Groupie


Joined: 04 November 2005
Location: Italy
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote spol Quote  Post ReplyReply Direct Link To This Post Posted: 30 October 2007 at 9:45am
20071030_094458_WarningRed.zip

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

Thanks
Paolo
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
spol View Drop Down
Groupie
Groupie


Joined: 04 November 2005
Location: Italy
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote spol Quote  Post ReplyReply Direct Link To This Post 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.

20071103_034349_test_icon.zip

Thanks,
Paolo
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
spol View Drop Down
Groupie
Groupie


Joined: 04 November 2005
Location: Italy
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote spol Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
gaudetm View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 September 2006
Location: Canada
Status: Offline
Points: 134
Post Options Post Options   Thanks (0) Thanks(0)   Quote gaudetm Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
gaudetm View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 September 2006
Location: Canada
Status: Offline
Points: 134
Post Options Post Options   Thanks (0) Thanks(0)   Quote gaudetm Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
spol View Drop Down
Groupie
Groupie


Joined: 04 November 2005
Location: Italy
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote spol Quote  Post ReplyReply Direct Link To This Post Posted: 06 November 2007 at 3:03pm
THANK YOU VERY MUCH !!!
IT WORKS PERFECTLY


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