To Antonio: Richedit enhancement

To Antonio: Richedit enhancement

Postby toninhofwi » Fri Mar 14, 2008 11:11 am

Hi Antonio.

Here is a little contribuition to your great richedit class:

---cut---
HB_FUNC( RESETPARABULLET )
{
PARAFORMAT pf;

memset( ( char * ) &pf, 0, sizeof( pf ) );

pf.cbSize = sizeof( pf );

SendMessage( ( HWND ) hb_parnl( 1 ), EM_GETPARAFORMAT, 0, ( LPARAM ) &pf );

if( ( pf.dwMask & PFM_NUMBERING ) && ( pf.wNumbering == PFN_BULLET ) )
{
pf.wNumbering = 0;
pf.dxOffset = 0;
pf.dxStartIndent = 0;
pf.dwMask = PFM_NUMBERING | PFM_STARTINDENT | PFM_OFFSET;
}
else
{
pf.wNumbering = PFN_BULLET;
pf.dwMask = PFM_NUMBERING;

if( pf.dxOffset == 0 )
{
pf.dxOffset = 4;
pf.dwMask = PFM_NUMBERING | PFM_STARTINDENT | PFM_OFFSET;
}
}

hb_retl( SendMessage( ( HWND ) hb_parnl( 1 ), EM_SETPARAFORMAT, 0, ( LPARAM ) &pf ) );
}
---cut---


Regards,

Toninho.
toninhofwi
 
Posts: 172
Joined: Tue Oct 18, 2005 10:01 am

Postby jcaro » Fri Mar 14, 2008 1:58 pm

Toninho:

Can you explain with little example, how used this code.

Thanks,
Juan
Juan
==> Pasando a FWH16.04 + Harbour32 + BCC70 + PellesC
=> Abandonando FWH 13.7 + xHarbour + BCC582
http://www.mitaller.cl
jcaro
 
Posts: 270
Joined: Fri Nov 11, 2005 7:39 pm

Postby toninhofwi » Fri Mar 14, 2008 4:03 pm

jcaro wrote:Toninho:
Can you explain with little example, how used this code.
Thanks,
Juan


Juan, only call RESetParaBullet( ::hWnd ) from richedit class. The betther is Antonio place this code inside official FWH RTF C code.

Regards,

Toninho.
toninhofwi
 
Posts: 172
Joined: Tue Oct 18, 2005 10:01 am

Postby Antonio Linares » Fri Mar 14, 2008 6:33 pm

Toninho,

Thanks! :-)
regards, saludos

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

Postby Silvio » Fri Mar 14, 2008 10:08 pm

Antonio,
where is the file of rtf source code (c) ?
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby Silvio » Fri Mar 14, 2008 10:21 pm

DEAR Toninho,
HOW i CAN CREATE A LISTBOX TO INSERT DATE AND TIME FORMAT TO USE INTO RTF FILE ?
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby toninhofwi » Fri Mar 14, 2008 11:52 pm

Silvio wrote:DEAR Toninho,
HOW i CAN CREATE A LISTBOX TO INSERT DATE AND TIME FORMAT TO USE INTO RTF FILE ?

Silvio, sorry, but I don´t know.

Toninho.
toninhofwi
 
Posts: 172
Joined: Tue Oct 18, 2005 10:01 am

Postby Antonio Linares » Fri Mar 14, 2008 11:59 pm

Silvio,

We don't provide its C source code
regards, saludos

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 81 guests