Help RICHEDIT ( To antonio )

Help RICHEDIT ( To antonio )

Postby lailton.webmaster » Wed Feb 18, 2009 5:09 am

Hey there.

im making edit to php and prg, i want insert color in string (IF ELSE DO ENDDO WHILE CLASS METHOD) etc..

im trying it

RICHEDIT
Code: Select all  Expand view


@  0, 0 RICHEDIT oRTF VAR cRTF OF oWnd noborder on change (oRTF:refresh())
oRTF:cSeparators:=" <? <?PHP <?php ?> // ## { } ( ) [ ] $ include function if end else elseif do while end "
oRTF:nClrSeparator:= RGB(128, 0, 0)
oRTF:nClrText:= RGB(0, 128, 0 )

 


but continue without color !!

what´s i need to do ?

i already try with

oRTF:aKeyWords1:="include if end "
oRTF:aKeyWords2:="include if end "
oRTF:nClrKey1:=RGB(0, 128, 0 )
oRTF:nClrKey2:=RGB(0, 128, 0 )

more continue without color... xh1.1.0 and fivewin 8.5

someone can help me ? thanks so much
Last edited by lailton.webmaster on Wed Feb 18, 2009 9:14 am, edited 1 time in total.
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

BUGG

Postby lailton.webmaster » Wed Feb 18, 2009 6:18 am

I think that have a BUG in this class

i try with it too and no result...

Code: Select all  Expand view
@  0, 0 RICHEDIT oRTF VAR cRTF OF oWnd

   
   oRTF:lHighlight  = .T.
   oRTF:aKeywords1  = { "CLASS", "FROM", "ENDCLASS", "DATA", "AS", "METHOD", ;
                   "CONSTRUCTOR", "function", "return", "OBJECT", "ENDOBJECT" }
   oRTF:aKeywords2  = { "Lailton" }
   oRTF:nClrKey1      = CLR_RED
   oRTF:nClrKey2      = CLR_BLUE
   
 
   
   oWnd:oClient = oRTF


   ACTIVATE WINDOW oWnd maximized
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Re: Help RICHEDIT ( To antonio )

Postby lailton.webmaster » Wed Feb 18, 2009 11:00 pm

:?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?:
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Re: Help RICHEDIT ( To antonio )

Postby Antonio Linares » Thu Feb 19, 2009 10:50 pm

Lailton,

You have to do it this way, but it is not properly working probably due to latest Class TRichEdit changes:
Code: Select all  Expand view
#include "FiveWin.ch"
#include "RichEdit.ch"
 
function Main()
 
   local oWnd, oRTF, cRTF := "CLASS Test FROM Another " + CRLF + CRLF + "ENDCLASS " + CRLF
   local hRichDLL := LoadLibrary( "riched20.dll" )
 
   DEFINE WINDOW oWnd TITLE "Test"

   @ 0, 0 RICHEDIT oRTF VAR cRTF OF oWnd
   
   oRTF:lHighlight  = .T.
   oRTF:aKeywords1  = { "CLASS", "FROM", "ENDCLASS", "DATA", "AS", "METHOD", ;
                        "CONSTRUCTOR", "function", "return", "OBJECT", "ENDOBJECT" }
   oRTF:aKeywords2  = { "Lailton" }
   oRTF:nClrKey1    = CLR_RED
   oRTF:nClrKey2    = CLR_BLUE

   oWnd:oClient = oRTF
   oRTF:HighLightAllText()

   ACTIVATE WINDOW oWnd

   FreeLibrary( hRichDLL )
   
return nil
 
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Help RICHEDIT ( To antonio )

Postby lailton.webmaster » Fri Feb 20, 2009 12:01 am

thanks antonio.
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm

Re: Help RICHEDIT ( To antonio )

Postby lailton.webmaster » Fri Feb 20, 2009 12:27 am

Holla antonio.

creo que tien bug in la class, con la continuidade de escreber los codigos
las cores ficam todas erradas, creo que esteja con alguno erro..
:?
lailton.webmaster
 
Posts: 603
Joined: Sun May 04, 2008 8:44 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 81 guests