RE: Cursor disappear in text box?

new topic     » topic index » view thread      » older message » newer message

> Under Win32Lib, is there a way to get rid of (or make invisible) the 
> (text) cursor in a read-only MLEdit box?

Let me see.  I believe there are two ways.

1)
Dont make it read-only, change it to disabled.  This will remove the 
insertion cursor, but will also have the side effect of making the text 
a gray color.  Good solution if you plan to custom draw the control 
anyways.  Probably poor choice otherwise.

2)
I cant test this atm, but if you set up an onEvent handler and capture 
the WM_SETFOCUS message and returnValue(1) I bet the cursor would be 
removed.

Don

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu