Hi.
Otto Wyss wrote:
> Joao Macaiba wrote:
>
>> I've read the sample 'shaped' (by Robin Dunn) and was trying to get a
>> text editor to work within the shape.
>>
>>
>>
> I don't know what 'shape' mean so I can't help further. Could you tell
> me where this 'shape' is written?
A non-rectangular form. In the samples/shaped example that comes with
wxGTK source, Robin Dunn shows how to modify a frame form to a
non-rectangular shape, based on a bitmap.
I've tried to add a text editor (wxTextCtrl in the case) to this frame.
But the text is not restricted to the, now, visible part of the frame.
For example, if I make my frame a circle and add a text control to it,
the text continues to be written as if the frame is still a rectangle.
I've read wxTextCtrl and wxScintilla APIs and have not found a way to
restrict rendering the text to, only, within the frame's shaped area.
Is that possible with wxScintilla, Otto ?
> O. Wyss
>
Thanks for the help.
regards,
Joao Macaiba.
|