![]() |
SOLVED: How to set Font of Form at runtime |
Post Reply
|
| Author | |
Aaron
Senior Member
Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
Quote Reply
Topic: SOLVED: How to set Font of Form at runtimePosted: 05 March 2009 at 4:48am |
|
Hi,
Is it possible to set another font for form caption at runtime when Skin is already applied?
Thanks a lot
|
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 March 2009 at 8:01am |
|
Hi,
Sorry, no :( Only to change all fonts with replacing skin ini.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Aaron
Senior Member
Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 March 2009 at 10:03am |
|
Hi Oleg,
Would it be possible to load new skin with ini as seperate file or resource ???
Thanks
|
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 March 2009 at 2:09am |
|
Hi,
Yes, call first
SkinFramework.CreateSchema
and SkinFramework.SetWindowTheme to apply it for some window.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Aaron
Senior Member
Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 March 2009 at 3:54am |
|
Hi Oleg,
It doesn't do what I want
![]() Well this is what I tried:
Can you please tell me what is wrong?
|
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 March 2009 at 5:24am |
|
try to compile new cjstyles with our SkinBuilder. also try
Set skinSchemaTemp = SkinFramework.CreateSchema(App.Path & "\res", "NormalBlue.INI")
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Aaron
Senior Member
Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 March 2009 at 7:22am |
|
Hi Oleg,
Set skinSchemaTemp = SkinFramework.CreateSchema(App.Path & "\res", "NormalBlue.INI") works but entire form (caption, borders, system buttons etc. etc.) are just black, no images are shown. Also menu isn't showing, only dropdown menu items.
Do I have set something else?
Thanks
|
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 March 2009 at 1:47pm |
|
Hi,
yes, you need fix all paths inside ini file.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Aaron
Senior Member
Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 March 2009 at 2:26pm |
|
Hi Oleg,
This is what SkinBuilder exported in ini file:
ImageFile = Blue\FrameCaption.png
All images are in ...\res\*.png
Ini files are in ...\res\*.ini
What should it be?
I tried to change path in ini file:
And it still didn't work |
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 06 March 2009 at 4:04pm |
|
Hi,
replace
ImageFile = Blue\FrameCaption.png
to
ImageFile = FrameCaption.png
or move all images to Blue subfolder. |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Aaron
Senior Member
Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
Quote Reply
Posted: 07 March 2009 at 3:28am |
|
Hi Oleg,
I can't get it to work
I guess you have to test this yourself (maybe just once)Thanks
|
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 March 2009 at 3:24am |
|
Hi,
Here sample: Skins.zip
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Aaron
Senior Member
Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 March 2009 at 4:34pm |
|
Hi Oleg,
Thanks for sample, so now I know it can be done
I wonder why it doesn't work when exporting to resource ???I will look into this again and report it to you (or others who want to do the same).
Thanks again
|
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 10 March 2009 at 1:58am |
|
Hi,
I guess you exporting it somehow wrong :)
|
|
|
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 |