InplaceEditors

Top  Previous  Next

WPTools includes an architecture to handle  "inplace editors".

They are embedded controls which interact with the user.

 

Unfortunately the principle of separation of data and display the whole concept of WPTools is build upon works against the possibility to simply place windows controls inside the text. So special controls have to be implemented to work inside the editor.

 

Currently you can use check box objects in the text - they can have different appearances, be round and square and also implement radio button functionality. Other editor types are under development.

 

Example for a check box text objects:

clip0022

 

the same objects painted using the owner paint event:

clip0023

 

This is a table with cell (=TParagraph) based radio buttons:

clip0024

 

 

Inplace editor types are identified using an InplaceClass, a string

 

Checkboxes use the ID

 

inplfrmID_check = 'wpcubed.check'