 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Do you want HiEdit internaly |
| Yes |
|
45% |
[ 20 ] |
| No, I like Edit control |
|
27% |
[ 12 ] |
| Other (please explain) |
|
27% |
[ 12 ] |
|
| Total Votes : 44 |
|
| Author |
Message |
akyprian
Joined: 03 Nov 2007 Posts: 5
|
Posted: Sat Nov 03, 2007 10:31 am Post subject: |
|
|
Hi,
As the author of HiEdit, I decided to reply just to answer any questions people might have about it. Neither do I intend to vote nor to "promote" HiEdit.
| Quote: | | Is there a way of adjusting the LineNumbersBar text? |
It seems that majkinetor missed that. It is available since HiEdit V2.0.0.5 with the following message:
| Code: | | HEM_LINENUMBERSBAR EQU WM_USER+1012 ;wParam=LNB_HIDE/LNB_SHOW/LNB_AUTOSIZE, lParam=HIWORD:Selection bar width , LOWWORD:Line numbers width |
FYI, V2.0.1.4 will be released soon.
Regards,
Antonis Kyprianou
Last edited by akyprian on Wed Nov 28, 2007 3:06 pm; edited 1 time in total |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 5298
|
Posted: Sat Nov 03, 2007 12:46 pm Post subject: |
|
|
Welcome to the AutoHotkey Community Mr.Antonis.
| Quote: | | FYI, V2.0.1.4 will be released soon. |
That is great news.  |
|
| Back to top |
|
 |
akyprian
Joined: 03 Nov 2007 Posts: 5
|
|
| Back to top |
|
 |
daonlyfreez
Joined: 16 Mar 2005 Posts: 738 Location: Berlin
|
Posted: Fri Nov 16, 2007 2:21 pm Post subject: |
|
|
Thank you for this great control!
 _________________
Get your own Ron Paul 2008 userbar! |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 3544 Location: Belgrade
|
Posted: Thu Nov 22, 2007 11:14 am Post subject: |
|
|
version 2.0.1.4-1
- Version of wrapper now contains version of control.
- Big number of new API functions added.
- Demonstration of CmnDlg_Find new common dialog.
- In inc file, with * marked implemented thngs.
Standard functions, those implementing EM_**** messages can be used used with standard edit control. _________________
 |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 3544 Location: Belgrade
|
Posted: Fri Nov 23, 2007 1:14 pm Post subject: |
|
|
v. -2
Get/Set Colors API redone.
To set colors, simply send INI format to the function:
| Code: | colors=
(
Text = 0xFFFFFF
Back = 0
SelText = 0xFFFFFF
ActSelBack = 0xc56a31
InSelBack = 0xAAAAAA
LineNumber = 0x0
SelBarBack = 0xAAAAAA
NonPrintableBack = 0xFFFFFF
Operator = 1
Number = 1
Comment = 1
String = 1
)
HE_SetColors(hEdit, colors ) |
To get colors, simply call HE_GetColors() and you will get string containg all colors in the same format. _________________
 |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 3544 Location: Belgrade
|
Posted: Sat Nov 24, 2007 9:34 pm Post subject: |
|
|
You have documentation now in the archive. _________________
 |
|
| Back to top |
|
 |
akyprian
Joined: 03 Nov 2007 Posts: 5
|
Posted: Wed Nov 28, 2007 3:07 pm Post subject: |
|
|
Thanks majkinetor,
You have really done a great job.
Cheers _________________ http://www.winasm.net |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 3544 Location: Belgrade
|
Posted: Wed Nov 28, 2007 4:02 pm Post subject: |
|
|
Thanks to you too, akyprian. It would really be pitty if world stay unawared of this beautiful control. I hope I popularised it enough. AutoHotKey community is certanly good for this (try Googling HiEdit)
Looking forward for other nice things you mentioned: column select, customizable language setings in hex file, writting icons on the line bar... _________________
 |
|
| Back to top |
|
 |
JHa Guest
|
Posted: Sat Dec 01, 2007 3:26 am Post subject: HiEdit.ahk |
|
|
Hi,
I found a small mistake in HiEdit.ahk when playing with it.
| Code: | ; Function: SaveFile
; Save file to disk
;
; Parameters:
; pFileName - File name.
; idx - Index of the file to save. -1 to save current file (default)
;
; Returns:
; TRUE if successful, FALSE otherwise
;
HE_SaveFile(hEdit, pFileName, idx=-1){
static HEM_SAVEFILE := 2028 ;wParam=lpszFileName, lParam = -1 for current file or dwFileIndex :Returns
SendMessage, HEM_SAVEFILE, &pFileName, idx,, ahk_id %hEdit%
return errorlevel
}
|
HiEdit is really cool, thanks. |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 3544 Location: Belgrade
|
Posted: Thu Jan 17, 2008 12:56 pm Post subject: |
|
|
New version, using latest control.
Syntax highlighting is totaly rewriten, now it supports almost all of the things found in hi-end editors.
Check out SetKeywordFile function for details about syntax file format used by the control. |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 3544 Location: Belgrade
|
Posted: Thu Jan 17, 2008 6:51 pm Post subject: |
|
|
v3.0.0.1-2
- Added notification interface, see SetEvents. Your existing WM_NOTIFY handlers will still work.
- The AHK syntaxh highliting updated. |
|
| Back to top |
|
 |
skwire
Joined: 18 Jan 2006 Posts: 129 Location: Conway, Arkansas
|
Posted: Fri Jan 18, 2008 7:06 am Post subject: |
|
|
Thanks very much, majkinetor. I've implemented the HiEdit.dll using your wrapper in an app I write for work. I did find one typo in your HiEdit.ahk file:
| Code: |
;----------------------------------------------------------------------------------------------------
; Function: GetTextLenght
; Returns the length of text, in characters.
;
HE_GetTextLenght(hEdit) {
static WM_GETTEXTLENGTH=14
SendMessage, WM_GETTEXTLENGTH, 0, 0,, ahk_id %hEdit%
Return ErrorLevel
} |
Another thing I noticed was that the find dialog only works in the down direction. If you choose the "up" radio button, searching still continues in the down direction. Finally, do you have time to add in a find/replace example in your demo script (possibly using your CmnDlg function)? |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 3544 Location: Belgrade
|
Posted: Fri Jan 18, 2008 10:12 am Post subject: |
|
|
| Quote: | | did find one typo in your HiEdit.ahk file: |
thx
| Quote: | | Another thing I noticed was that the find dialog only works in the down direction. |
That is how I implemented it in test version. You can't expect test to have full features. CmnDlg_Find sends flags in CmnDlg_Flags, and when you see flag about "up" radio button you should search differently. In the test, I don't check this, I always search down
| Quote: | | Finally, do you have time to add in a find/replace example in your demo script (possibly using your CmnDlg function)? |
Thats reall easy. Replace is used after Find on next call so code like this will do the trick. You still have to implement replace_all.
| Code: | OnFind:
if CmnDlg_event=close
return
if (CmnDlg_event="replace") and (res != -1)
HE_ReplaceSel(hEdit, CmnDlg_ReplaceWith)
if CmnDlg_event=replace_all
{
msgbox For homework
return
}
res := HE_FindText(hEdit, CmnDlg_FindWhat, HE_GetSel(hEdit)+ (res!="")*1, -1, CmnDlg_Flags)
HE_SetSel(hEdit, res, res + StrLen(CmnDlg_FindWhat))
HE_ScrollCaret(hEdit)
return |
btw, res will not be -1 in latest HiEdit, I fixed this yesterday. It returns 4294967295 now (-1 as unsigned integer)
There will be some more samples in the future. _________________
 |
|
| Back to top |
|
 |
skwire
Joined: 18 Jan 2006 Posts: 129 Location: Conway, Arkansas
|
Posted: Fri Jan 18, 2008 11:38 am Post subject: |
|
|
| majkinetor wrote: |
That is how I implemented it in test version. You can't expect test to have full features. CmnDlg_Find sends flags in CmnDlg_Flags, and when you see flag about "up" radio button you should search differently. In the test, I don't check this, I always search down
|
Ah, I see. I'll add the missing functionality to my code. Thank you.
| majkinetor wrote: |
Thats reall easy. Replace is used after Find on next call so code like this will do the trick. You still have to implement replace_all.
| Code: | OnFind:
if CmnDlg_event=close
return
if (CmnDlg_event="replace") and (res != -1)
HE_ReplaceSel(hEdit, CmnDlg_ReplaceWith)
if CmnDlg_event=replace_all
{
msgbox For homework
return
}
res := HE_FindText(hEdit, CmnDlg_FindWhat, HE_GetSel(hEdit)+ (res!="")*1, -1, CmnDlg_Flags)
HE_SetSel(hEdit, res, res + StrLen(CmnDlg_FindWhat))
HE_ScrollCaret(hEdit)
return |
|
Again, thanks. =] |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|