[Gambas-user] Accesing a textEdit.richtext properties.

Jorge Carrión shordi at ...626...
Mon Jul 28 18:41:49 CEST 2014


Hi everybody.
When creating z textEdit instance, the richtext property contains something
like that:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "
http://www.w3.org/TR/REC-html40/strict.dtd">

<html><head><meta name="qrichtext" content="1" /><meta
http-equiv="Content-Type" content="text/html; charset=utf-8" /><style
type="text/css">

p, li { white-space: pre-wrap; }

</style></head><body style=" font-family:'Arial'; font-size:10pt;
font-weight:400; font-style:normal;">

<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px;
margin-left:0px; margin-right:0px; -qt-block-indent:0;
text-indent:0px;"><br /></p></body></html>


After that, each time you create a paragraph or somenthing that, that
default styles are included (like the -qt-block-Indent:0px by excample) but
I want change that "by default", in other words, if I change Indent: 30px,
for example, I want that value to be maintained in <p> tag until I change
again...


It's posible get access to that default style chain and manipulate it?


Thanks in advance


Regards



More information about the User mailing list