Select language
English : Russian
Desktop multi language  
Aston Shell Desktop manager and Shell replacement AltDesk virtual desktops aston desktop
Top main menuMainDownloadsRegistrationSupport 
Products
Aston2
  • Product details
  • Themes
  • Live desktop
  • Skinning Manual
  • Skinning Tutorials
  • Aston 1.x
  • Aston2 Menu
  • Product details
  • Skins
  • Aston Secure Desktop
  • Product details
  • AltDesk
  • Product details
  • FAQ
  • Skinning Tutorial
  • Skins
  • StarBlaze
  • Product details
  • FAQ
  • StarBlaze 2
  • Product details

  • Services
  • Upload center
  • Press
  • Links


    MrBiotech's site

    adni18 site

    Skinning.net site
    Freeware
  • Fox Hunting
  • c2pas32

  • Search

    Object settings

     
     

    Object settings.

    Each skinned object can have some additional settings (depending on the widget functionality). Let's consider a typical case - the positions of widget elements can be defined by the skin settings. Generally, the elements position is a sum of two rectangles - percent component rectangle and pixel component rectangle.
    For example:

    ...
    <object name="Menu"
            normal_font="Arial, size=16, style=B"
            highlight_font="Arial, size=16, style=B" >
    
      <background name="default">
        <percent_rect x="0" y="0" x2="100%" y2="100%"/>
        <pixel_rect   x="0" y="0" x2="0"    y2="0"/>
      </background>
    
      <left_scroller>
        <percent_rect x="0" y="0" x2="0"  y2="100%"/>
        <pixel_rect   x="0" y="0" x2="20" y2="0"/>
      </left_scroller>
    
      <right_scroller>
        <percent_rect x="100%" y="0" x2="0" y2="100%"/>
        <pixel_rect   x="-20"  y="0" x2="0" y2="0"/>
      </right_scroller>
    
    </object>
    ...
    

    As you see, "Menu" object has additional font settings, positions of the background and two scrollers.
    The backgroud coincides with the whole area of "Menu" object (100% for right and bottom coordinates, plus zero pixel offset).
    The left scroller position is defined relatively to the left side of "menu" object (0% for both percent X-coordinates, plus the pixel offset for the right edge).
    The right scroller position is defined relatively to the right side of "menu" object (100% for both percent X-coordinates, plus the negative pixel offset for the left edge).
    If some coordinate is equal to zero, you can skip it.
    If the percent rectangle coincides with the whole widget area, you can skip percent_rect section.
    If the pixel rectangle is zero, you can skip pixel_rect section.

    Now, let's how colors are defined in Aston2:

    First two symbols are numberic zero '0' and letter 'x' in low case (don't mix up with letter 'O'). Next couple of symbols is transparency in hexdecimal presentation. The value ranges from '00' for complete transparent (invisible) to 'FF' (opaque).
    Similar way to define colors is used in HTML standard (like '#112233'), last six symbols are the same as for Aston2 standard. Some graphics editors have tools to pick colors in HTML standard. Thus, you can use them:

    And some more examples for colors:

    The another typical case is font setting (for section text in this example):

    ...
    <object name="User Name" width="200" height="50">
    
        <text font="Arial, size=10, style=BUI"
              align_u = "center"
              align_v = "top"
              color="0xFF8080af"
              shadow_color="0xFFe8e8ef"
              shadow_x_ofs="1"
              shadow_y_ofs="1">
        </text>
    
    </object>
    ...
    

    Standard font attributes are:

    font - font presentation. String contains font name, size and style (over comma).
    The style can be defined as any set of symbols (can be skiped): B (Bold), U (Underline) and I (Italic)
    align_u - horizontal alignment property. Value can be: "left", "center", "right"
    align_v - vertical alignment property. Value can be: "top", "center", "bottom".
    color - color of font.
    shadow_color- color of shadow.
    shadow_x_ofs- horizontal shadow offset in pixels. Valid range is [-2,2].
    shadow_y_ofs- vertical shadow offset in pixels. Valid range is [-2,2].


    back


     
         
    Copyright © 1999-2024 Gladiators Software