×

Discussion Board

Results 1 to 2 of 2

Thread: dynamic style

  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    13

    dynamic style

    whether it is possible to dynamically change the style of a component to another style which is not in widget.xml?

    or do something like this:
    PHP Code:
    ...
    <
    parameters>
        <
    parameter name="my_color">
            <
    value>
                
    red
            
    </value>
        </
    parameter>
    </
    parameters>
    ....
    <
    stylesheet>
    tag_item{
             
    color-1: $(my_color);
            }
    </
    stylesheet>
    .... 
    and then change style by changing parameter "my_color"?

  2. #2
    Regular Contributor
    Join Date
    Jul 2004
    Posts
    52

    Re: dynamic style

    Sorry, dynamic properties in styles are not possible as styles are compiled to binary format when uploaded ;(

    Only way to change styles would be either to create style for each color you want to use, or to use Canvas component and Graphics to create the whole component from scratch. However this way you would lose all features of the component ;(

    At least I have been always able to work with predefined set of styles.

    /render

Similar Threads

  1. Rotate dynamic text box
    By narender_raul in forum [Archived] Flash Lite on Nokia Devices
    Replies: 2
    Last Post: 2008-12-05, 18:21
  2. Replies: 0
    Last Post: 2008-09-27, 03:58
  3. Dynamic CAknPopupFieldText n KERN-EXEC 3
    By Shilpa13 in forum Symbian User Interface
    Replies: 5
    Last Post: 2008-05-28, 11:36
  4. self.img.text - how to set text style
    By novis in forum Symbian
    Replies: 4
    Last Post: 2007-07-12, 15:52
  5. how to change fonts of double style listbox
    By mobileworm in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2005-11-04, 23:30

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •