Buttons are not skinned anymore
Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=6005
Printed Date: 23 November 2024 at 11:37pm Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: Buttons are not skinned anymore
Posted By: gwoin
Subject: Buttons are not skinned anymore
Date 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.
|
Replies:
Posted By: Oleg
Date 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
|
Posted By: gwoin
Date 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
|
Posted By: Oleg
Date Posted: 05 January 2007 at 10:04am
Hi,
try to move these lines to CMainFrame constructor.
------------- Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
|
Posted By: gwoin
Date 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
|
Posted By: gwoin
Date 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...
|
Posted By: gwoin
Date 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.
|
Posted By: Oleg
Date 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
|
Posted By: gwoin
Date 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.
|
Posted By: gwoin
Date 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.
|
Posted By: Oleg
Date Posted: 08 January 2007 at 5:07am
Hi,
Thanks. Checking what was breaked.
------------- Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
|
Posted By: Oleg
Date 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:
http://forum.codejock.com/uploads/20070109_015142_bin.zip - uploads/20070109_015142_bin.zip
------------- Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
|
Posted By: gwoin
Date 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.
|
Posted By: Oleg
Date 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
|
Posted By: gwoin
Date 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.
|
Posted By: gwoin
Date 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
|
Posted By: Oleg
Date Posted: 10 January 2007 at 9:52am
Hi,
Thanks for help.
------------- Oleg, Support Team CODEJOCK SOFTWARE SOLUTIONS
|
|