Forum

Pages: (4) [1] 2 3 ... Last » ( Go to first unread post ) Reply to this topicStart new topicStart Poll

> HiEdit, New: Large File Edit Control
akyprian
Posted: Aug 3 2005, 06:52 AM
Quote Post


Administrator
******

Group: Admins
Posts: 1074
Member No.: 1
Joined: 12-May 04



Hi All,

This is my attempt to create a new edit control that will handle large files:

V1.0.0.0
----------
-Variable scrolling speed
-Pinning!
a)when sizing
b)when deleting text!
-Different Selection back color if control has/not focus
-Automatic scrolling when caret is out of view when selecting text
-VERY low memory consumption
-ULTRA FAST file loading
-Very fast compilation (due to modular structure)
-Non printable chracters (<32) are displayed.<---Some bugs are faced here
-A lot of standard edit messages supported plus some specific to the control
etc
etc




V1.0.0.1
----------
1.Keyboard shortcuts:
a)Ctrl + -> Go to start of next word
b)Ctrl + <- Go to start of previous word
c)Ctrl + Home Go to start of document
d)Ctrl + End Go to End of document
2.Double click selects current word
3.If you open an existing file, file saving is NOW allowed only even if you choose to save with a different name.
4.HiEditor demo application now uses system default codepage at startup(Thanks shoorick)
5.New standard message: EM_POSFROMCHAR

V1.0.0.2
--------
1.New standard messages:
- EM_GETLINECOUNT
- EM_SETSEL
- EM_GETSEL
- EM_LINESCROLL
- EM_GETSELTEXT
- EM_GETTHUMB
- EM_SCROLL

2.HEM_SHOWLINENUMBERS small bug fixed; I hope it solves the small update bug (Thanks shoorick)

3.
VK_INSERT -> Overwrite mode
Shift + VK_INSERT -> Paste
Ctrl + VK_INSERT -> Copy

4.EM_EXSETSEL now returns zero based index of the line

5.HiEdit is now provided as a static library for those who prefer this over the dll method. (HiEditor uses this method now)


V1.0.0.3
--------
1.Selected text OLE drag-n-drop (Thanks Jupiter)

2.New standard messages:
EM_LINEFROMCHAR
EM_EXLINEFROMCHAR

3.A LOT of improvements

4.New edit popup menu (also used as a context menu)

5.Icon for HiEditor

V1.0.0.4
--------
1.Shift + VK_DELETE -> Delete current line or lines selected (Thanks shoorick)
Control + VK_DELETE -> Delete up to the start of next word

2.HiEditor Version Info

3.New standard messages: EM_FORMATRANGE(Thanks chib777)

4.HiEditor has a plain vanilla Print Preview and Print capabilities that demonstrate the new EM_FORMATRANGE message.
-You are more than welcome to improve them (...chib777 ? )

5.Even faster drawing

6.Messages menu is broken to two columns

V1.0.0.5
-----------
1.New standard messages:
EM_FINDTEXT
EM_FINDTEXTEX

2.Find/Replace dialog,
3.Find Next, Find Previous
4.Go To line dialog/Extent selection

5.Shift+Del now behaves like backspace if no text is selected, and like Ctrl+X when there is selection.(Thanks PhoBos, blues)

6.Ctrl+Shift+Del : delete current or selected lines

7. A lot of improvements and minor bug fixes

TODO:
-------------------
1.Fix bugs-please let me know about them
2.standard keyboard shortcuts. please help!
3.syntax highlighting
4.folding
.etc
.etc


Regards,

Antonis

EDIT: New downoad V1.0.0.5

Attached File ( Number of downloads: 20 )
Attached File  Login/Register to be able to download
PMEmail PosterUsers Website
Top
PhoBos
Posted: Aug 3 2005, 07:19 AM
Quote Post


Extremely Active Member
******

Group: Moderators
Posts: 273
Member No.: 3
Joined: 12-May 04



hi Antonis,

As i see holidays were studious ;)

No problem here under xp sp2....All messages seems to work.
May i put on the todo list the ability of zooming with Ctrl+MouseWheel ?? B)
PMEmail PosterMSN
Top
shoorick
Posted: Aug 3 2005, 07:34 AM
Quote Post


Extremely Active Member
******

Group: Admins
Posts: 638
Member No.: 160
Joined: 22-June 04



Hi!

very interesting! most test messages works!

1. when i set font to Fixedsys (i always use it :) short strokes appeared on the leftside bundle.

2.i'm not sure, but i think, it would be better to use system default codepage as default to edit control (one extra operation, when missed - unpleasure look)

3.what about virtual space? (automatic fill with spaces/crlfs to reach position where cursor was clicked (possible only when typing started)). (it could be placed in todo list)

i think, edit controls, specific to coding, always will be usefull!

Attached Image
Attached Image
PMEmail Poster
Top
Jupiter
Posted: Aug 5 2005, 05:48 AM
Quote Post


Extremely Active Member
******

Group: Moderators
Posts: 149
Member No.: 773
Joined: 10-November 04



hi, Antonis
how EM_GETLINE must work?
as I expected, it must return currently selected line, if this is correct behavior, EM_GETLINE has bugs, coz it doesn't return selected line

GETTEXT must return ALL text? or it's part? coz in debug window only part of it (may be limitations of dbg window)
PMEmail Poster
Top
akyprian
Posted: Aug 5 2005, 12:57 PM
Quote Post


Administrator
******

Group: Admins
Posts: 1074
Member No.: 1
Joined: 12-May 04



Thanks,

@PhoBos: I 'd rather change the font size with Ctrl+MouseWheel and NOT zoom in/out (faster, and better optically). What do you say?

@shoorick:
1.does it happen only with Fixedsys? can you please post another image that shows the whole selection column?


2.OK

3. can you please clarify a bit? what do you mean by "possible only when typing started"?

@Jupiter:
1.EM_GETLINE:
wParam=zero-based index of the line
lParam=lpBuff

In my demo I use

Invoke SendMessage,hEdit,EM_GETLINE,6,ADDR Buffer

i.e. I want ti retrieve the text of line 6 (zero based)


2.WM_GETTEXT:
wParam = (WPARAM) cchTextMax ;number of characters to copy
lParam = (LPARAM) lpszText

I use wParam=1023 in my demo

Regards,
Antonis
PMEmail PosterUsers Website
Top
shoorick
Posted: Aug 5 2005, 11:16 PM
Quote Post


Extremely Active Member
******

Group: Admins
Posts: 638
Member No.: 160
Joined: 22-June 04



1.i think this could be a problem with raster fonts - usage of just courier shown below. it looks like a first zero of hidden line number sends hello to us ;)

3.i ment a technical behavior: when user click beyond real text a cursor appeared there, but no changes made with real text in control buffer. when user start typing, only then space between first character and end of real text filled with spaces in control text buffer ;)

regards!

Attached Image
Attached Image
PMEmail Poster
Top
akyprian
Posted: Aug 5 2005, 11:41 PM
Quote Post


Administrator
******

Group: Admins
Posts: 1074
Member No.: 1
Joined: 12-May 04



1.I am wondering why the number column is so narrow; it should be MUCH wider

3.OK

Thanks,
Antonis
PMEmail PosterUsers Website
Top
Jupiter
Posted: Aug 5 2005, 11:49 PM
Quote Post


Extremely Active Member
******

Group: Moderators
Posts: 149
Member No.: 773
Joined: 10-November 04



ah, ok, I understand about EM_GETLINE and WM_GETTEXT - you used static values for this, always 6th line and 1kb bufer. I expected that EM_GETLINE called to get _current_ line.
what about .inc & .lib for testing?
PMEmail Poster
Top
akyprian
Posted: Aug 5 2005, 11:55 PM
Quote Post


Administrator
******

Group: Admins
Posts: 1074
Member No.: 1
Joined: 12-May 04



inc, lib and the source of the demo application will be available VERY soon. You can use the demo as the basis to create a NotePad replacement

Antonis
PMEmail PosterUsers Website
Top
akyprian
Posted: Aug 7 2005, 05:53 AM
Quote Post


Administrator
******

Group: Admins
Posts: 1074
Member No.: 1
Joined: 12-May 04



Hi,

New V1.0.0.1 zip and what's new info on top.

Regards,

Antonis
PMEmail PosterUsers Website
Top
shoorick
Posted: Aug 9 2005, 10:18 PM
Quote Post


Extremely Active Member
******

Group: Admins
Posts: 638
Member No.: 160
Joined: 22-June 04



hi! here is fasm version.

i commented all debug output since i just had no time to convert them.
anyway it works and can be tested.

regards!

Attached File ( Number of downloads: 13 )
Attached File  Login/Register to be able to download
PMEmail Poster
Top
Jupiter
Posted: Aug 10 2005, 04:05 AM
Quote Post


Extremely Active Member
******

Group: Moderators
Posts: 149
Member No.: 773
Joined: 10-November 04



Thanks for update!
But probem with narrow line number column still exists under Win2k!
I tested under WinXP SP2, all is ok, this appears only under Win2k.
Features to add:
selected text drag-n-drop
double click select free space also (many spaces for ex)

btw, about text drag-n-drop in WinAsm:
I can't 'hook on' block beggining from CrLf. It's useful when I need to drag a whole line w/o pressing 'Enter\Return'
PMEmail Poster
Top
shoorick
Posted: Aug 10 2005, 04:26 AM
Quote Post


Extremely Active Member
******

Group: Admins
Posts: 638
Member No.: 160
Joined: 22-June 04



...and vertical blocks, if poss :)
PMEmail Poster
Top
akyprian
Posted: Aug 14 2005, 11:00 PM
Quote Post


Administrator
******

Group: Admins
Posts: 1074
Member No.: 1
Joined: 12-May 04



Thanks for the suggestions/feedback.

New V1.0.0.2 zip and what's new info on top.

Regards,

Antonis
PMEmail PosterUsers Website
Top
shoorick
Posted: Aug 15 2005, 03:37 AM
Quote Post


Extremely Active Member
******

Group: Admins
Posts: 638
Member No.: 160
Joined: 22-June 04



looks nice! i'll test it at home also close to evening! regards!

at home works also :)

This post has been edited by shoorick on Aug 15 2005, 07:20 AM
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic OptionsPages: (4) [1] 2 3 ... Last » Reply to this topicStart new topicStart Poll

 

 
MKPortal 1.0.1a A �2003-2004 - Tutti i diritti riservati