AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[module] HiEdit 3.0.0.1-2
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  

Do you want HiEdit internaly
Yes
45%
 45%  [ 20 ]
No, I like Edit control
27%
 27%  [ 12 ]
Other (please explain)
27%
 27%  [ 12 ]
Total Votes : 44

Author Message
akyprian



Joined: 03 Nov 2007
Posts: 5

PostPosted: Sat Nov 03, 2007 10:31 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
SKAN



Joined: 26 Dec 2005
Posts: 5298

PostPosted: Sat Nov 03, 2007 12:46 pm    Post subject: Reply with quote

Welcome to the AutoHotkey Community Mr.Antonis. Very Happy

Quote:
FYI, V2.0.1.4 will be released soon.


That is great news. Smile
Back to top
View user's profile Send private message
akyprian



Joined: 03 Nov 2007
Posts: 5

PostPosted: Fri Nov 16, 2007 8:50 am    Post subject: Reply with quote

Thanks Skan for your kindness.

HiEdit V2.0.1.4 has been released. You can get it from http://www.winasm.net/forum/index.php?showtopic=2155

Regards
Back to top
View user's profile Send private message Visit poster's website
daonlyfreez



Joined: 16 Mar 2005
Posts: 738
Location: Berlin

PostPosted: Fri Nov 16, 2007 2:21 pm    Post subject: Reply with quote

Thank you for this great control!

Cool
_________________


Get your own Ron Paul 2008 userbar!
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
majkinetor



Joined: 24 May 2006
Posts: 3544
Location: Belgrade

PostPosted: Thu Nov 22, 2007 11:14 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
majkinetor



Joined: 24 May 2006
Posts: 3544
Location: Belgrade

PostPosted: Fri Nov 23, 2007 1:14 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
majkinetor



Joined: 24 May 2006
Posts: 3544
Location: Belgrade

PostPosted: Sat Nov 24, 2007 9:34 pm    Post subject: Reply with quote

You have documentation now in the archive.
_________________
Back to top
View user's profile Send private message MSN Messenger
akyprian



Joined: 03 Nov 2007
Posts: 5

PostPosted: Wed Nov 28, 2007 3:07 pm    Post subject: Reply with quote

Thanks majkinetor,

You have really done a great job.

Cheers
_________________
http://www.winasm.net
Back to top
View user's profile Send private message Visit poster's website
majkinetor



Joined: 24 May 2006
Posts: 3544
Location: Belgrade

PostPosted: Wed Nov 28, 2007 4:02 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
JHa
Guest





PostPosted: Sat Dec 01, 2007 3:26 am    Post subject: HiEdit.ahk Reply with quote

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

PostPosted: Thu Jan 17, 2008 12:56 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
majkinetor



Joined: 24 May 2006
Posts: 3544
Location: Belgrade

PostPosted: Thu Jan 17, 2008 6:51 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
skwire



Joined: 18 Jan 2006
Posts: 129
Location: Conway, Arkansas

PostPosted: Fri Jan 18, 2008 7:06 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
majkinetor



Joined: 24 May 2006
Posts: 3544
Location: Belgrade

PostPosted: Fri Jan 18, 2008 10:12 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
skwire



Joined: 18 Jan 2006
Posts: 129
Location: Conway, Arkansas

PostPosted: Fri Jan 18, 2008 11:38 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Page 6 of 7

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group