Genero Desktop Client 2.22 New Features / Widgets: Genero Desktop Client 2.22 New Features |
Genero Desktop Client supports rich text editing with integrated toolbox or rich text local actions.
In previous versions, TextEdits are able to display rich text. In input, it was possible to edit rich text, but this was not straightforward. Moreover, cursor and cursor2 attributes correspond to plain text, not to the real value.
GDC 2.22 introduces rich text editing feature:
Figure 1. Rich text editing interface
GDC 2.22 provides:
<StyleAttribute name="textFormat" value="html" />
To modify your document, you can use:
By default, when the mouse reaches the top border of the TextEdit, a toolbox will appear. The toolbox will disappear when the mouse leaves the top border area.
<StyleAttribute name="textFormat" value="html" /> <StyleAttribute name="showEditToolBox" value="yes" />
Figure 2. Rich text editing interface with toolbox always displayed.
Besides integrated toolbox, new local actions have been created for each rich text capability. As any local action, you can configure accelerator keys, and bind them to action views like ToolBar buttons.
Name | Default Accelerator | Icon Name | Icon |
---|---|---|---|
richtextbold | control-b | textbold | |
richtextitalic | control-i | textitalic | |
richunderline | control-u | textunder | |
richtextalignleft | control-l | textleft | |
richtextaligncenter | control-e | textcenter | |
richtextalignright | control-r | textright | |
richtextalignjustify | control-j | textjustify | |
richtextlistbullet | None | textlistbullet | |
richtextlistdecimal | None | textlistnumbered | |
richtextdecreaseident | None | textindentdecrease | |
richtextincreaseident | None | textindentincrease | |
richtextdecreasefontsize | None | textfontsizedown | |
richtextincreasefontsize | None | textfontsizeup |
<StyleAttribute name="textFormat" value="html" /> <StyleAttribute name="showEditToolBox" value="no" />