Results 1 to 3 of 3

Thread: Colors

Threaded View

  1. #1
    antma
    Guest

    Colors

    hi all
    I have a couple of problems


    i am designing (call it a text exitor).Now using a richedit control.

    next to the control is a button(ForColor) which opens a colordialog box with all the diffent colors. Next to the forcolor is a scollbar.

    On the form is also a preview "textbox".
    ScreenShot is attacted!!

    1.Now the question that i'm asking is how do you display the current selection on the color dialogbox ....Eg : say i select the color red ,then the preview Textbox must update in the background without hiding the dialogbox. I the user is happy with the color selection he would obviuosly press ok and the color selected will be assigned to the richedit Control.

    2.When the scrollbar is clicked the color of the richedit must then update.
    I have used rgb(rnd*) statement but it selects random colors ,
    which means that say it changes to green and i scroll back it should give me the previous color that it had

    PLEASE HELP!!
    thanx
    Attached Images Attached Images  

Posting Permissions

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



Click Here to Expand Forum to Full Width