Jump to content

texteditor questions


Bru
 Share

Recommended Posts

Okay so as you may know i'm working on a project called oPad.

This is my first propper thing in AutoIt. So bare with me.

It is a text editor.

I would just like to ask a couple of questions.

How would i do such things like.

Undo, redo.

Cut, Copy and Paste.

How would i go about doing these?

Thankyou.

[right][/right]

Link to comment
Share on other sites

It's related to EditConstants.au3 but it's all is taken or build according Microsoft's controls classes and what notification or styles they have so it's better to go and read it there on MSDN, of course you'll see a short good explanation in AutoIt's help file. It's under "GUI Control Styles" in the help file, just navigate a little bit down and you'll see the styles of the edit control.

Sub classing the control is available by using a few _WinAPI_* functions to receive the class's message handler and assign a new one to it using _WinAPI_SetWindowLong($hEdit, $GWL_WNDPROC, DllCallbackGetPtr($RegistredCallbackFunc))

Take a look in the help file for examples about these functions.

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...