Jump to content

Using a CommomDialog in text edition

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
QuickDan

QuickDan

    Newbie

  • Members
  • Pip
  • 2 posts
The commonDialog control can chage the color, size and others with text.

To use it, you shoud to have a RichTextBox and a CommonDialog.

The functions can to be executeds any events, like all functions.

Up next, have a example of CommonDialog functions for text using.

* To change the color:

CommonDialog.ShowColor 'to you select a color
RichTextBox.SelColor = CommonDialog.Color

* To change the size, face, bold, italic, strike:

CommonDialog.Flags = 3
ComonDialog.ShowFont
RichTextBox.SelFontSize = CommonDialog.FontSize
RichTextBox.SelFontFace = CommonDialog.FontFace
RichTextBox.SelStrikeThru = CommonDialog.StrikeThru

* To save files:

CommonDialog.ShowSave
RichTextBox.SaveFile CommonDialog.FileName

It's a beggining instruction, but I'm being happy to can post

#2
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
I thought you use a FontDialog? Never mind. It's good to see you starting out with some tutorials!
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums