trichview.com

trichview.support.thirdparty




Re: LabelItem  questions


Return to index


Author

Message

Sergey Tkachenko

Posted: 09/20/2004 19:11:26


> How is the size of the drawn area calculated? I mean, I tried to change

the

> bounds in Paint procedure, and I also make some changes in OnPaint, but

then

> the result is the LabelItem drawn over another items in the RichViewEdit.

> Where could I state the complete width that LabelItem should occupy?


Width and height (in screen resulution) must be returned by GetWidth and

GetHeight method.

If GetBoolValueEx returns True for rvbpActualPrintSize, dli.Width and

dli.Height must be assigned in OnDocWidthChanged method.


> Considering that it LabelItem is non-editable component, is it possible by

> moving the carret on the LabelItem instance, or simply clicking the mouse

on

> it, to select complete instance, like it was

> selected with double-click?


Override GetBoolValue to return True for rvbpClickSelect


>

> And, finally, something that is out of the scope of LabelItem - is there

> example of creating the container Item component? For example, I would

like

> to have some sort of "editable LabelItem" in which I could put just

another

> items by simply dragging and dropping them (for example).

>


Sorry, no. It's quite complicated, and internals may be changed in future

versions.





Powered by ABC Amber Outlook Express Converter