RichEdit class

Inheritance

Constructors

RichEdit({int? id, Window? parent, int x = CW_USEDEFAULT, int y = CW_USEDEFAULT, int width = CW_USEDEFAULT, int height = CW_USEDEFAULT, int? bgColor, bool defaultRepaint = false, String? defaultFont})

Properties

bgColor int?
The background color of this Window (if applicable).
getter/setter pairinherited
children List<Window>
no setterinherited
created bool
Returns true if this Window was created.
no setterinherited
createId int
The create ID.
no setterinherited
defaultFont String
getter/setter pair
defaultRepaint bool
If true will perform a default repaint and will NOT call the custom repaint method.
getter/setter pairinherited
dimension Pointer<RECT>
This Window dimension (with the last fetch value).
finalinherited
dimensionHeight int
This dimension height.
no setterinherited
dimensionWidth int
This dimension width.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
height int?
The height of this Window when created.
getter/setter pairinherited
hMenu int?
The hMenu parameter passed to CreateWindowEx.
finalinherited
hwnd int
The window handler ID (if created).
no setterinherited
hwndIfCreated int?
Returns the window handler ID if created or null.
no setterinherited
id int
Returns the ID of this child window.
no setterinherited
isDestroyed bool
Returns true if the window was destroyed and the WM_NCDESTROY was processed.
no setterinherited
isMaximized bool
Returns if this Window is maximized.
no setterinherited
isMinimized bool
Returns if this Window is minimized.
no setterinherited
onClose Stream<Window>
On close event (after WM_CLOSE message).
no setterinherited
onDestroyed Stream<Window>
On destroy event (after WM_DESTROY -> WM_NCDESTROY messages).
no setterinherited
parent Window?
The parent Window of this instance.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
version int
The version of the loaded RICHEDIT library.
no setter
width int?
The width of this Window when created.
getter/setter pairinherited
windowClass WindowClass
The WindowClass of this Window.
finalinherited
windowName String?
The name of this Window. If it's a frame this is the Window title.
finalinherited
windowNameNative Pointer<Utf16>
no setterinherited
windowStyles int
The style flags of this Window to pass to CreateWindowEx.
finalinherited
x int?
The x coordinate of this Window when created.
getter/setter pairinherited
y int?
The y coordinate of this Window when created.
getter/setter pairinherited

Methods

appendAllTextFormatted(Iterable<TextFormatted> textFormatted, {bool scrollToBottom = true}) int
Alias to appendTextFormatted passing all textFormatted elements.
appendText(String text, {int? color, bool bold = false, bool italic = false, bool underline = false, String? faceName, bool scrollToBottom = true}) → void
Append a text with different colors to this RichEdit.
appendTextFormatted(TextFormatted textFormatted, {bool scrollToBottom = true}) → void
Alias to appendText passing textFormatted attributes.
build(int hwnd, int hdc) → void
Window build procedure.
inherited
callBuild({int? hdc}) bool
Calls build resolving necessary parameters.
inherited
callRepaint({int? hdc}) bool
Calls repaint resolving necessary parameters.
inherited
close() bool?
Closes this Window.
inherited
create({bool createChildren = true}) Future<int>
Creates this Window.
inherited
createWindowImpl(Pointer<Uint32> createIdPtr) int
Window creation implementation.
inherited
destroy() bool
Destroys this Window.
inherited
doDestroy() → void
Perform final destroy operations for this instance.
inherited
drawBG(int hdc, {int? bgColor}) → void
Paint operation: draws this Window background.
inherited
drawImage(int hdc, int hBitmap, int x, int y, int width, int height) → void
Paint operation: draws hBitmap at coordinates x, y.
inherited
drawText(int hdc, String text, int x, int y) → void
Paint operation: draws text at coordinates x, y.
inherited
ensureLoaded() Future<void>
Ensures that load was called.
inherited
fetchDimension() → void
Fetches this Window dimension.
inherited
fillRect(int hdc, int color, {Rectangle<num>? rect, Pointer<RECT>? pRect}) → void
Paint operation: fills a rectangle with color.
inherited
getCharFormat([int range = SCF_SELECTION]) Pointer<CHARFORMAT>
Gets the CHARFORMAT of this RichEdit.
getWindowLongPtr(int nIndex) int
inherited
getWindowText({int? length}) String
Returns this Window text.
inherited
getWindowTextLength() int
Returns this Window text length.
inherited
invalidateRect({Rectangle<num>? rect, Pointer<RECT>? pRect, bool eraseBg = true}) bool
Invalidates Window region.
inherited
load() Future<void>
Loads asynchronous resources.
inherited
log(Level level, String method, [String msg()?]) → void
Logs at RichEdit logging.Logger.
logInfo(String method, [String msg()?]) → void
INFO log
logSevere(String method, [String msg()?]) → void
SEVERE log
logWarning(String method, [String msg()?]) → void
WARNING log
maximize() bool
Maximized this Window.
inherited
minimize() bool
Minimizes this Window.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyClose() → void
Should be called while processing a WM_CLOSE message.
inherited
notifyDestroyed() → void
Should be called while processing a WM_NCDESTROY message.
inherited
processClose() bool?
Processes a WM_CLOSE message or a close call.
inherited
processCommand(int hwnd, int hdc, int wParam, int lParam) → void
Processes a WM_COMMAND message. Also calls processCommand for children Windows.
inherited
processDestroy() → void
Processes a WM_DESTROY message.
inherited
processMessage(int hwnd, int uMsg, int wParam, int lParam) int?
Processes a message.
inherited
redrawWindow({Rectangle<num>? rect, Pointer<RECT>? pRect, int? flags}) bool
Redraws this Window.
inherited
repaint(int hwnd, int hdc) → void
Window custom repaint procedure.
inherited
replaceSel(String text) int
Replaces the selection with text.
requestRepaint() bool
Request a WM_PAINT event of the entire Window client area.
inherited
restore() bool
Restores this Window.
inherited
scrollHTo(int pos) bool
Scrolls horizontally this RichEdit to pos.
scrollToBottom() bool
Scrolls horizontally this RichEdit to bottom.
scrollToTop() bool
Scrolls this RichEdit to top.
scrollVTo(int pos) bool
Scrolls vertically this RichEdit to pos.
sendMessage(int message, int wParam, int lParam) int
Sends a message to this Window.
inherited
setAutoURLDetect(bool autoDetect) int
Sets this RichEdit to auto detect URLs.
setBkColor(int color) int
Sets the background color of this RichEdit.
setCharFormat(Pointer<CHARFORMAT> cf, {int flags = SCF_SELECTION}) bool
Sets the CHARFORMAT of this RichEdit.
setCursorToBottom() int
Sets this RichEdit cursor to bottom.
setIcon(String iconPath, {bool small = true, bool big = true, bool cached = true, bool force = false}) → void
Sets this Window icon from iconPath.
inherited
setTextColor(int hdc, int color) int
Sets the text color of this RichEdit.
setTextFormatted(Iterable<TextFormatted> textFormatted, {bool scrollToBottom = true, bool force = false}) bool
Sets this RichEdit text with textFormatted elements.
setupDarkMode() → void
Setup a dark mode.
inherited
setupTitleColor(int? titleColor) → void
Setup the title color.
inherited
setWindowRoundedCorners({bool rounded = true, bool small = false}) → void
Sets this Window rounded corners attributes.
inherited
setWindowText(String text) bool
Sets this Window text.
inherited
show() → void
Shows this Window.
inherited
showConfirmationDialog(String title, String text, {int flags = MESSAGEBOX_STYLE.MB_ICONQUESTION, bool okCancel = false, bool yesNo = true, bool cancel = false, bool modal = false}) bool
Shows a confirmation dialog.
inherited
showDialog(String title, String text, {int flags = 0, bool modal = false}) int
Shows a dialog.
inherited
showMessage(String title, String text, {int flags = 0, bool iconWarning = false, bool iconInformation = true, bool modal = false}) int
Shows a message dialog.
inherited
toString() String
A string representation of this object.
override
updateWindow() bool
Updates this Window.
inherited
waitDestroyed({Duration? timeout}) Future<bool>
Waits for this window to be destroyed.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

defaultSystemFont String
no setter
richEditLoadedVersion int
Returns the RICHEDIT loaded version. See loadRichEditLibrary.
final
windowClassEdit WindowClass
final
windowClassRich1 WindowClass
final
windowClassRich2 WindowClass
final

Static Methods

loadRichEditLibrary() int
Loads RICHEDIT library (.dll), and returns its version.