Jump to content

Recommended Posts

Posted

I'm using:

#include <GUIConstants.au3>

$GUI = GUICreate("", 600, 500)
$RichText = ObjCreate("RICHTEXT.RichTextCtrl")
GUICtrlCreateObj($RichText, 10, 10)
GUICtrlSetPos(-1, 10, 10, 580, 480)
With $RichText
    .Text = "Bold Text Underline Text"
    .SelStart = 0
    .SelLength = 9
    .SelBold = True
    .SelStart = 10
    .SelLength = 14
    .SelUnderline = True
EndWith
GUISetState()
$RichText.SelLength = 0

While 1
    Switch GUIGetMsg()
        Case $GUI_EVENT_CLOSE
            Exit
    EndSwitch
WEnd
oÝ÷ Ø­"G¦­¶)àjw«®ÚºÚ"µÍ
ÊHOIÝÈÛHØXÝ]HXXÈ[ÝÙY[[ ][ÝÕÚ]   ][ÝÈÝ][Y[Ú] ÌÍÔXÚ^Ú]

I haven't used rich text before, and also the with command is new to me.

Secure

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...