MattyD Posted April 23 Posted April 23 (edited) Hi all, This one is on the back of the zoomable edit boxes we were playing with a little while back. Just a couple of extra edit control funcs if its helpful to anyone Clipboard messages.. (WM_CUT etc.) _GuiCtrlEdit_Clear - removes selected text. _GuiCtrlEdit_Copy _GuiCtrlEdit_Cut _GuiCtrlEdit_Paste End of line funcs.. (EM_SETENDOFLINE, "Allowed" EOL chars, autodetect, etc.) _GuiCtrlEdit_GetEOL _GuiCtrlEdit_GetEOLEx _GuiCtrlEdit_SetEOL _GuiCtrlEdit_SetEOLEx Zoom funcs.. (EM_SETZOOM etc.) _GuiCtrlEdit_GetIsZoomable _GuiCtrlEdit_GetZoom _GuiCtrlEdit_SetIsZoomable _GuiCtrlEdit_SetZoom GuiEditEx.zip Edited April 25 by MattyD WildByDesign and argumentum 1 1
argumentum Posted April 23 Posted April 23 (edited) ...this works everywhere (Win7+) in x64 and x86 ( haven't test it but just reading the code ). So this could be included in the GuiEdit.au3 UDF just as is ? If so, could you gather the extra wording needed for the help file for each function ? @jpm Edited April 24 by argumentum ..calling JPM Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting
MattyD Posted April 24 Author Posted April 24 Yeah, I think you could just drop them in. But someone should probably peer-review it first (more around the EOL implementation). The function headers are all populated - so there's some documentation in there. If that's not sufficient, sure - I can expand on it, or write it up in a different format. It looks like the clipboard messages are supported from Win 2000. The other features are less clear, and the doco changes depending on which page you're looking at. I suspect some of this has its roots in the richedit control, and its been bolted on to the editbox at a later stage - hence the disconnect. I'll test things out on my win7 box tonight or tomorrow... And both x86 & x64 work fine. argumentum 1
MattyD Posted April 24 Author Posted April 24 (edited) Ok, I've picked up a few errors in my documentation, so don't take that as gospel for now... on Windows 7, Both _GuiCtrlEdit_GetZoom and _GuiCtrlEdit_SetZoom work happily for Rich Edit controls, but not on normal edit controls. The IsZoomable funcs aren't for rich edits, and the same goes for the EOL stuff. From what I understand, these all spring up in Windows 10, 1809 for the normal edit box.. And that's obviously when GetZoom/SetZoom starts to effect normal edits too. Edited April 24 by MattyD clarity argumentum 1
MattyD Posted April 25 Author Posted April 25 I've just updated attachment. Its mainly documentation fixes, but I've also fixed an issue where SetEOLEx was failing out. Also a minor tweak to SetEOL around its return value. argumentum and WildByDesign 1 1
WildByDesign Posted April 25 Posted April 25 (edited) @MattyD Your new functions have (once again) inspired me to start a new project: Edited April 25 by WildByDesign MattyD 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now