PDA

View Full Version : How to create and use custom styles


TREX
11-22-2005, 10:05 AM
Hi,

I tried to find information on how to create a new style but I have no luck :(

Does anyone know where is a tutorial about that.

FYI: I allready tried to add my style class in the defaultstyles.lzx but than I can not launch the app :(

Thank you

TREX
11-23-2005, 06:55 AM
I could find my failure by my self:

Wrong:

<class name="gstyle" extends="style"
canvascolor="#A3B2CC"
basecolor="#A3B2CC"
bgcolor="#A3B2CC"
textfieldcolor="offwhite" textcolor="black" texthilitecolor="iceblue1"
textselectedcolor="white" textdisabledcolor="gray50"
hilitecolor="iceblue4" selectedcolor="#A3B2CC"
bordercolor="gray30" bordersize="0">
</class>

<gstyle name="myStyle"/>


right:

<class name="gstyle" extends="style"
canvascolor="0xA3B2CC"
basecolor="0xA3B2CC"
bgcolor="0xA3B2CC"
textfieldcolor="offwhite" textcolor="black" texthilitecolor="iceblue1"
textselectedcolor="white" textdisabledcolor="gray50"
hilitecolor="iceblue4" selectedcolor="0xA3B2CC"
bordercolor="gray30" bordersize="0">
</class>

<gstyle name="myStyle"/>