Git Product home page Git Product logo

class_richedit's Introduction

Class_RichEdit

AHK RichEdit Control

AHK class providing support for RICHEDIT50W controls in AHK GUIs.

In the Sources folder you'll find three scripts and one RTF test file:

  1. Class_RichEdit.ahk - contains the class definition.
  2. Class_RichEditDlgs.ahk - contains common dialogs definitions used in the sample script. It is not needed to use the class, you might simply ignore it.
  3. RichEdit_sample.ahk - is a sample script showing how to use the RichEdit control.
  4. Test.rtf - RTF test file.

How to start

At first, look at the sample script, please. It is (clearly) showing how to use the class to create and use RichEdit controls. It contains calls of the most important methods provided by the class.

To add a RichEdit control to your GUI just create a new instance of the RichEdit class, passing the GUI name and the control's options, if needed. The options may contain the control's position and dimension like used with Gui, Add as well as an optional gLabel. The constructor will add the control as a Custom, ClassRICHEDIT50W. If you don't pass options for positioning and sizing, the GUI respectively the control's defaults will be used. The current GUI font will be set as default. Also, appropriate styles are set automatically, so you must not pass style options.

After the control is created, you may set general options as defaults for the control calling the appropriate methods. Now preparation is finished.

Some of the RichEdit's functionality is working out of the box by shortcuts as shown on MSDN. But not all of them are working as documented. Aside from that, some of them cannot be used on non-english keyboards. So you'll quickly realise, that RichEdit's are easy to create, but hard to use.

And now the ball's in your court!

class_richedit's People

Contributors

ahk-just-me avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.