Original Post
Hi there,
I am currently writing a GUI system with
C++Builder and openGL and have it working
reasonably well.
However my controls descend from TGraphicsControl
in order not to paint over the opengl screen.
The problem i am having is that i cannot create
nested controls ie controls within controls at
design time even though i am setting the control
style to allow control insertion.
Is there
a) A way to enable this in decendants of TGraphicsControl
or
b) A way to stop TCustomControls from painting to the
screen (i have tried overriding Paint and PaintWindow)
but these seem to have no effect i have also tried
setting the canvas brush to style = bsClear and
also controlstyle>>csOpaque but with no effect.
The only other possible thing I can think of is
to Lock the canvas of the GUI form.
Many thanks
Mark.