Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - Buttons are not skinned anymore
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Buttons are not skinned anymore

 Post Reply Post Reply
Author
Message
gwoin View Drop Down
Groupie
Groupie
Avatar

Joined: 09 September 2004
Location: France
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote gwoin Quote  Post ReplyReply Direct Link To This Post Topic: Buttons are not skinned anymore
    Posted: 05 January 2007 at 6:40am

Hi,

since XTP 10.4 (I upgraded from 10.3.0 to 10.4), the buttons are no more skinned as expected.

with XTP 10.3.0:

 
with XTP 10.4:
 
 
And the most surprising is the OpenFile Dialog which has the 2 different buttons:
 
 
I tried by copying settings from the XTP samples and then re-building my skin with the new API, but I cannot get my buttons skinned .
 
Here is a sample from the ini file of my skin:
 
;Normal button
[button.pushbutton]
bgtype = imagefile
SizingMargins = 8, 8, 9, 9
sizingType = Stretch
ContentMargins = 3, 3, 3, 3
ImageFile = StyleGris\button.bmp
imageCount = 6
ImageLayout = vertical
 
 
Any specials changes to do in my ini file or in my images?
 
Thank you.
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 January 2007 at 9:09am
Hi,
 
Strange.... if you use our skin do you see same problem?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
gwoin View Drop Down
Groupie
Groupie
Avatar

Joined: 09 September 2004
Location: France
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote gwoin Quote  Post ReplyReply Direct Link To This Post Posted: 05 January 2007 at 9:35am
If I use my skin with the SkinMDISample, there's no problem...
 
And the problem appears with your skin.
So it must come from my code, but I didn't change anything in the MainFrame::OnCreate function , neither elsewhere relative to the skin...
 
To load my skin, I just use this lines:

XTPSkinManager()->SetApplyOptions(xtpSkinApplyFrame | xtpSkinApplyColors | xtpSkinApplyMetrics);

XTPSkinManager()->SetAutoApplyNewWindows(TRUE);

XTPSkinManager()->SetApplyOptions(XTPSkinManager()->GetApplyOptions() | xtpSkinApplyMetrics);

XTPSkinManager()->LoadSkin(_T(m_strStylesPath) + _T("Office2007.cjstyles")); //StyleGris.cjstyles

Is there something relative to the buttons?
Everything
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 January 2007 at 10:04am
Hi,
 
try to move these lines to CMainFrame constructor.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
gwoin View Drop Down
Groupie
Groupie
Avatar

Joined: 09 September 2004
Location: France
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote gwoin Quote  Post ReplyReply Direct Link To This Post Posted: 05 January 2007 at 10:20am
Hi,
 
Thank you for your help,
I moved the lines in the CMainFrame constructor, but it has not resolved the problem
Back to Top
gwoin View Drop Down
Groupie
Groupie
Avatar

Joined: 09 September 2004
Location: France
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote gwoin Quote  Post ReplyReply Direct Link To This Post Posted: 05 January 2007 at 10:34am
Something really strange:
 
I just re-tried the SkinMDISample, and the buttons are no more skinned, even with your skin
 
I cant understand anything.
So I tried to re-build them, but same result...
 
I really don't understand...
Back to Top
gwoin View Drop Down
Groupie
Groupie
Avatar

Joined: 09 September 2004
Location: France
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote gwoin Quote  Post ReplyReply Direct Link To This Post Posted: 05 January 2007 at 10:56am

I just done a simple test with the SkinMDISample application (win64).

Open the application and go to the "skins and themes" tab.

Select "Office 2007 style", for exemple.

Then select "Default" as Default Skin:

 
And finally reselect "Office 2007 Style":
 
 
Strange no?
I don't no why it react as this.
Note that none of all the samples are their buttons skinned anymore (with you skins too).
 
It could be a problem with my system, but I juste reboot it and I get the same result
 
[Edit] The backup of my application (the one using XTP 10.3, which I was using last friday) is still correctly skinned.
If I use the backup style for the current version of my application, the buttons are not skinned.
The only difference between both the versions is the dll of XTP.
 
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 January 2007 at 1:01pm
Hm.hm. So you use x64 configuration? If you build with win32 do you see same?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
gwoin View Drop Down
Groupie
Groupie
Avatar

Joined: 09 September 2004
Location: France
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote gwoin Quote  Post ReplyReply Direct Link To This Post Posted: 05 January 2007 at 1:38pm
Yes, I am using the x64 configuration.
I will test with the win32 config on monday (it is too late in France now and I am already back at home  )
 
I cannot send you the whole project for two main reasons : the size (the entiere project take 150 Mo), and security reasons.
But I can send you the concerning files:
the .vcproj and .sln, mainframe.cpp/h, the sources of my skin and my ribbon skin, and some files for the skin of my application.
 
Anyway, in the pictures above, I was using the Office 2007 style and the buttons are not skinned.
 
I'l send you all I can this monday.
 
Have a nice weekend.
Back to Top
gwoin View Drop Down
Groupie
Groupie
Avatar

Joined: 09 September 2004
Location: France
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote gwoin Quote  Post ReplyReply Direct Link To This Post Posted: 08 January 2007 at 4:02am
Hi Oleg,
 
The problem comes from the x64 version of XTP.
 
I built the samples with the 32 bits version and all is ok (buttons are correctly skinned, with all styles : yours and mine).
And when I build the same samples with the x64 configuration, the buttons are not skinned. (idem for some static text background, tab buttons, ..., as shown in the pictures above).
 
As I said, the problem was not with the 10.3.0 version (not tried the 10.3.1).
 
I hope this could be easily corrected and integrated in XTP 10.4.1
 
Thank You.
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: 08 January 2007 at 5:07am
Hi,
 
Thanks. Checking what was breaked.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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: 09 January 2007 at 1:51am
Hi,
 
gwoin, we checked x64 build in our x64 machine but didn't see problem. Can you check this attachment:
 
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
gwoin View Drop Down
Groupie
Groupie
Avatar

Joined: 09 September 2004
Location: France
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote gwoin Quote  Post ReplyReply Direct Link To This Post Posted: 09 January 2007 at 3:47am

The sample you sent works correctly.

I added my style in the "styles" directory and it works fine with it too.
 
It's strange that the problem appears on my machine and not on yours.
Only 1.4 version of XTP (and only x64 version) react differently as expected.
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: 09 January 2007 at 5:29am
Hello,
 
ok, good. This 10.4.1 we will release in this on next week. Hope it will fix it.
 
You can write to support and we will attach you all changed files in SkinFramework folder to test.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
gwoin View Drop Down
Groupie
Groupie
Avatar

Joined: 09 September 2004
Location: France
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote gwoin Quote  Post ReplyReply Direct Link To This Post Posted: 09 January 2007 at 5:42am
Hello,
 
Good news.
I am interested in testing the changes before the release.
I will write to support.
Back to Top
gwoin View Drop Down
Groupie
Groupie
Avatar

Joined: 09 September 2004
Location: France
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote gwoin Quote  Post ReplyReply Direct Link To This Post Posted: 10 January 2007 at 4:01am
Hi Oleg,
 
I re-built the XTP x64 DLL with the files you sent me by issue track.
It works perfectly well, thank you
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: 10 January 2007 at 9:52am
Hi,
Thanks for help.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.125 seconds.