Hi,
I thought I would have a play around with one or two other things in the rich edit controls and tried to hide a selection.
The selection works of course, but both EM_HIDESELECTION & @RTHIDESEL don't hide anything...
SENDMESSAGE(rhandle,EM_SETSEL,40,50)
SENDMESSAGE(rHandle,EM_HIDESELECTION,1,0)
(In my program)
Or
CONTROLCMD(d1,1,@RTSETSELECTION,0,10)
CONTROLCMD(d1,1,@RTHIDESEL,1)
(In the rich edit example)
I have tried all possible combinations of things but still nothing, I've even tried it in the rich edit example program - nothing?
Both programs have the richedit.inc file added into them here, so EM_HIDESELECTION is already defined, but added it in manually when nothing else was working - still nothing.
Any ideas anyone?
Andy.
Andy i think that work with SebdMessage like :
const EM_HIDESEL = 19
SendMessage(hRich, EM_HIDESEL, 0, 0)
@rthideslection work in Creative Basic but i don't know about IWB
Aurel,
Thanks for looking at this, I tried your way and all the other possibilities but it just doesn't work.
I will leave this for a few days as I need to work something else out.
Thanks again for having a look.
Andy.