Skip to content
This repository has been archived by the owner on Jun 7, 2018. It is now read-only.

Use CastleProgress #575

Open
eugeneloza opened this issue May 16, 2018 · 3 comments
Open

Use CastleProgress #575

eugeneloza opened this issue May 16, 2018 · 3 comments

Comments

@eugeneloza
Copy link
Owner

see
https://castle-engine.io/apidoc/html/CastleControls.TCastleProgressBar.html
and
https://castle-engine.io/apidoc/html/CastleProgress.TProgress.html

@michaliskambi
Copy link
Collaborator

Note that applications using TCastleWindow should usually not need to deal with TCastleProgressBar class directly. Instead you only use https://castle-engine.io/apidoc/html/CastleWindowProgress.html , and then everything using Progress.Init/Step/Fini (internal CGE stuff as well as your own) will have progress bar rendered.

Direct TCastleProgressBar usage is only necessary in case of TCastleControl... and I would prefer to eliminate it some day :), implementing something like CastleControlProgress that mimics CastleWindowProgress but works on TCastleControl. Or maybe even something like CastleContainerProgress that works on TUIContainer, and thus can be used with both TCastleWindow and TCastleControl.

@eugeneloza
Copy link
Owner Author

Sure, I'll route the output to DecoProgressBar :) It's I've just realized that I don't have to reinvent the wheel to monitor progress during the load/generation process.

@michaliskambi
Copy link
Collaborator

Ah, OK:)

In that case you can implement your own descendant of TProgressUserInterface , like https://castle-engine.io/apidoc/html/CastleWindowProgress.TWindowProgressInterface.html . This approach allows to use your own progress bar UI with CGE progress reporting:)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants