PDA

View Full Version : placing a TLabel on top of a TPanel with OpenGL on it



hermes
10-05-2000, 09:14 AM
Can anyone help me out?

I'm in delphi and have created some openGL on a Panel. Now I am trying to display some text on top of it. For some reason the displayLists don't create and I'm having problems with the Glut commands, so I've decided to simply place a Label with my text on top of my Panel.

The labels parent is the panel so that I can properly position it. but when I try to move it (setting the left, top,width and height) strange things start to happen. The label appears and then goes behind the openGL. If I dont set those properties the label stays put and acts properly.

(the component is a compass with the direction in the center.)
please help