Buttons are not skinned anymore |
Post Reply |
Author | |
gwoin
Groupie Joined: 09 September 2004 Location: France Status: Offline Points: 52 |
Post Options
Thanks(0)
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.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Strange.... if you use our skin do you see same problem?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
gwoin
Groupie Joined: 09 September 2004 Location: France Status: Offline Points: 52 |
Post Options
Thanks(0)
|
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.cjstylesIs there something relative to the buttons?
Everything
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
try to move these lines to CMainFrame constructor.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
gwoin
Groupie Joined: 09 September 2004 Location: France Status: Offline Points: 52 |
Post Options
Thanks(0)
|
Hi,
Thank you for your help,
I moved the lines in the CMainFrame constructor, but it has not resolved the problem
|
|
gwoin
Groupie Joined: 09 September 2004 Location: France Status: Offline Points: 52 |
Post Options
Thanks(0)
|
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...
|
|
gwoin
Groupie Joined: 09 September 2004 Location: France Status: Offline Points: 52 |
Post Options
Thanks(0)
|
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.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hm.hm. So you use x64 configuration? If you build with win32 do you see same?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
gwoin
Groupie Joined: 09 September 2004 Location: France Status: Offline Points: 52 |
Post Options
Thanks(0)
|
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.
|
|
gwoin
Groupie Joined: 09 September 2004 Location: France Status: Offline Points: 52 |
Post Options
Thanks(0)
|
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.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Thanks. Checking what was breaked.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
gwoin
Groupie Joined: 09 September 2004 Location: France Status: Offline Points: 52 |
Post Options
Thanks(0)
|
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.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
gwoin
Groupie Joined: 09 September 2004 Location: France Status: Offline Points: 52 |
Post Options
Thanks(0)
|
Hello,
Good news.
I am interested in testing the changes before the release.
I will write to support.
|
|
gwoin
Groupie Joined: 09 September 2004 Location: France Status: Offline Points: 52 |
Post Options
Thanks(0)
|
Hi Oleg,
I re-built the XTP x64 DLL with the files you sent me by issue track.
It works perfectly well, thank you
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Thanks for help.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |