Progress bar displayed in a TCastleWindowBase.
WindowProgressInterface.Window to your TCastleWindowBase instance, and assign
Progress.UserInterface := WindowProgressInterface;
Between Progress.Init and Fini you shouldn't do anything with window set as
WindowProgressInterface.Window. It's callbacks will be temporarily swapped and it will be used to render progress bar.
As usual, remember to always call Progress.Fini if you called Progress.Init. Progress.Fini restores original callbacks and OpenGL state of your window. Usually it's best and safest to use try..finally block like
Progress.Init; try.....finally Progress.Fini; end;
Classes, Interfaces, Objects and Records
||Progress bar rendered on OpenGL context (TCastleWindow).|
Assign this to Progress.UserInterface to use progress bar drawn on TCastleWindow. This instance is created in initialization, freed in finalization.
Generated by PasDoc 0.16.0.