Custom Editfield

I know this was discused often, but i found nothing that work fine. I tried the project from Alex Restrepo, but it wont work and is a little bit to much when i look the code :).

Edit: Image wont be show, here is the link, click.

The first Textfield is with a Canvas, but it is a nightmare to position this fields.

The second one is a Textfield with the Superclass of TextInput Canvas, but i cant type anything in it. Would nice if anyone has a little hint for me.

TextInputCanvas you have to implement the events
It does nothing by itself

Thanks for the anwser. I can add the EventHandler InsertText, but what then, sorry for this stupid question :(? Is there a documentation arround for this plugin? I searched the online documentation but nothing found, or i am blind.

  1. There’s no built in anything

No built in storage of the text entered - you have to figure out how you want to store it.
One huge run of characters or something else
In a TextArea it handles that for you already

  1. DoCommand has an enormous number of “commands” that can get sent to it
    Autocomplete will show you the long list but here’s a few
    Most are named in a way that they make sense

case cmdMoveLeft
// Implemented by subclasses to move the selection or insertion point one element or character
// to the left.

case cmdMoveLeftAndModifySelection
// Implemented by subclasses to expand or reduce either end of the selection to the left (display order)
// by one element or character.

case cmdMoveRight
// Implemented by subclasses to move the selection or insertion point one element or character to the right.

case cmdMoveRightAndModifySelection
// Implemented by subclasses to expand or reduce either end of the selection
// to the right (display order) by one element or character.

case cmdMoveDown, cmdMoveToEndOfLine, cmdMoveToEndOfDocument, _
cmdMoveToEndOfParagraph, cmdMoveToRightEndOfLine

case cmdMoveDownAndModifySelection, cmdMoveToEndOfLineAndModifySelection, _
cmdMoveToEndOfDocumentAndModifySelection, cmdMoveToEndOfParagraphAndModifySelection, _
cmdMoveToRightEndOfLineAndModifySelection

case cmdMoveUp, cmdMoveToBeginningOfLine, cmdMoveToLeftEndOfLine, _
cmdMoveToBeginningOfDocument, cmdMoveToBeginningOfParagraph

case cmdMoveUpAndModifySelection, cmdMoveToBeginningOfLineAndModifySelection, _
cmdMoveToLeftEndOfLineAndModifySelection, cmdMoveToBeginningOfDocumentAndModifySelection, _
cmdMoveToBeginningOfParagraphAndModifySelection

case cmdDeleteBackward
// Deletes the selection, if there is one, or a single character backward from the insertion point

case cmdDeleteForward
// Deletes the selection, if there is one, or a single character forward from the insertion point

case cmdDeleteToEndOfLine, cmdDeleteToEndOfParagraph
// Implemented by subclasses to delete the selection, if there is one, or all text from the insertion point to
// the end of a line/paragraph (typically of text).
//
// Also places the deleted text into the kill buffer.

case cmdDeleteToBeginningOfLine, cmdDeleteToBeginningOfParagraph
// Implemented by subclasses to delete the selection, if there is one, or all text from the insertion point
// to the beginning of a line/paragraph (typically of text).
//
// Also places the deleted text into the kill buffer.

case cmdYank
// Replaces the insertion point or selection with text from the kill buffer.

case cmdToggleOverwriteMode

TextRanges are a starting position + length to define the “range” - they’re really simple

IncompleteText is something like on OS X the case when you press & hold the e key on OS X and get the popup of variations.
The “incomplete text” is the original item that would be turned into etc

Ok, thank you, i try it.

http://great-white-software.com/input.rbp

Thanks for making our day Norman.

Or you could take a look at Formatted Text Control. It is a fully functional Canvas TextField. http://www.bkeeney.com/formatted-text-control/ and except for the TextInputCanvas plugin it’s 100% Xojo code. Handles inline graphics, URL links, and imports/exports RTF and exports to HTML.

Thanks for the anwsers.

If you enclose the link to the image in image tags then it will show as image, not as a link.

There is a starting img and a /img with , but it won’t show as image.

But the stuff in between isn’t a link to an image. It’s to a page.

Ah, now :D. Thanks for the hint.

That still redirects to the page, rather than the image. You’re fighting the hosting provider.

I can see the picture :(.

You’re probably “logged in”. The rest of us are redirected.