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.

Is this possible to create a syntax highlight editor using RichEdit control?

4 posts in Objects Last posting was on 2004-09-23 12:33:24.0Z
tigerchamp Posted on 2004-09-21 04:01:19.0Z
From: "tigerchamp" <tigerchen74@hotmail.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Is this possible to create a syntax highlight editor using RichEdit control?
Lines: 7
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 219.238.200.40
X-Original-NNTP-Posting-Host: 219.238.200.40
Message-ID: <414fa78f@forums-1-dub>
Date: 20 Sep 2004 21:01:19 -0700
X-Trace: forums-1-dub 1095739279 219.238.200.40 (20 Sep 2004 21:01:19 -0700)
X-Original-Trace: 20 Sep 2004 21:01:19 -0700, 219.238.200.40
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8015
Article PK: 735282

hi,everybody:
Can i do it using PB richedit control? I developed a tool to display PB
script in PBL files.But I don't know how to make it syntax highlight.Any
idea?
thanks in advance!


Bruce Armstrong [TeamSybase] Posted on 2004-09-21 05:30:21.0Z
From: "Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Is this possible to create a syntax highlight editor using RichEdit control?
Organization: TeamSybase
Reply-To: NOCANSPAM_bruce.armstrong@teamsybase.com
Message-ID: <v5evk09em42jorkuob73ob1ssm6ri068dt@4ax.com>
References: <414fa78f@forums-1-dub>
X-Newsreader: Forte Agent 2.0/32.646
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 68-190-226-38.la-cbi.charterpipeline.net
X-Original-NNTP-Posting-Host: 68-190-226-38.la-cbi.charterpipeline.net
Date: 20 Sep 2004 22:30:21 -0700
X-Trace: forums-1-dub 1095744621 68.190.226.38 (20 Sep 2004 22:30:21 -0700)
X-Original-Trace: 20 Sep 2004 22:30:21 -0700, 68-190-226-38.la-cbi.charterpipeline.net
Lines: 50
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8017
Article PK: 735281

With a lot of work, yes. I'd recommend trying to find a third party
control that does syntax highlighting already. Some possibilities:

http://www.scintilla.org/

http://www.winmain.com/



On 20 Sep 2004 21:01:19 -0700, "tigerchamp" <tigerchen74@hotmail.com>

wrote:

>hi,everybody:
> Can i do it using PB richedit control? I developed a tool to display PB
>script in PBL files.But I don't know how to make it syntax highlight.Any
>idea?
> thanks in advance!
>

Bruce Armstrong [TeamSybase]
http://www.teamsybase.com

TeamSybase blogs:
http://www.teamsybase.net/blogs

Two 3rd party books on developing with PowerBuilder
http://www.pb9books.com?source=newsgroups

Need code sample? Check out CodeXchange:
http://www.codexchange.sybase.com

Preach the gospel at all times. If necessary, use words. - Francis of Assisi
http://www.needhim.org

---------------------------------------------------------------------
DISCLAIMER:

This newsgroup message is only intended for the recipient. Given that it
is a posting to a public newsgroup, that means if you can read this
message then you are the recipient. This message may contain information
that is confidential and protected from disclosure. And then again,
it may not.

Given that TeamSybase members are not employees of Sybase, the contents
of this message do not necessarily represent the views or policies of
Sybase. Given that TeamSybase is a diverse group of users of Sybase
products, the contents of this message do not necessarily represent the
views of a significant number of the members of TeamSybase. Given that the
author has multiple personalities and hears voices in his head, the contents
of this message do not necessarily represent his own views.


tigerchamp Posted on 2004-09-23 06:26:48.0Z
From: "tigerchamp" <tigerchen74@hotmail.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <414fa78f@forums-1-dub> <v5evk09em42jorkuob73ob1ssm6ri068dt@4ax.com>
Subject: Re: Is this possible to create a syntax highlight editor using RichEdit control?
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 219.238.200.40
X-Original-NNTP-Posting-Host: 219.238.200.40
Message-ID: <41526ca8@forums-1-dub>
Date: 22 Sep 2004 23:26:48 -0700
X-Trace: forums-1-dub 1095920808 219.238.200.40 (22 Sep 2004 23:26:48 -0700)
X-Original-Trace: 22 Sep 2004 23:26:48 -0700, 219.238.200.40
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8025
Article PK: 735291

> http://www.scintilla.org/
Thanks a lot, I think scintilla will be help, because it's free : )

but I just know defining a external function from a DLL or inserting a OCX
control to pb appliction. How can I make this control work in PB? Do you
have some sample code about this?

I read its documentation, so many window message definition, and a simple
example using scintilla with C++. looks like I must use sendmessage() to
make it work in my application, right?

--
"Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
???? news:v5evk09em42jorkuob73ob1ssm6ri068dt@4ax.com...

> With a lot of work, yes. I'd recommend trying to find a third party
> control that does syntax highlighting already. Some possibilities:
>
> http://www.scintilla.org/
>
> http://www.winmain.com/
>
>


Bruce Armstrong [TeamSybase] Posted on 2004-09-23 12:33:24.0Z
From: "Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Is this possible to create a syntax highlight editor using RichEdit control?
Organization: TeamSybase
Reply-To: NOCANSPAM_bruce.armstrong@teamsybase.com
Message-ID: <6lg5l0piq2q3i6thfnhiuar5vbq596cdn6@4ax.com>
References: <414fa78f@forums-1-dub> <v5evk09em42jorkuob73ob1ssm6ri068dt@4ax.com> <41526ca8@forums-1-dub>
X-Newsreader: Forte Agent 2.0/32.646
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Original-NNTP-Posting-Host: 68-190-226-38.la-cbi.charterpipeline.net
X-Original-Trace: 23 Sep 2004 05:33:21 -0700, 68-190-226-38.la-cbi.charterpipeline.net
Lines: 48
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 23 Sep 2004 05:33:22 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 23 Sep 2004 05:33:24 -0700
X-Trace: forums-1-dub 1095942804 10.22.108.75 (23 Sep 2004 05:33:24 -0700)
X-Original-Trace: 23 Sep 2004 05:33:24 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8026
Article PK: 735294

I have no idea how to use it. I just did a search on add it code
editing tools and it came up.

On 22 Sep 2004 23:26:48 -0700, "tigerchamp" <tigerchen74@hotmail.com>

wrote:

>> http://www.scintilla.org/
>Thanks a lot, I think scintilla will be help, because it's free : )
>
>but I just know defining a external function from a DLL or inserting a OCX
>control to pb appliction. How can I make this control work in PB? Do you
>have some sample code about this?
>
>I read its documentation, so many window message definition, and a simple
>example using scintilla with C++. looks like I must use sendmessage() to
>make it work in my application, right?

Bruce Armstrong [TeamSybase]
http://www.teamsybase.com

TeamSybase blogs:
http://www.teamsybase.net/blogs

Two 3rd party books on developing with PowerBuilder
http://www.pb9books.com?source=newsgroups

Need code sample? Check out CodeXchange:
http://www.codexchange.sybase.com

Preach the gospel at all times. If necessary, use words. - Francis of Assisi
http://www.needhim.org

---------------------------------------------------------------------
DISCLAIMER:

This newsgroup message is only intended for the recipient. Given that it
is a posting to a public newsgroup, that means if you can read this
message then you are the recipient. This message may contain information
that is confidential and protected from disclosure. And then again,
it may not.

Given that TeamSybase members are not employees of Sybase, the contents
of this message do not necessarily represent the views or policies of
Sybase. Given that TeamSybase is a diverse group of users of Sybase
products, the contents of this message do not necessarily represent the
views of a significant number of the members of TeamSybase. Given that the
author has multiple personalities and hears voices in his head, the contents
of this message do not necessarily represent his own views.