Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Set Insertion point in a Multi-Line Edit control.

2 posts in Objects Last posting was on 2008-11-04 13:11:06.0Z
alexis.coles Posted on 2008-11-04 09:33:31.0Z
From: alexis.coles@whistlebrook.co.uk
Newsgroups: sybase.public.powerbuilder.objects
Subject: Set Insertion point in a Multi-Line Edit control.
Date: Tue, 4 Nov 2008 01:33:31 -0800 (PST)
Organization: http://groups.google.com
Lines: 20
Message-ID: <85d5dfff-8cee-48a7-b5fb-ba30b1cb12f5@n33g2000pri.googlegroups.com>
NNTP-Posting-Host: 213.208.68.146
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1225791211 7525 127.0.0.1 (4 Nov 2008 09:33:31 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 4 Nov 2008 09:33:31 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: n33g2000pri.googlegroups.com; posting-host=213.208.68.146; posting-account=TfBfdgoAAABa1KfMW3BZOXAn4P5o1-si
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022),gzip(gfe),gzip(gfe)
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!border2.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!n33g2000pri.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9791
Article PK: 736922

Hi guys,

I have a multi line edit control that I am using so that users can
enter an email template.

I have a load of key words eg. <<Company>> that are inserted into the
editor and act as parameters.

I have started writing a function so that it is not posible to edit
these key words. Using the pbm_KeyDown event if an arrow key is
selected it works out if it is going to move onto a key word and if so
I want to jump the key word.

But now I come to set the insertion point to the start/finnish of the
key word I can't find a way of doing this.

Is there a function for setting the insertion point or should I be
trying to achive my aims in a diffrent way?

many thanks


Chris Werner Posted on 2008-11-04 13:11:06.0Z
From: "Chris Werner" <cwAT{PleaseNoSpam}f-s.de>
Newsgroups: sybase.public.powerbuilder.objects
References: <85d5dfff-8cee-48a7-b5fb-ba30b1cb12f5@n33g2000pri.googlegroups.com>
Subject: Re: Set Insertion point in a Multi-Line Edit control.
Lines: 40
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <491049ea@forums-1-dub>
Date: 4 Nov 2008 05:11:06 -0800
X-Trace: forums-1-dub 1225804266 10.22.241.152 (4 Nov 2008 05:11:06 -0800)
X-Original-Trace: 4 Nov 2008 05:11:06 -0800, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9792
Article PK: 736923

Hi Alexis,

that should be possible using

mle_1.selectText (al_start, al_length)

Using 0 as actual value for the al_length parameter sets the
insertion point at position al_start.

HTH

Chris Werner
f+s software gmbh



<alexis.coles@whistlebrook.co.uk> schrieb im Newsbeitrag
news:85d5dfff-8cee-48a7-b5fb-ba30b1cb12f5@n33g2000pri.googlegroups.com...

> Hi guys,
>
> I have a multi line edit control that I am using so that users can
> enter an email template.
>
> I have a load of key words eg. <<Company>> that are inserted into the
> editor and act as parameters.
>
> I have started writing a function so that it is not posible to edit
> these key words. Using the pbm_KeyDown event if an arrow key is
> selected it works out if it is going to move onto a key word and if so
> I want to jump the key word.
>
> But now I come to set the insertion point to the start/finnish of the
> key word I can't find a way of doing this.
>
> Is there a function for setting the insertion point or should I be
> trying to achive my aims in a diffrent way?
>
> many thanks