AutoHotkey Community

It is currently May 25th, 2012, 5:17 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 240 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 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: May 15th, 2007, 7:46 pm 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
Icfu wrote:
1st posting includes the hosting.
Not for the Preview of version 2.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2007, 8:41 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
It does. Check it out again. Archive contains Keywords.hes file along with dll.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2007, 9:14 pm 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
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?)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2007, 9:23 pm 
Offline

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

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2007, 9:58 pm 
Offline

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

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2007, 11:30 pm 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 16th, 2007, 6:33 am 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2540
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 :) .


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

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Quote:
Also, a RichEdit control is much better documented and extensively tested.

True. And results of the extensive tests are: RichEdit is bugy control.

_________________
Image


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

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

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 17th, 2007, 11:44 pm 
Offline

Joined: October 28th, 2006, 2:14 am
Posts: 297
Location: US
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 :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 19th, 2007, 3:19 am 
Offline

Joined: October 28th, 2006, 2:14 am
Posts: 297
Location: US
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 :D). 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 :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 19th, 2007, 9:57 am 
Offline

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

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 22nd, 2007, 12:59 pm 
Offline

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

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 22nd, 2007, 3:56 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
I updated initial code with Anchor 3.6. Now you can resize.

Have fun.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 22nd, 2007, 7:22 pm 
Offline

Joined: March 15th, 2007, 4:10 am
Posts: 70
I'm curious about being able to hyperlink text using this control. Can the functionality be built in or does it already exist?


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, 2, 3, 4, 5, 6, 7 ... 16  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: ZeLen1y and 15 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