Page 1 of 2
only Progressbar
Posted: Sat Apr 11, 2020 5:18 pm
by AUGE_OHR
hi,
i want to open a new Windows to show Thumbs.
while it take some time to load i want to show a Progressbar ... but how when "loading ..."
i don´t have a Progressbar on my "old" Windows when loading and new Window will not appear until all load ...
so "where" an "how" to use a Progressbar ... need a Idea

Re: only Progressbar
Posted: Sun Apr 12, 2020 4:50 am
by AUGE_OHR
hi,
is it possible to place a Progressbar "in" Statusbar, which is in Main, and access it from "next" Window

Re: only Progressbar
Posted: Sun Apr 12, 2020 11:14 am
by movilceles
Hello, I do not know if I understood you well, perhaps this will serve as an example.
(sorry for my bad English)
Re: only Progressbar
Posted: Sun Apr 12, 2020 1:16 pm
by serge_girard
Celes, What is the program doing?
Serge
Re: only Progressbar
Posted: Sun Apr 12, 2020 3:44 pm
by movilceles
I use it to execute console commands showing or not a progress bar.
A file is generated, in this case a *.bat, the desired instructions are executed and the progress bar is displayed until the process ends and the generated file is deleted.
It's an idea for what I think Jimmy wants to do, if I don't get it wrong.
(Sorry for my bad English)
Re: only Progressbar
Posted: Sun Apr 12, 2020 4:45 pm
by franco
Could you not activate new window which has a progress bar. On Init run your thumbs() procedure where your progress bar is started and ended.
It should show up in the new window.
? Not sure how you load your thumbs.
Re: only Progressbar
Posted: Sun Apr 12, 2020 5:06 pm
by andyglezl
Re: only Progressbar
Posted: Sun Apr 12, 2020 9:51 pm
by RPC
AUGE_OHR wrote: ↑Sat Apr 11, 2020 5:18 pm
hi,
i want to open a new Windows to show Thumbs.
while it take some time to load i want to show a Progressbar ... but how when "loading ..."
i don´t have a Progressbar on my "old" Windows when loading and new Window will not appear until all load ...
so "where" an "how" to use a Progressbar ... need a Idea
Hi Jimmy
Have a look at \HMG-SAMPLES\Miscelleneous\ScreenSplash\ScreenSplash.exe
See if it solves your problem
Re: only Progressbar
Posted: Sun Apr 12, 2020 10:22 pm
by AUGE_OHR
RPC wrote: ↑Sun Apr 12, 2020 9:51 pm
Have a look at \HMG-SAMPLES\Miscelleneous\ScreenSplash\ScreenSplash.exe
See if it solves your problem
No, but it show my Problem ... it "just" delay but no other Action
i have used that Sample and try to run it in a Thread ... no luck yet
Code: Select all
CreateScreenSplash(cFileName, nDelaySeconds, nAnimateSeconds)
DEMO2()
i try something like his
Code: Select all
hb_threadStart( HB_THREAD_INHERIT_PUBLIC, @CreateScreenSplash(),cFileName, nDelaySeconds, nAnimateSeconds)
but i get Error like
Only Panel windows can be defined inside a DEFINE WINDOW...END WINDOW structure. Program Terminated
Parent can be specified only for Panel windows. Program Terminated
Panel Windows can't be explicity activated (They are activated via its parent). Program terminated
Window: FormSplash is not active. Program terminated
Window: FormSplash is not defined. Program terminated
---
how to run CreateScreenSplash() in a Thread AND run Demo2() while loading Image
p.s. Question : how to change Cursor when "loading ... "

Re: only Progressbar
Posted: Mon Apr 13, 2020 4:01 am
by AUGE_OHR
hi,
next try : use 2 x Thread
it does work ... but how to i "stop" shown Thread with Progressbar when other Window appear

- Thread_Sync1.jpg (55.99 KiB) Viewed 2301 times
is there a Way to "sync" ( Signal() ) both Thread
