AutoHotkey Community

It is currently May 25th, 2012, 9:38 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 240 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7, 8, 9 ... 16  Next

Do you want HiEdit internaly
Yes
No, I like Edit control
Other (please explain)
You may select 1 option

View results
Author Message
 Post subject:
PostPosted: November 3rd, 2007, 10:31 am 
Offline

Joined: November 3rd, 2007, 10:22 am
Posts: 5
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 November 28th, 2007, 3:06 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 3rd, 2007, 12:46 pm 
Online
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8775
Welcome to the AutoHotkey Community Mr.Antonis. :D

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


That is great news. :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 16th, 2007, 8:50 am 
Offline

Joined: November 3rd, 2007, 10:22 am
Posts: 5
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 16th, 2007, 2:21 pm 
Offline

Joined: March 16th, 2005, 10:33 pm
Posts: 968
Location: Frisia
Thank you for this great control!

8)

_________________
Image mirror 1mirror 2mirror 3ahk4.me • PM or Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 22nd, 2007, 11:14 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
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.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 23rd, 2007, 1:14 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
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.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 24th, 2007, 9:34 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
You have documentation now in the archive.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 28th, 2007, 3:07 pm 
Offline

Joined: November 3rd, 2007, 10:22 am
Posts: 5
Thanks majkinetor,

You have really done a great job.

Cheers

_________________
http://www.winasm.net


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 28th, 2007, 4:02 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
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...

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject: HiEdit.ahk
PostPosted: December 1st, 2007, 3:26 am 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 17th, 2008, 12:56 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 17th, 2008, 6:51 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
v3.0.0.1-2
- Added notification interface, see SetEvents. Your existing WM_NOTIFY handlers will still work.
- The AHK syntaxh highliting updated.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 18th, 2008, 7:06 am 
Offline

Joined: January 18th, 2006, 7:39 am
Posts: 274
Location: Conway, Arkansas
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)?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 18th, 2008, 10:12 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
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.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 18th, 2008, 11:38 am 
Offline

Joined: January 18th, 2006, 7:39 am
Posts: 274
Location: Conway, Arkansas
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. =]


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 240 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7, 8, 9 ... 16  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Exabot [Bot], Klark92 and 2 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group