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
Laszlo



Joined: 14 Feb 2005
Posts: 3877
Location: Pittsburgh

PostPosted: Tue May 15, 2007 7:46 pm    Post subject: Reply with quote

Icfu wrote:
1st posting includes the hosting.
Not for the Preview of version 2.
Back to top
View user's profile Send private message Visit poster's website
majkinetor



Joined: 24 May 2006
Posts: 3544
Location: Belgrade

PostPosted: Tue May 15, 2007 8:41 pm    Post subject: Reply with quote

It does. Check it out again. Archive contains Keywords.hes file along with dll.
_________________
Back to top
View user's profile Send private message MSN Messenger
Laszlo



Joined: 14 Feb 2005
Posts: 3877
Location: Pittsburgh

PostPosted: Tue May 15, 2007 9:14 pm    Post subject: Reply with quote

Ah, you changed the archive to be downloaded. It was nice to include some version information, at least in the .ahk files (and maybe in the first post itself), otherwise we don't know, which version we are playing with and if there are newer ones to be downloaded. The HiEdit.dll file does not have version info and export table in the old MS format, so my dll viewer tells me nothing.

(The test.ahk I just downloaded does not show scroll bars. Is it my system or the screenshot shows an old version?)
Back to top
View user's profile Send private message Visit poster's website
majkinetor



Joined: 24 May 2006
Posts: 3544
Location: Belgrade

PostPosted: Tue May 15, 2007 9:23 pm    Post subject: Reply with quote

You are right about scrollbars. I didn't add this style so far.

However this is only first preview version. I will definitely improve it.
_________________
Back to top
View user's profile Send private message MSN Messenger
majkinetor



Joined: 24 May 2006
Posts: 3544
Location: Belgrade

PostPosted: Tue May 15, 2007 9:58 pm    Post subject: Reply with quote

Ok, I fixed the scrollbars and added new API's. SetKeywordFile sets the keyword file for all created HiEdit controls.

Code:
HE_ShowFileList(hEdit, x=0, y=0)
HE_SetKeywordFile(pFile)


Check out the HE_Add function to tweak HiEdit craetion styles.
I also left ASM inc file to check out definitions in case you want to further tweak it alone.
_________________
Back to top
View user's profile Send private message MSN Messenger
Laszlo



Joined: 14 Feb 2005
Posts: 3877
Location: Pittsburgh

PostPosted: Tue May 15, 2007 11:30 pm    Post subject: Reply with quote

Thanks! (The version info is in the HiEdit.inc file.)
It is lightning fast to load and to operate. I will definitely use it, as dll.
Back to top
View user's profile Send private message Visit poster's website
corrupt



Joined: 29 Dec 2004
Posts: 2328

PostPosted: Wed May 16, 2007 6:33 am    Post subject: Reply with quote

majkinetor wrote:
Quote:
The point wasn't whether you can subclass in AHK (which is basically just wrapping existing functionality and adding additional features in a module...) but that it can be done with a RichEdit control. The basic functionality is already built-in.

That is exactly the point. The above states that syn highl can not be created in AHK succesifully, even if RichEdit was internal.
That's not what I said and not true. I'm not sure where you got that conclusion from.

Quote:
In the akyprian case, this means that Chris should do wrappers for his superb controls and don't think about it ever else, except overwriting .lib when new version is created. He doesn't even have to create aditional interface for new version as if control is present internaly, you will be able to access new features by the means of standard messaging protocol.
That's another good reason to wrap a Windows control vs wrapping a control that's still in development. The code required to wrap a common Windows control is less likely to require regular maintenance. Also, a RichEdit control is much better documented and extensively tested.

Although I don't agree that the HiEdit control should be built-in to AutoHotkey, it does look very interesting. Thanks for sharing Smile .
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 May 16, 2007 8:03 am    Post subject: Reply with quote

Quote:
Also, a RichEdit control is much better documented and extensively tested.

True. And results of the extensive tests are: RichEdit is bugy control.
_________________
Back to top
View user's profile Send private message MSN Messenger
majkinetor



Joined: 24 May 2006
Posts: 3544
Location: Belgrade

PostPosted: Wed May 16, 2007 8:48 am    Post subject: Reply with quote

HiEidt can handly arbitrary file size:

Quote:
The trick is, only a small amount of data is memory mapped (NOT copied to any buffer) at any given time. This is why the memory needs are close to nothing. As far as "glitchy" is concerned, please note that bytes <32 need more processing to be displayed, so expect best performance with plain text files.


Quote:

majkinetor wrote:
I imagine control may be very useful for loging of large quantities of data (X GB), ...



agree 100%. log files should be a piece of cake for HiEdit.

_________________
Back to top
View user's profile Send private message MSN Messenger
Elevator_Hazard



Joined: 28 Oct 2006
Posts: 303
Location: Illinois

PostPosted: Thu May 17, 2007 11:44 pm    Post subject: Reply with quote

It would be cool if I wasn't lazy... Can someone who has registered on those forums request RegEx matching to find keywords? like uh.... <.*> as a keyword (well... not really a key word but you know, I hope). Or for things like uh... A percent sign %.*%... Not sure how that's possible but uh... At least bring it up.

EDIT:
What about resizing of it? Is that in the dll at all?
_________________
Changed siggy at request of ahklerner Very Happy
Back to top
View user's profile Send private message
Elevator_Hazard



Joined: 28 Oct 2006
Posts: 303
Location: Illinois

PostPosted: Sat May 19, 2007 3:19 am    Post subject: Reply with quote

Here is a function for getting the text off of one because I couldn't find one, pretty simple but it works:
Code:
HE_GetText(c="", w="") {
;c is the control ClassNN, defaults to HiEdit1
;w is the window title, defaults to nothing
  If c=
  {
    c=HiEdit1
  }
  ControlGetText,t,%c%,%w%
  return t
}


And also I have yet another request (I am using this control in a program Very Happy). Could you somehow make a function that let's you choose the syntax to use instead of it being selected just by the file extension? So then a user could select the syntax from a menu...
_________________
Changed siggy at request of ahklerner Very Happy
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 3544
Location: Belgrade

PostPosted: Sat May 19, 2007 9:57 am    Post subject: Reply with quote

I will ask the author if that is supported but I think its not now.
I remember that last update was related to syn high and extensionless files....
_________________
Back to top
View user's profile Send private message MSN Messenger
majkinetor



Joined: 24 May 2006
Posts: 3544
Location: Belgrade

PostPosted: Tue May 22, 2007 12:59 pm    Post subject: Reply with quote

Elevator

I tweaked Anchor function to support non ahk controls. I didn't inted to create full thing as I will contatct Titan to do that, but here is quick and dirty usable code


Code:
Anchor(c, a, r = false) {
   static d
;   GuiControlGet, p, Pos, %c%
   ControlGetPos, px, py, pw, ph, %c%

   If !A_Gui ; Or Errorlevel
      Return
   i = x.w.y.h./.7.%A_GuiWidth%.%A_GuiHeight%.`n%A_Gui%:%c%=
   StringSplit, i, i, .
   d .= (n := !InStr(d, i9)) ? i9 :
   Loop, 4
      x := A_Index, j := i%x%, i6 += x = 3, k := !RegExMatch(a, j . "([\d.]+)", v)
      + (v1 ? v1 : 0), e := p%j% - i%i6% * k, d .= n ? e . i5 : "", RegExMatch(d
      , i9 . "(?:([\d.\-]+)/){" . x . "}", v), l .= InStr(a, j) ? j . v1 + i%i6% * k :
   r := r ? "Draw" :
;   GuiControl, Move%r%, %c%, %l%
   StringSplit a, l,wh
   ControlMove, %c%, , ,%a2%,%a3%

}

GuiSize:
  Anchor("HiEdit1", "wh")
return

_________________
Back to top
View user's profile Send private message MSN Messenger
majkinetor



Joined: 24 May 2006
Posts: 3544
Location: Belgrade

PostPosted: Tue May 22, 2007 3:56 pm    Post subject: Reply with quote

I updated initial code with Anchor 3.6. Now you can resize.

Have fun.
_________________
Back to top
View user's profile Send private message MSN Messenger
mwharri



Joined: 15 Mar 2007
Posts: 70

PostPosted: Tue May 22, 2007 7:22 pm    Post subject: Reply with quote

I'm curious about being able to hyperlink text using this control. Can the functionality be built in or does it already exist?
Back to top
View user's profile Send private message
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 4 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