in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Please tell me how to do this.....

Last post 10-05-2007 12:43 PM by C1_GregL. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-22-2007 1:55 PM

    Please tell me how to do this.....

    Hello There,

    I am using C1DropDownControl (Version 2.0.20072.33009) in my application to select one or more entries from a custom drop down list. The selected entries should be placed in the text-field from the control. In order to show a specific state of each entry, we would like to display each in a different color. The first word in the textfield in black, the second in blue and so on.

    So far I can see, we need a OnDrawing-Event of the TextBox-Part from the control.
    Is it possible to get such an Event or do you have a better solution?

    Waiting for your response

    Thank is advance.

    Regards,
    S M

  • 10-05-2007 12:43 PM In reply to

    • C1_GregL
    • Top 10 Contributor
    • Joined on 06-11-2007
    • Pittsburgh PA
    • Posts 500

    Re: Please tell me how to do this.....

    Hi,

    I did this using a RichTextBox as the text-field.  It's kind of cheating but it allows easy text formatting when it comes to mulitple colors.  I've attached my sample for reference.

     

    Regard,
    Greg

Page 1 of 1 (2 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.