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