mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
[PR #216] [MERGED] CtrlLib: WhenLeftUp event added to DocEdit/LineEdit/RichEdit #239
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/ultimatepp#239
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ultimatepp/ultimatepp/pull/216
Author: @ismail-yilmaz
Created: 11/30/2024
Status: ✅ Merged
Merged: 1/29/2025
Merged by: @mirek-fidler
Base:
master← Head:WhenLeftUp📝 Commits (6)
e68755cCtrlLib: WhenLeftUp event added to DocEdit/LineEdit/RichEdit1e2169aRichEdit: WhenLeftUp made public.924af5aMerge branch 'ultimatepp:master' into WhenLeftUpbd0e6f3Merge branch 'ultimatepp:master' into WhenLeftUp9534e1aMerge branch 'ultimatepp:master' into WhenLeftUpdb94681Merge branch 'ultimatepp:master' into WhenLeftUp📊 Changes
7 files changed (+16 additions, -0 deletions)
View changed files
📝
uppsrc/CtrlLib/DocEdit.cpp(+1 -0)📝
uppsrc/CtrlLib/LineEdit.cpp(+1 -0)📝
uppsrc/CtrlLib/TextEdit.h(+3 -0)📝
uppsrc/CtrlLib/src.tpp/DocEdit_en-us.tpp(+4 -0)📝
uppsrc/CtrlLib/src.tpp/LineEdit_en-us.tpp(+4 -0)📝
uppsrc/RichEdit/Mouse.cpp(+1 -0)📝
uppsrc/RichEdit/RichEdit.h(+2 -0)📄 Description
Patch Introduction: New Event: WhenLeftUp
Objective:
This patch introduces the WhenLeftUp event to enhance customization options for client code.
Purpose:
The event enables developers to implement contextual actions for selected text, akin to the behavior seen in modern text editors and word processors like Microsoft Word. For instance, upon selecting text, a small menu can be triggered and displayed immediately when the left mouse button is released. Of course, it is not limited to this usage. But the real rationale behind it is this.
Immediately available in:
DocEditLineEdit(and its derivatives, e.g.CodeEditor)RichEditA simple example:
In the above example I used
DocEdit::StdBar, but the real purpose is to allow setting up other types of menus and "tool" bars.This patch is proposed for the next release cycle.
Please review.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.