Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #4387

Re: Printing tabs from rtf

Subject Re: Printing tabs from rtf
From Camille Kater <katercamXXX@pt.lu>
Date Thu, 22 Nov 2012 10:13:25 +0100
Message-ID <50ADECB5.8000107@pt.lu> (permalink)
References <1dfe8f69-b8e8-4ead-8e2b-7838400fe955@googlegroups.com>
Lines 51
NNTP-Posting-Host 87.240.241.211
Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!82.197.223.106.MISMATCH!feeder1.cambriumusenet.nl!feed.tweaknews.nl!193.141.40.65.MISMATCH!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!news.vo.lu!not-for-mail
Newsgroups comp.lang.clipper.visual-objects
X-Trace vo.lu 1353576225 87.240.241.211 (22 Nov 2012 10:23:45 0100)
User-Agent Mozilla/5.0 (Windows NT 6.1; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
MIME-Version 1.0
To Krystian <softb@softb.pl>
In-Reply-To <1dfe8f69-b8e8-4ead-8e2b-7838400fe955@googlegroups.com>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Xref csiph.com comp.lang.clipper.visual-objects:4387

Show key headers only | View raw


Hi Krystian,

Add a dispatch method to your Richedit class.
Add the following code:

METHOD Dispatch (oEvent) CLASS RichEdit
LOCAL oEvt AS Event
LOCAL nMsg AS DWORD
	
oEvt := oEvent
nMsg := oEvt:uMsg

DO CASE
CASE nMsg == WM_KEYDOWN .AND. oEvt:wparam == VK_TAB
	SELF:paste( _CHR (9) )
	RETURN SELF:eventReturnValue := 1L

.....
ENDCASE
RETURN SUPER:Dispatch (oEvt)

Better: write your own MyRichedit class and inherit your Richedit from 
MyRicheEdit class and add the dispatch method to this class.

Camille

On 22/11/2012 00:25, Krystian wrote:
> Hi,
>
> 1.
> when I print from a RichEdit control a rtf file formated with tabs, the listing is not correct - the subsequent rows do not start from the same column (I prepare a text in a winword in rtf format; I set normal tabs for 0,5 cm). How should I map tabs spacing from file into printer ?
>
> 2.
> When I press a tab key in richedit window editor, the whole text is marked - but I want to insert one tab point - how to achieve it ?
>
> Thanks in advance
> Krystian
>

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Printing tabs from rtf Krystian <softb@softb.pl> - 2012-11-21 15:25 -0800
  Re: Printing tabs from rtf Camille Kater <katercamXXX@pt.lu> - 2012-11-22 10:13 +0100
  Re: Printing tabs from rtf Krystian <softb@softb.pl> - 2012-11-27 17:06 -0800
    Re: Printing tabs from rtf Camille Kater <katercamXXX@pt.lu> - 2012-11-28 11:00 +0100
      Re: Printing tabs from rtf Krystian <softb@softb.pl> - 2012-11-30 06:12 -0800
        Re: Printing tabs from rtf D.J.W. van Kooten <public@ic2remove.this.com> - 2012-12-03 14:06 +0100

csiph-web