To Antonio: Richedit enhancement

Post Reply
toninhofwi
Posts: 161
Joined: Tue Oct 18, 2005 10:01 am

To Antonio: Richedit enhancement

Post 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.
jcaro
Posts: 270
Joined: Fri Nov 11, 2005 7:39 pm

Post by jcaro »

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
toninhofwi
Posts: 161
Joined: Tue Oct 18, 2005 10:01 am

Post 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.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Toninho,

Thanks! :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Post by Silvio »

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

Post by Silvio »

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

Falconi Silvio
toninhofwi
Posts: 161
Joined: Tue Oct 18, 2005 10:01 am

Post 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.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Silvio,

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

Antonio Linares
www.fivetechsoft.com
Post Reply