Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get current alignment setting from RichText control
Message
De
29/08/2012 07:36:12
Emerson Reed
Folhamatic Tecnologia Em Sistemas
Americana - São Paulo, Brésil
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01551718
Message ID:
01551794
Vues:
60
>> Eeeee, no. Four bytes - four bytes, two bytes - tow bytes.
>> Byte aligment is unnecessary for CTOBIN() function in your case.

The alignment that I'm referring is the current text alignment in Rich TextBox that is returned in lqPFM starting at position 25. : )))

>Just one more thing... why to set the alignment is necessary to stuff 4 positions in the string if the structure element require just 2?

My question was about the stuff command (in the following code, why stuff 4 positions instead of 2?) to set the justified alignment:

lqPFM = Stuff(lqPFM, 25, 4, BinToC(PFA_JUSTIFY,"2rs")) && alignment value
** Set alignment
apiSendMessageString(This.HWnd,EM_SETPARAFORMAT,0,@lqPFM)
Emerson Santon Reed
"One Developer CAN Make a Difference. A community CAN make a future." - Craig Boyd
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform