Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » LineEdit, EditFields, DocEdit » New Select form in DocEdit or LineEdit
New Select form in DocEdit or LineEdit [message #30604] Tue, 11 January 2011 17:07 Go to next message
ratah is currently offline  ratah
Messages: 107
Registered: July 2010
Experienced Member
Happy New Year 2011 erevybody,

I want to select text with a particular geometric form (rounded rectangle) with different fill color.
index.php?t=getfile&id=3037&private=0
How to do?

Thank you
  • Attachment: selection.jpg
    (Size: 17.64KB, Downloaded 630 times)

[Updated on: Wed, 12 January 2011 09:47]

Report message to a moderator

Re: New Select form in DocEdit or LineEdit [message #30630 is a reply to message #30604] Wed, 12 January 2011 23:11 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13442
Registered: November 2005
Ultimate Member
LineEdit or DocEdit are not particulary well suited for this.
Re: New Select form in DocEdit or LineEdit [message #31068 is a reply to message #30630] Thu, 03 February 2011 17:23 Go to previous messageGo to next message
ratah is currently offline  ratah
Messages: 107
Registered: July 2010
Experienced Member
Hi,

I have a little suggestion for LineEdit Ctrl to realize special selection.
Here is an example i developed on Windows platform.
I suppose I can do more complex selection form and functionnality using mouse events and keys.


index.php?t=getfile&id=3075&private=0

[Updated on: Thu, 03 February 2011 17:24]

Report message to a moderator

Re: New Select form in DocEdit or LineEdit [message #31070 is a reply to message #31068] Thu, 03 February 2011 18:39 Go to previous messageGo to next message
dolik.rce is currently offline  dolik.rce
Messages: 1781
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

That looks quite interesting. Especially block selection can be very powerful tool, if the related functionality (clipboard operations,deleting,find&replace,etc...) is well implemented. It would be very nice to have it e.g. in theide (as the editor is LineEdit based).

Honza
Advanced Line Edit proposal - part I [message #31133 is a reply to message #31070] Tue, 08 February 2011 10:08 Go to previous messageGo to next message
ratah is currently offline  ratah
Messages: 107
Registered: July 2010
Experienced Member
Hi,

I submit you here a functionnality that is usefull:
you doubleclick a word and the ctrl mark all occurence of that word.

index.php?t=getfile&id=3082&private=0

Next part will coming soon, block selection implementation

Ratah
Re: Advanced Line Edit proposal - part I [message #31134 is a reply to message #31133] Tue, 08 February 2011 11:38 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1363
Registered: November 2005
Location: Poland
Ultimate Contributor

ratah wrote on Tue, 08 February 2011 04:08

Hi,

I submit you here a functionnality that is usefull:
you doubleclick a word and the ctrl mark all occurence of that word.

index.php?t=getfile&id=3082&private=0

Next part will coming soon, block selection implementation

Ratah

That looks very promising. I can't wait to try block selection. If you could implement inserting/removing chars in all block rows simultaneously as you type (like in UltraEdit for example) that would be really great. Anyway good job Smile
Re: Advanced Line Edit proposal - part I [message #31135 is a reply to message #31134] Tue, 08 February 2011 12:30 Go to previous messageGo to next message
chickenk is currently offline  chickenk
Messages: 168
Registered: May 2007
Location: Grenoble, France
Experienced Member
Indeed, good job and that will definitely be useful.

Another nice editor which you can get inspiration from: Programmer's Notepad.

It's based on Scintilla, and makes use of those kind of features (multi-column selection, multi-paste) and implements test clips, text templates, python scripting interface and much, much more.

The videos on the developer's blog are worth watching to understand what I mean.

Keep up the effort, and thanks!

Lionel
Re: Advanced Line Edit proposal - part I [message #31152 is a reply to message #31135] Thu, 10 February 2011 14:43 Go to previous messageGo to next message
ratah is currently offline  ratah
Messages: 107
Registered: July 2010
Experienced Member
Hi everybody,

I submit here a new version of the advanced LineEditCtrl.
index.php?t=getfile&id=3084&private=0

How to do:
Push ALT key, and press left mouse button, move mouse anywhere and leave mouse button.

I don't get select implementation as i want for the moment. It just marks a block very well with a caret at the end.

At line number 679 of AdvLineEdit.cpp, i must add function to select words into the block AND SO activate all menu of contextual bar.

Do someone have an idea!!

The main problem is to keep selected words that will activate bar functions (Copy CTRL+C, CUT CTRL+X, ...):
- what variable is used to keep selected words
- what variable I must swich on (boolean?)

Thanks,

Ratah
Re: Advanced Line Edit proposal - part I [message #31177 is a reply to message #31152] Fri, 11 February 2011 16:54 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13442
Registered: November 2005
Ultimate Member
How do you deal with tabs?

Mirek
Re: Advanced Line Edit proposal - part I [message #31182 is a reply to message #31177] Fri, 11 February 2011 18:08 Go to previous message
ratah is currently offline  ratah
Messages: 107
Registered: July 2010
Experienced Member
Ok, I do not think about it!
I suppose the problem affects only the caret placement.
I will do correction soonly.

Good weekend
Previous Topic: operator<<= in tree control reference example
Next Topic: [FEATURE] WhenLostFocus in EditField
Goto Forum:
  


Current Time: Sat Oct 23 16:01:21 CEST 2021

Total time taken to generate the page: 0.01300 seconds