Page 1 of 1

To Antonio: Richedit enhancement

Posted: Fri Mar 14, 2008 11:11 am
by toninhofwi
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.

Posted: Fri Mar 14, 2008 1:58 pm
by jcaro
Toninho:

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

Thanks,
Juan

Posted: Fri Mar 14, 2008 4:03 pm
by toninhofwi
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.

Posted: Fri Mar 14, 2008 6:33 pm
by Antonio Linares
Toninho,

Thanks! :-)

Posted: Fri Mar 14, 2008 10:08 pm
by Silvio
Antonio,
where is the file of rtf source code (c) ?

Posted: Fri Mar 14, 2008 10:21 pm
by Silvio
DEAR Toninho,
HOW i CAN CREATE A LISTBOX TO INSERT DATE AND TIME FORMAT TO USE INTO RTF FILE ?

Posted: Fri Mar 14, 2008 11:52 pm
by toninhofwi
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.

Posted: Fri Mar 14, 2008 11:59 pm
by Antonio Linares
Silvio,

We don't provide its C source code