Jump to content

Recommended Posts

Posted (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 by MattyD
Posted

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.

Posted (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 by MattyD
clarity

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...