Skip to content

colors

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #188391

    guys i am working on the send text to room and i dont like that color can yous give me a code to put a other color for the text t.y

    #188398
    Admin
    Administrator

    Aigh this is how I do it 🙂

    I first add a the richtextbox and the common dialog components. You can do this by going to the project menu then click on components there select
    Microsoft Common Dialog Control 6 (SP6)
    Microsoft Rich Textbox Control 6 (SP6)
    select those two then click on apply then click on close

    aigh now you will see those two components added to your components box, now select them from there and drag them to your form.

    the Rich Textbox you put it where u want it to be
    the Common Dialog you can put it anywhere it wont be visible when the program starts.

    Now we goign to add 5 commands buttons one for boldnes three for the font size and another one for the color.

    on the command for boldness enter this code

    RichTextBox1.SelBold = True

    on the font size bottons add this code depending on the size u want for ur font, one thing paltalk only accepts up two 12 the number of the font I think so only go up to 12, here the codes to add

    RichTextBox1.SelFontSize = 8

    RichTextBox1.SelFontSize = 10

    RichTextBox1.SelFontSize = 12

    and on te color buttom add this

    CommonDialog1.ShowColor
    RichTextBox1.SelColor = CommonDialog1.Color

    thas it now when people highlight the font and choose any of those fnt style the font will chnage accordingly 🙂
    ah here departure code with the font color option 😉

    #188397

    yo thanks men for your help but stlil some bugs with the send text this code right here is not working Private Sub Command1_Click()
    palsend text1
    End Sub i got to fix it[code]Private Sub Command1_Click()
    palsend text1
    End Sub i got to fix it

    #188396

    #188395
    Admin
    Administrator

    ah u need to use this code on the send button 😀

    Palsend RichTextBox1.TextRTF
    #188394

    thanks loco men it works great heres the download

    #188393
    Admin
    Administrator

    works great, great start you see how easy it is 🙂

    #188392

    ya men it was ez thanks to you i know how to program and thanks for helping me code it 😀

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.