EditorGadget()+#PB_EventType_Change
EditorGadget()+#PB_EventType_Change
How about adding the ability to get an event if there has been a keystroke in the EditorGadget()? Something like #PB_EventType_Change that is used in the StringGadget(). If I knew that I could make a word-wrap procedure.
Last edited by WilliamL on Mon Mar 16, 2009 3:37 am, edited 1 time in total.
MacBook Pro-M1 (2021), Sequoia 15.4, PB 6.20
Is not the same as #PB_EventType_Changersts wrote:maybe
If EventID= #WM_KEYDOWN And GadgetID =
cheers

PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

> Did I miss something?
no, i have only corrected rsts, a change comes not only from keyboard!
no, i have only corrected rsts, a change comes not only from keyboard!
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

I know that - he asked for "something like" in order to know when a change occured in an editorgadget. I believe my way will work under windows (but not a mac). No it's not the same, but it might help out in until it can be implemented.ts-soft wrote:> Did I miss something?
no, i have only corrected rsts, a change comes not only from keyboard!

cheers
On windows try this :rsts wrote:maybe
If EventID= #WM_KEYDOWN And GadgetID =
cheers
Code: Select all
emask = #ENM_CHANGE
emask | SendMessage_(editor,#EM_GETEVENTMASK,0,0)
SendMessage_(editor,#EM_SETEVENTMASK,0,emask)
