Setting Color of ColorPicker

Hi,
I feel like I am missing something obvious (checked the
LIveDocs and Googled a ton). I have a Flex-based event management
site. When adding a new event, the event owner has the option to
select their link (and link hover) colors from a standard Flex
ColorPicker. This works without any issues. However, when an event
owner is editing an existing event's details, I need to set the
color picker to show the previously selected colors, which are
pulled from a database.
Colors are stored in the database as strings in the following
format: 0xFFFFFF, 0x537189, etc. If the colors are web-safe, I have
no problem setting the selected color of the ColorPicker:
myCP.selectedColor = uint('0xFFFFFF').
If the color is not web-safe, my code falls over in that the
correct color is not set (all non-web safe colors are set to
0xFFFF00 even though they are in the DB with the proper hex value).
If I manually type in the hexadecimal color value to the
ColorPicker's text field, the color is properly displayed and sent
to the DB correctly when the form is submitted. If I reload the
application, I then see the incorrect color I mentioned above.
Stumped on this one. I've thought about loading a massive
Array of hex values and set it as the DP of the ColorPicker but
that seems like more work than should be necessary. Of course, I
could force the client(s) to use web safe colors but then they'll
just whine about how limiting 216 colors are for links :).
If anyone has some thoughts on this or a solution, I would
really appreciate it.
Thanks,
Craig

Can you provide some simplified yet "complete" sample code? I
can't repro the problem.

Similar Messages

  • Setting color codes for more than one photo at a time

    Is there any way to set color codes for more than one photo at a time?

    Hi John,
    I will look at keywords. My issue is speed. Right now I am culling and editing an event shoot that spanned a week with 35 separate events and more than 5000 images. So I use the fastest most convenient method I can and it still takes a long time to have a completed and final shoot. On this shoot I will end up with a final set of around 1500 images. Right now I am finishing processing a show that will hang in the Deutsches Amerikanish Zentrum in Stuttgart.
    As I am sure you are aware by now, having seen enough of my inane questions that over the last two years or since Lightroom version 1.xx if I could not figure out how to do something I skipped it. So many things in Lightroom are buried and unless you have a mind like a steel trap (and think that some of you guys in the forum do) locating how to do something is not obvious.
    For example, I only learned (in the last hour) that I could assign colors as a group of selections by using Shift + number. I found this in a side head in Martin Evenings Lightroom book. I still do not know how to find a way to display the color filter "selection" set in Library mode. Is there a way?
    To top it off, Stuttgart Media University asked me if I would add a Lightroom module to my schedule this year. Now I have a compelling reason to learn all those missing pieces that I have created workarounds for. Hence the number of posts you have been seeing from me over the past few of weeks.
    I tell my class that there are no such things as stupid questions, only questions. Now I am practicing what I have been preaching for the last gazillion years. Guys like you have been great.
    My workflow is
    1. I first separate all images by event. I do that at the time of import.
    2. I do a fast pass rejecting all the obviously bad images
    3. I do a second pass grouping the images by sub-group (speeches, people talking, performances, etc.) This is where I run out of selection methods and your key-wording could work but it would probably take too much time to establish a keyword set for a single event. Where I have more than five subgroups I set up different collection sets with one collection for each sub group. However I would like to keep a single event in one collection.
    4. I then select the images to be used by color code.
    5. Next I process the final images (crop develop etc) by collection.
    6. Last I output the set according to client requirement.
    If you have a better workflow, I am all ears.
    By the way, what is your photo specialty and where are you located?
    Jim

  • To set color for barchart having datetime column

    Hi,
       I have a datetime column in the XSD,
    I was trying to set colors for the barchart through,  chart expert --> colorhighlight  ,here in  colorhighlight when i click on new I am getting a dialogue box asking to enter datetime in M:D:YYYY H:MM:SS TT format. why is this dialogue displayed ? How to overcome this.
    Regards,
    Deepa V

    Hi Deepa
    Please inform us with the following information:
    1: What is the version of Crysatl Reports that you are using?
    2: What is the Chart Type that you are uisng?
    3: Where are you placing this chart in the report?
    Regards
    Ashwini Yadav

  • [AS][INDCC] How to set Color Conversion field to No Color Conversion when creating PDF Export preset

    How can i set Color Conversion field in Export to PDF dialog to No Color Conversion when creating PDF Export preset? i have done a bit of searching and have found where it has been recommended to set effective pdf destination profile to use no profile but it doesn't seem to be producting the expected results.

    Yes, it seems that i had to make the change after creation, not while creating the preset. thank you.
    tell application "Adobe InDesign CC"
         set newPreset to make new PDF export preset with properties ¬
              {name:"preset name", standards compliance:none, acrobat compatibility:acrobat 7}
         tell newPreset to set PDF color space to unchanged color space
    end tell

  • Set color for TableCellDesign for a table in readmode.

    My Requirement is dynamic assiging the Tabcelldesgin color for table column, but Table in readonly = false.
    is there any possiblity of assigining the values dunamically.
    Thanks in  advance

    Yes, i have assigned to Table column to set color dynamically for  different conditions.
    But color is visible, when table in read mode.
    My requirement is need to set color, when table in readonly = false.
    Please can any one have the solution for this>

  • How to set color of our specified JTable's row

    i need to set color of our specified JTable's row.so send the coddings of that part.

    i need to set color of our specified JTable's row.so
    send the coddings of that part.I think you misunderstand how this forum works...
    If you have a problem, you post your problem here with example code which demonstrates said problem...
    The people here then attempt to help you if they want to.
    You do not post demands for code examples

  • How to set color for a tabstrip in BSP

    Hello all,
    Can anyone please let me know how to set color for a tabstripn in BSP?
    I am using the below syntax but it still gives me the default color.
    <htmlb:content design="design2003" >
      <htmlb:page title="test " >
        <htmlb:form>
    <htmlb:tabStrip id         = "TabStrip"
                          bodyHeight = "200"
                          bodyColor  = "red"
                          width      = "700" >
    </htmlb:tabStrip>
    </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    Thanks,
    Sandeep

    Hi...
    The below code is working fine for me...
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page title="stg " >
        <htmlb:form>
          <htmlb:tabStrip width      = "430"
                          bodyColor  = "rgb(88,5,64)"
                          id         = "t1"
                          bodyHeight = "112" >
            <htmlb:tabStripItem id      = "t1"
                                index   = "1"
                                title   = "Sales"
                                tooltip = "My Tooltip for Tab 1" >
              <htmlb:textView text="Tab N 1" />
              <htmlb:tree id        = "treeReports"
                          showTitle = "true"
                          table2    = "<%= mt_nodes %>"
                          title     = "Menu"
                          width     = "100%" />
            </htmlb:tabStripItem>
            <htmlb:tabStripItem id      = "t2"
                                index   = "2"
                                title   = "Production"
                                tooltip = "My Tooltip for Tab 2" >
              <htmlb:textView text="Tab N 2" />
            </htmlb:tabStripItem>
          </htmlb:tabStrip>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>

  • Setting Color for Records in forms6i

    Dear All
    How can I set color for particular records on a form. i.e. Set the color of all employees whose salary is greater than 2000 to Red and All the rest to Green
    Solomon

    Hello,
    6i is an old version and I don't remember if there is a Set_Item_Instance_Property() built-in. If yes, you can use it with a Visual Attribute that held the colors.
    Francois

  • How do i set colors on javascript coding page, colors are not seen after installing Firefox version 8

    How do i set colors on javascript coding page, colors are not seen after installing Firefox version 8 . I am using WaveMaker application for web development

    Make sure that you allow pages to choose their colors and that you haven't enabled High Contrast in the Accessibility settings.
    *Tools > Options > Content : Fonts & Colors > Colors : [X] "Allow pages to choose their own colors, instead of my selections above"
    *http://kb.mozillazine.org/Website_colors_are_wrong
    *http://kb.mozillazine.org/Websites_look_wrong

  • How set color for a ValidationTextField's hint?

    I want to set color for a ValidationTextField's hint, to
    implement watermark effect, how do it?

    Hi...
    The below code is working fine for me...
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content design="design2003" >
      <htmlb:page title="stg " >
        <htmlb:form>
          <htmlb:tabStrip width      = "430"
                          bodyColor  = "rgb(88,5,64)"
                          id         = "t1"
                          bodyHeight = "112" >
            <htmlb:tabStripItem id      = "t1"
                                index   = "1"
                                title   = "Sales"
                                tooltip = "My Tooltip for Tab 1" >
              <htmlb:textView text="Tab N 1" />
              <htmlb:tree id        = "treeReports"
                          showTitle = "true"
                          table2    = "<%= mt_nodes %>"
                          title     = "Menu"
                          width     = "100%" />
            </htmlb:tabStripItem>
            <htmlb:tabStripItem id      = "t2"
                                index   = "2"
                                title   = "Production"
                                tooltip = "My Tooltip for Tab 2" >
              <htmlb:textView text="Tab N 2" />
            </htmlb:tabStripItem>
          </htmlb:tabStrip>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>

  • JEditorPane set color for desired chars

    How can I set color and other parameters for desired chars in JEditorPane or it's better to use some other class.
    Thanks.

    Read this section from the Swing tutorial on "Using Text Components" and then decide which is best for you:
    http://java.sun.com/docs/books/tutorial/uiswing/components/text.html

  • How to set colors in cells depending the conditions  in alvtree

    Hi All,
    Could you please provide me idea or sample program how to set colors in cells depending the conditions  in alvtree.
    Thanks,
    Suresh

    When running vim in a terminal, it will use whatever colour scheme is defined by the terminal.  You should have a look at this thread:
    http://bbs.archlinux.org/viewtopic.php?id=51818
    Also, check the wiki article on Xdefaults.

  • How to set colors to table control?

    Hi all,
    can we set colors to tables columns and rows?? How can we acieve this? Any help please
    Thanks,
    Madhan.

    Hi All
    thanks for your replies..
    data tab type IF_main_view=>Elements_segment.
      data line type IF_main_view=>Element_segment.
      data node_info type ref to if_wd_context_node_info.
      data attribute_info type wdr_context_attribute_info.
      data attr_value type WDR_CONTEXT_ATTR_VALUE.
      data wd_standard_cell type ref to cl_wd_table_standard_cell.
      data component like line of cl_abap_structdescr=>components.
      data wd_table_column type ref to cl_wd_table_column.
      node_info = lo_nd_segment->get_node_info( ).
      attribute_info = node_info->get_attribute( 'CELL_DESIGN' ).
    if component-name = 'SEGMENT'.
      wd_standard_cell->set_cell_design( CL_WD_ABSTR_MASTER_TABLE_COL=>E_CELL_DESIGN-BADVALUE_MEDIUM ).
    endif.
    i am trying to set color for  some colomns, but i am not getting any colors??? anything wrong in this.. please help
    thanks,
    Madhan.

  • How to set color space to JPEG image with Java advance Imaging

    How to set color space to JPEG image with Java advance Imaging.
    is there any API in JAI which support to set color space.

    I'm definately no guru, but this is how you can change it.
    CTRL + ALT + Click on the part of the component that you want to change. This brings up the Hidden Dom Inspector, background of component will be surrounded with a red outline (Make sure the red outline is surrounding the part of the tabset you want to change), Now you go to properties sheet and click the ellipses next to rules property this will pop up a dialog you look in this list (At the top) to see the default style classes that are affecting the rendering of the component outlined in red. (You will be able to select different sections of a single component) then you just rewrite the style class that you want to change in your Stylesheet (You will not find the styleclass that you want to change because it is a part of your theme .jar but as long as you name it exactly the same and place in your stylesheet it will override the theme .jar style classes) it's actually very easy -- you were right should be a piece of cake for a guru. Don't have the link handy but you can check out Winston's Blog on changing Table Formatting to get this information...It is EXTREMELY useful if you want your apps to have a custom look and not default that comes with Creator Themes.
    Hope this helps you out God knows others have helped me alot!
    Jason

  • How do I set color in IndexColorModel for Graphics

    I can't find a reasonable way to set the color so my test code is below:
    The IndexColorModel, BufferedImage, and Graphics2D construction is:
    IndexColorModel icm4=new IndexColorModel(4,16,r4,g4,b4);
    BufferedImage bi4=new
    BufferedImage(300,200,BufferedImage.TYPE_BYTE_BINARY,icm4);
    Graphics2D bi4g2=bi4.createGraphics(); where most of the rest of the code is:
    byte[]r4=new byte[] {000,(byte)255,(byte)000,(byte)000,(byte)255,(byte)255,(byte)000,(byte)255,(byte)255,(byte)255,(byte)100,(byte)150,(byte)200,(byte)255,(byte)000,(byte)000};
    byte[]g4=new byte[] {000,(byte)000,(byte)255,(byte)000,(byte)255,(byte)000,(byte)255,(byte)255,(byte)075,(byte)127,(byte)100,(byte)150,(byte)200,(byte)255,(byte)000,(byte)000};
    byte[]b4=new byte[] {000,(byte)000,(byte)000,(byte)255,(byte)000,(byte)255,(byte)255,(byte)255,(byte)000,(byte)127,(byte)100,(byte)150,(byte)200,(byte)175,(byte)000,(byte)000};
    bi4g2.setColor(Color.black);
    bi4g2.drawString("bi4g2.drawString black",20,10);
    bi4g2.setColor(Color.red  );
    bi4g2.drawString("bi4g2.drawString red",20,20);
    bi4g2.setColor(Color.green);
    bi4g2.drawString("bi4g2.drawString green",20,30);
    bi4g2.setColor(Color.blue );
    bi4g2.drawString("bi4g2.drawString blue",20,40);
    bi4g2.setColor(Color.cyan );
    bi4g2.drawString("bi4g2.drawString cyan",20,50);
    bi4g2.setColor(Color.gray );
    bi4g2.drawString("bi4g2.drawString gray",20,60);
    bi4g2.setColor(Color.pink );
    bi4g2.drawString("bi4g2.drawString pink",20,70);
    bi4g2.setColor(Color.white);
    bi4g2.drawString("bi4g2.drawString white",20,80);
    bi4g2.setColor(Color.orange);
    bi4g2.drawString("bi4g2.drawString orange",20,90);
    bi4g2.setColor(Color.yellow);
    bi4g2.drawString("bi4g2.drawString yellow",20,100);
    bi4g2.setColor(Color.magenta);
    bi4g2.drawString("bi4g2.drawString magenta",20,110);
    bi4g2.setColor(Color.darkGray);
    bi4g2.drawString("bi4g2.drawString darkGray",20,120);
    bi4g2.setColor(Color.lightGray);
    bi4g2.drawString("bi4g2.drawString lightGray",20,130); What is the correct way to set color?
    This doesn't work so well, but it sort of works.

    Are you talking about ePubs or iBook Author which is a similar but separate application.
    Pages doesn't have spreads, you have to construct the adjacent pages with each half of any textboxes or images on the left and right hand pages of a spread.
    Peter

Maybe you are looking for

  • Report structure issue

    EPM 10 SP15 I have a requirement to build a asymmetric column axis and dynamic row expansion input form to be done. If i can do this, that would avoid unnecessary building the same structure with 7 different reports to construct the asymmetric column

  • First 'impression' of Safari 3.0 Beta in the first 5 minuites of use.

    I'm using Windows Vista Home Premium and just downloaded Safari 3.0 for Windows Public Beta (Not included Quicktime) The installation is processed smoothly. I used it 5 minuites and my first impression is nothing but BUGs BUGs BUGs. Alway Crash: 1. W

  • How do I get my bookmarks back after I deleted the folder called "Profiles" accidentally

    I deleted the profiles folder accidentally and restarted firefox, I signed in my account again and all Bookmarks, Add-ons and Preferences disappeared. Now how do I get them back?

  • Education cess and HEcess were not appearing

    Dear all, I am using Taxinj version 4.7 while creating the ARE-1 the value of ECESS and HECESS is not getting appearing if i check in table J_1IEXCHDR for ARE1 transaction type it is showing there, can any body give me advise on this. regards

  • Image resolution and ipad3 retina

    I have just screenshot an ipad home screen from an ipad3 (with app buttons etc) and wish to place this into indesign as a mockup for a client. I have tried so many variations on resolution in Photoshop, making sure its placed in at 100% in indesign b