skinning

How can I apply Delphi XE2 skins to forms in a DLL?

百般思念 提交于 2019-12-10 14:56:59
问题 Using Delphi XE2, you have the option to embed custom styles (skins) to a VCL project. Everything works fine. Now I have some forms into a separated dll that I show dynamically. Of course those are not skinned. How can I rectify that? I guess I must do some call to TVisualStyle somehow, but no luck. The host: procedure TForm1.Button1Click(Sender: TObject); var l: THandle; p: procedure (const h: THandle); stdcall; begin l:= LoadLibrary('project1.dll'); if l > 0 then begin @p:= GetProcAddress(l

Delphi XE2 VCL styles, remove a style or disable a class skinning from a TLabel

孤者浪人 提交于 2019-12-10 09:41:20
问题 Using XE2 VCL styles, I'd like to disable the skinning for TLabel (or property sfTextLabelNormal) I've tried all kind of solutions from other questions, like using Engine.UnRegisterStyleHook, but it has no effect. 回答1: The TLabel component doesn't use styles hooks because is not a TWinControl descendant, so you can't use the UnRegisterStyleHook function. Instead you must override the Paint DoDrawText method. UPDATE Here you have a sample of how override the paint process of a TLabel. /

Skin Flex 4 combobox to look like Flex 3 combobox

心已入冬 提交于 2019-12-08 14:09:25
As I have migrated my application to Flex 4 recently, I want to utilize the <s:Combobox> component in my application rather than <mx:Combobox> . The problem is that the look and feel of both are different. How can I make the <s:Combobox /> component look (all skinning e.g. hover over, click, outline) exactly the same as <mx:Combobox /> ? More specifically, I want to apply the Halo theme to a DropdownList component. Is that possible? You could just set the default skin for your application to Hero instead of Spark. Assuming you're using Flash Builder: Click on Project -> Properties . Click Flex

Skin Flex 4 combobox to look like Flex 3 combobox

我是研究僧i 提交于 2019-12-08 03:16:50
问题 As I have migrated my application to Flex 4 recently, I want to utilize the <s:Combobox> component in my application rather than <mx:Combobox> . The problem is that the look and feel of both are different. How can I make the <s:Combobox /> component look (all skinning e.g. hover over, click, outline) exactly the same as <mx:Combobox /> ? More specifically, I want to apply the Halo theme to a DropdownList component. Is that possible? 回答1: You could just set the default skin for your

Accessing custom property of hostComponent when skinning - Flex 4.5, SDK 4.5

只愿长相守 提交于 2019-12-07 05:38:43
问题 Using SDK 4.1 I was able to access custom properties of a custom button component from a custom skin. The project I'm currently working requires SDK 4.5 and I'm unable to to access the properties. Here's an example: Custom Button Component <?xml version="1.0" encoding="utf-8"?> <s:ButtonBase xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" skinClass="components.skins.ButtonIcon_Skin" > <fx:Declarations> <fx:String

How to Align 3 DIVs next to each other?

笑着哭i 提交于 2019-12-06 20:43:12
问题 I'm needing to create 3 DIVs in a footer container DIV that are aligned left, middle and right. All the CSS examples I've seen make use of floats as I've done. However, for some reason DotNetNuke is not parsing the CSS correctly. I'm finding that the left pane is floating correctly, but the right and middle panes are positioned immediately below it instead of next to it. Here's a snippet from my ascx file: <div id="footer"> <div id="footerleftpane" runat="server"> <dnn:LOGO id="dnnLogo" runat

How can I let users customize background images?

て烟熏妆下的殇ゞ 提交于 2019-12-06 14:46:23
问题 Many sites these days have 'theming' functionality, when user is able to customize the pages' look. Sometimes it's only a fixed set of themes, but sometimes people are free to choose any style they want - for example, they can set up any color of the pages' background. I want to go a step further - and let them choose the background image as well. The flow is very simple: user uploads a file (via <input type="file" /> ), then this file becomes a background image - but only for this user. I

Skinned innosetup showing text instead of scrollbar

别说谁变了你拦得住时间么 提交于 2019-12-06 01:55:36
I am trying to create a new installer using InnoSetup 5.5.8 (u) and skinned using CodeJock's ISSkin v3.0.0. I am using one of the provided example skins (Office 2007 Black) applied by copying the code example from their website ( http://isskin.codejock.com/gettingstarted.asp ). I am having some issues on our license agreement page. We currently show this using an RTF file in the default wizard screen. The problem is that on some machines we're getting text ('bef') showing instead of the skinned scrollbar: The text (which is probably part of an error message) is also unreliable, as sometimes I

Unable to resolve resource bundle “*” for locale “en_US” (Flex, Flash Builder)

ε祈祈猫儿з 提交于 2019-12-05 23:50:37
问题 since I'm using custom skin classes in Flex I'm getting an error, when trying to open the design view in Flash Builder: Description Resource Path Location Type Unable to resolve resource bundle "components" for locale "en_US". Unable to resolve resource bundle "core" for locale "en_US". Unable to resolve resource bundle "effects" for locale "en_US". Unable to resolve resource bundle "layout" for locale "en_US". Unable to resolve resource bundle "skins" for locale "en_US". Unable to resolve

Delphi XE2 VCL styles, remove a style or disable a class skinning from a TLabel

怎甘沉沦 提交于 2019-12-05 16:18:01
Using XE2 VCL styles, I'd like to disable the skinning for TLabel (or property sfTextLabelNormal) I've tried all kind of solutions from other questions, like using Engine.UnRegisterStyleHook, but it has no effect. The TLabel component doesn't use styles hooks because is not a TWinControl descendant, so you can't use the UnRegisterStyleHook function. Instead you must override the Paint DoDrawText method. UPDATE Here you have a sample of how override the paint process of a TLabel. //declare this code in the implementation part uses Vcl.Themes, Vcl.Styles; type TLabelHelper= class helper for