March 29, 2024, 03:47:00 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


EM_HIDESELECTION & @RTHIDESEL Not working

Started by Andy, September 24, 2020, 04:00:27 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andy

September 24, 2020, 04:00:27 AM Last Edit: September 24, 2020, 05:14:13 AM by Andy
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.
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.

aurelCB

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

Andy

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.
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.