Results 1 to 3 of 3

Thread: Colors

  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  

  2. #2
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390
    well you cant update the screen untill the Dialogbox is gone..

    no if's and's or but's...



    the scrollbar..not sure I understand


    HSScroll1_Scroll()
    Text1.fontcolor = RGB(HSSCroll1,0,0)

    really you need 3 scrolls R,G,B...
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3
    antma
    Guest
    thanx a mil

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