- This topic has 21 replies, 3 voices, and was last updated 11 years, 9 months ago by Wolfgang.
-
AuthorPosts
-
January 20, 2013 at 6:46 am #35600WolfgangParticipant
1)
I have to show some Panels in their designed colors to indicate certain states visually.
VclSkins allows to exclude items from being skinned by setting the Tag property to 99.
Is there something similar in Alpha Controls?
2)
Having converted most of a very large project to Alpha Controls, I see problems on certain Forms, which are only partially skinned. When I set the onActivate event handler to 'Invalidate' it solves the problem on most of the Forms, but still not all of them.
3)
Is there something I can do to speed up the skinning process? It seems to slow everything down quite a bit.
4)
On one particular project I have noted, that, for a menu, MeasureItem was called, before the creation of the form which only came right, after I changed all the
January 21, 2013 at 1:29 am #49968HamiltonParticipant'Wolfgang' wrote:1) I have to show some Panels in their designed colors to indicate certain states visually. VclSkins allows to exclude items from being skinned by setting the Tag property to 99. Is there something similar in Alpha Controls?
That works in AC too. You can also set SkinData.CustomColor to true and then set the color.
'Wolfgang' wrote:2) Having converted most of a very large project to Alpha Controls, I see problems on certain Forms, which are only partially skinned. When I set the onActivate event handler to 'Invalidate' it solves the problem on most of the Forms, but still not all of them.
Can you be more specific – what controls aren't skinned, can you provide a simple demo?
There is an issue that some buttons aren't updated when the color is changed but that's the only issue I'm aware of.
You could try calling sSkinManager1.RepaintForms to redrawn all components, or if that doesn't work and calling Control.Invalidate doesn't work either then I'd suggest TsSpeedButton(Components).SkinData.Invalidate (where you replace TsSpeedButton with your control type). But really – this kind of fix should not be required and if you can post a sample that demonstrates a problem then I'm confident either we'll be able to point out your error or the AC team will provide a fix.
'Wolfgang' wrote:3) Is there something I can do to speed up the skinning process? It seems to slow everything down quite a bit.
Add a SkinProvider to each of your forms. Turn off some animations if you think they are slow. Buy a faster PC and upgrade from XP – not sure if either of those are relevant but it is not normal to have display lag unless you have a low spec or old system.
'Wolfgang' wrote:4)
On one particular project I have noted, that, for a menu, MeasureItem was called, before the creation of the form which only came right, after I changed all the
Your question has been cut off. It doesn't seem right to call MeasureItem that early but I'm not familiar with that section of code and I'm not sure what your problem is so I can't respond further.
Regards,
Hamilton
January 21, 2013 at 5:04 am #49969WolfgangParticipant'Hamilton' wrote:That works in AC too. You can also set SkinData.CustomColor to true and then set the color.
Can you be more specific – what controls aren't skinned, can you provide a simple demo?
There is an issue that some buttons aren't updated when the color is changed but that's the only issue I'm aware of.
You could try calling sSkinManager1.RepaintForms to redrawn all components, or if that doesn't work and calling Control.Invalidate doesn't work either then I'd suggest TsSpeedButton(Components).SkinData.Invalidate (where you replace TsSpeedButton with your control type). But really – this kind of fix should not be required and if you can post a sample that demonstrates a problem then I'm confident either we'll be able to point out your error or the AC team will provide a fix.
Add a SkinProvider to each of your forms. Turn off some animations if you think they are slow. Buy a faster PC and upgrade from XP – not sure if either of those are relevant but it is not normal to have display lag unless you have a low spec or old system.
Your question has been cut off. It doesn't seem right to call MeasureItem that early but I'm not familiar with that section of code and I'm not sure what your problem is so I can't respond further.
Regards,
Hamilton
January 21, 2013 at 5:11 am #49970WolfgangParticipantAd 1)
Setting the Tag property for the Panel, I want to leave unskinned, to 99 has no effect.
Could you provide a short explanation or point me to a manual please?
Ad 2)
sSkinManager1.RepaintForms has solved the problem of partially unskinned Forms, thank you.
Ad 3)
This seems to have gone hand in hand with sSkinManager1.RepaintForms and is no longer a problem, thank you.
FYI: i7 Processor, 4GB Ram, Windows 7 Pro and Delphi XE3 Pro.
Ad 4)
The project I am talking about, is FreeRep 234, which I have converted to run on DelphiXE3. Will do some more testing
and get back to you.
Kind Regards
Wolfgang
January 21, 2013 at 10:50 am #49977SupportKeymasterHello!
1) Try to change Tag to “-98” 🙂
2) I'll be grateful for a demo with this problem, if you can give it. I will try to sove an issue with automatic refresh.
3) Standard and thirdparty controls are more slower than a controls which included to the AlphaControls package. AlphaControls specially designed and optimized for using with skins.
January 21, 2013 at 1:00 pm #49982WolfgangParticipantChanging Tag to -98 has no effect …
January 21, 2013 at 2:03 pm #49983SupportKeymasterThis tag should be used in standard or thirdparty control.
Control from the package will have standard look if SkinData.SkinSection is not defined in a skin. Change it to 'NONE', for example.
January 21, 2013 at 2:40 pm #49984WolfgangParticipantThat solved the exclusion problem, thank you.
January 23, 2013 at 1:21 am #50006WolfgangParticipantAd 4)
I have placed an example on my FTP Site, which you can download from here:
ftp://www.compmark.biz/Alpha/frrep234.7z
This is the complete component suite for FreeReport Delphi 2006, updated for
DelphiXE3.
You need to install FrreRep10.dpk, then run ReportsFrDemo.dpr.
The problem disappears, when sSkinManager1.Active = False
January 24, 2013 at 5:37 am #50013WolfgangParticipantAny news?
January 24, 2013 at 11:25 am #50018SupportKeymasterI'm sorry, I can't install this package, look the error in the picture.
January 24, 2013 at 1:17 pm #50020WolfgangParticipant'Support' wrote:I'm sorry, I can't install this package, look the error in the picture.
Sorry, please try again with these Files
ftp://www.compmark.b…pha/sources.7z
Kind Regards
Wolfgang
January 24, 2013 at 1:19 pm #50021WolfgangParticipantShould have been
January 24, 2013 at 6:31 pm #50025SupportKeymasterI should install Jvcl also, seems. Tomorrow I'll try to do it.
January 25, 2013 at 12:05 am #50031WolfgangParticipantSorry, my mistake.
You can just replace all TJvSpeedButton with TsSpeedButton, and TJvLabel with TsLabel
Kind Regards
Wolfgang
PS: I really appreciate your efforts.
January 28, 2013 at 7:32 am #50039SupportKeymasterNext error is attached.
I have removed these files from “required” part :
Code:NexusDB311dv160,
NexusDB311ll160,
NexusDB311sr160,
NexusDB311sd160,
NexusDB311si160,
NexusDB311pt160,
NexusDB311tc160,
NexusDB311tn160,
NexusDB311tw160,
NexusDB311sq160,
NexusDB311se160,
NexusDB311ch160,
NexusDB311re160,
NexusDB311db160,
kbmMemD2006Run,
SynEdit_R2006,
Jcl,
JvCore,
JvStdCtrls,
JvCustom,
JvNet,
O407_r120,
Float,
XLSRWII20_D7Maybe it's a reason?
January 28, 2013 at 7:41 am #50041WolfgangParticipantAgain my apologies. Over the years I have added a lot of stuff, which is specific for my needs, but by removing all things, which the compiler coughs at, should bring it back to basics.
ThousandSeparator in Delphi XE3 is defined in FormatSettings, should therefore be
FormatSettings.ThousandSeparator
etc.
I have actually solved the problem by removing the
procedure TfrDesignerForm.WndProc(var Message: TMessage);
from FR_DESGN.Pas, as your WndProc somehow seems to interfere here. This is however not the desired solution, as your “skinning” should surely peacefully coexist with all skinned forms and WndProcs it encounters?
Kind Regards
Wolfgang
January 28, 2013 at 9:12 am #50051SupportKeymasterThank you, now I can compile and research it.
This report is very specific..
frTBButton can't be skinned seems, because it's not standard control.
January 30, 2013 at 12:35 am #50080WolfgangParticipant'Support' wrote:Thank you, now I can compile and research it.
This report is very specific..
frTBButton can't be skinned seems, because it's not standard control.
Any progress?
January 31, 2013 at 1:30 pm #50092WolfgangParticipantDid you find anything, I can play around with over the weekend?
What would you suggest?
Kind Regards
Wolfgang
-
AuthorPosts
- You must be logged in to reply to this topic.