only Progressbar

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
AUGE_OHR
Posts: 2093
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

only Progressbar

Post 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 :idea:
have fun
Jimmy
User avatar
AUGE_OHR
Posts: 2093
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: only Progressbar

Post by AUGE_OHR »

hi,

is it possible to place a Progressbar "in" Statusbar, which is in Main, and access it from "next" Window :idea:
have fun
Jimmy
movilceles
Posts: 20
Joined: Sun Dec 04, 2016 1:43 pm
DBs Used: DBF
Location: Murcia - España

Re: only Progressbar

Post by movilceles »

Hello, I do not know if I understood you well, perhaps this will serve as an example.

(sorry for my bad English)
Attachments
runhmg.zip
(1.15 KiB) Downloaded 159 times
Celes
Saludos / Regards :P - :idea: Cuanto mas simple mejor !! / The simpler the better !!
User avatar
serge_girard
Posts: 3309
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: only Progressbar

Post by serge_girard »

Celes, What is the program doing?
Serge
There's nothing you can do that can't be done...
movilceles
Posts: 20
Joined: Sun Dec 04, 2016 1:43 pm
DBs Used: DBF
Location: Murcia - España

Re: only Progressbar

Post 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)
Celes
Saludos / Regards :P - :idea: Cuanto mas simple mejor !! / The simpler the better !!
franco
Posts: 877
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Location: Canada

Re: only Progressbar

Post 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.
All The Best,
Franco
Canada
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: only Progressbar

Post by andyglezl »

Un ejemplo...
*---------------------
A sample...

https://www.hmgforum.com/viewtopic.php?f=24&t=5799
Andrés González López
Desde Guadalajara, Jalisco. México.
RPC
Posts: 304
Joined: Fri Feb 10, 2017 4:12 am
DBs Used: DBF

Re: only Progressbar

Post 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 :idea:
Hi Jimmy
Have a look at \HMG-SAMPLES\Miscelleneous\ScreenSplash\ScreenSplash.exe
See if it solves your problem
User avatar
AUGE_OHR
Posts: 2093
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: only Progressbar

Post 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
SPLASH01.ZIP
(22.74 KiB) Downloaded 129 times

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 :idea:

p.s. Question : how to change Cursor when "loading ... " :?:
have fun
Jimmy
User avatar
AUGE_OHR
Posts: 2093
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: only Progressbar

Post by AUGE_OHR »

hi,

next try : use 2 x Thread
SPLASH02.ZIP
(22.69 KiB) Downloaded 147 times
it does work ... but how to i "stop" shown Thread with Progressbar when other Window appear :idea:
Thread_Sync1.jpg
Thread_Sync1.jpg (55.99 KiB) Viewed 2236 times
is there a Way to "sync" ( Signal() ) both Thread :?:
have fun
Jimmy
Post Reply