Home » Developer & Programmer » Forms » Progress Bar (!!!!!!)
Progress Bar [message #353367] Mon, 13 October 2008 10:58 Go to next message
MMA_EG_CAIRO
Messages: 25
Registered: August 2008
Junior Member
I made a simple example on how to build a statement of the case. I know that it SYNCHRONIZE grant will assist me an opportunity to see the bar "as is the example annex".

But when I tried to move from screen to screen other programs Ofujo a freeze of the program until the completion of the movement ProgressBar



What a solution to this problem ????


Thanks
  • Attachment: BAR.fmb
    (Size: 44.00KB, Downloaded 1154 times)
Re: Progress Bar [message #353413 is a reply to message #353367] Mon, 13 October 2008 15:02 Go to previous messageGo to next message
MMA_EG_CAIRO
Messages: 25
Registered: August 2008
Junior Member
Please help !!


All I need is not an interruption of the program during the course of this process(Progress Bar).




Thanks

[Updated on: Mon, 13 October 2008 15:03]

Report message to a moderator

Re: Progress Bar [message #353515 is a reply to message #353367] Tue, 14 October 2008 01:34 Go to previous messageGo to next message
MMA_EG_CAIRO
Messages: 25
Registered: August 2008
Junior Member
????????? !!!!!!!!!!!!!!!!!!
Re: Progress Bar [message #353565 is a reply to message #353515] Tue, 14 October 2008 03:28 Go to previous messageGo to next message
Littlefoot
Messages: 21823
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Quote:
????????? !!!!!!!!!!!!!!!!!!

Right; exactly my thoughts while reading your first message:
Quote:
I tried to move from screen to screen other programs Ofujo a freeze of the program
Huh?!?
Re: Progress Bar [message #353607 is a reply to message #353367] Tue, 14 October 2008 05:41 Go to previous messageGo to next message
MMA_EG_CAIRO
Messages: 25
Registered: August 2008
Junior Member
Ideas are similar, because the basis of one!!!

Sorry, the more possible???
Re: Progress Bar [message #354000 is a reply to message #353607] Thu, 16 October 2008 00:59 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Is this an existing application or are you writing new forms?

Please have a friend help you with your reply.

David
Re: Progress Bar [message #354062 is a reply to message #353367] Thu, 16 October 2008 05:14 Go to previous messageGo to next message
MMA_EG_CAIRO
Messages: 25
Registered: August 2008
Junior Member
O people I was very brief Programmer Visual Basic 6.0, I make a repetition of inter as follows:

For I = 1 To 1000000
   <Processors>
Next


But this sentence lead to an interruption of the program, even if manufactured progress bar, Will lead to a freeze of the program until the completion of inter-repetition

But I Avalj this problem as follows:

For I = 1 To 1000000
   <Processors>
   DoEvents
Next


I was able to conduct other operations during the process such major move to another next to the basic program, or other operations on the program until completion of current treatment ----- Etc.

But now on form oracle develobar I can not using it (Synchronize)

Asraana is effective, but once the implementation is another within a program does not accept. Even if another program has moved to freeze programs

I want to know if it is faithful to assist me, instead of the order (Synchronize) I wish to know, what is this???

FOR I IN 1 .. 1000000
LOOP
   --PROCESSORS.
   SYNCHRONIZE;
END LOOP;


Thank you for all



Re: Progress Bar [message #354736 is a reply to message #354062] Tue, 21 October 2008 01:18 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
'Synchronize' refreshed the screen. You need it to refresh the progress bar.

David
Re: Progress Bar [message #354841 is a reply to message #354736] Tue, 21 October 2008 09:37 Go to previous messageGo to next message
esraa90
Messages: 63
Registered: May 2008
Location: EGYPT
Member
Hello!

I tried the progress bar as text goes bigger and synhronise,

It works well alone , we should wait and the mouse pointer busy untill it finish.

Kindly, how could I free the mouse pointer while progress bar running?


Thanks in advance
Re: Progress Bar [message #354926 is a reply to message #354841] Wed, 22 October 2008 00:15 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Use 'set_application_property' to change the 'cursor_style' (mouse pointer) from 'busy' to 'default'.

David
Re: Progress Bar [message #355014 is a reply to message #354926] Wed, 22 October 2008 04:03 Go to previous messageGo to next message
esraa90
Messages: 63
Registered: May 2008
Location: EGYPT
Member
I changed my code, but no change in cursor.

I want to continue dataentry in form during progress bar activation at the top of screen.

The following is my code when_button_pressed for my button 'Start':
DECLARE
BAR NUMBER := 0;
BAR_STEP NUMBER;
BEGIN
set_application_property(cursor_style,'ARROW');
BAR_STEP := 5000;
FOR I IN 1 .. 1000000 LOOP
IF(MOD(I,BAR_STEP) = 0)THEN
BAR := BAR + 1;
SET_ITEM_PROPERTY('BAR',WIDTH,BAR);

set_application_property(cursor_style,'ARROW');
SYNCHRONIZE;

END IF;
END LOOP;
END;
Re: Progress Bar [message #355051 is a reply to message #354926] Wed, 22 October 2008 06:58 Go to previous messageGo to next message
esraa90
Messages: 63
Registered: May 2008
Location: EGYPT
Member
The following is my code in my 'start' button in WHEN_Button_pressed trigger.
I want to continue dataentry in form during running of the progres bar.

using the following code, I couldn't reach my goal.

DECLARE
BAR NUMBER := 0;
BAR_STEP NUMBER;
BEGIN
set_application_property('cursor_style','ARROW');
BAR_STEP := 5000;
FOR I IN 1 .. 1000000 LOOP
IF(MOD(I,BAR_STEP) = 0)THEN
BAR := BAR + 1;
SET_ITEM_PROPERTY('BAR',WIDTH,BAR);
SYNCHRONIZE;
set_application_property('cursor_style','ARROW');
END IF;
END LOOP;
END;

Re: Progress Bar [message #355367 is a reply to message #355051] Thu, 23 October 2008 18:28 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Now THAT is not going to happen!! Oracle Forms can only do one thing at a time. All you can do is work in a DIFFERENT application on your PC. You can NOT work in two parts of the same Oracle Forms session at the same time.

David
Re: Progress Bar [message #355744 is a reply to message #353367] Mon, 27 October 2008 05:44 Go to previous messageGo to next message
MMA_EG_CAIRO
Messages: 25
Registered: August 2008
Junior Member
Bdaita I thank you for your cooperation with me

Frankly, I deal with the model 6 did not find a full recovery resulting from the post SYNCHRONIZE, as does the language function DoEvents VB6.0

Asraana movement of the mouse and clear, and clear the screen, but unfortunately I can not move to another screen and then return to the screen program again without freezing them.


Friend, David, frankly personalize to respond very beautiful, but so far I did not find a final solution to this problem!!!


The real problems are not repeated in building inter containing million movement, but talking about millions of Recurrences, which takes minutes like a quarter or half or full hour


Thank you for generally all, I will look into the instrument Timer to address this, although much slower



Thank you again for all your help me and Shaker


Thanks
Re: Progress Bar [message #355750 is a reply to message #355744] Mon, 27 October 2008 06:07 Go to previous messageGo to next message
Littlefoot
Messages: 21823
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Quote:
talking about millions of Recurrences, which takes minutes like a quarter or half or full hour

OK, so how about writing a stored procedure? Form might be used just as a tool which would submit a job which is supposed to start right now. The procedure will run in the background; meanwhile, you can exit the form and do something else.

Create a logging mechanism, such as a log table or an e-mail message once the procedure finishes the job.
Re: Progress Bar [message #355862 is a reply to message #355750] Tue, 28 October 2008 02:53 Go to previous message
esraa90
Messages: 63
Registered: May 2008
Location: EGYPT
Member
I could do it using timer.
Previous Topic: Radio group not defaulting to initial value
Next Topic: FRM-40106: No navigable items in block and frm-40106: No navigable items in destination block (merge
Goto Forum:
  


Current Time: Mon Feb 10 00:58:52 CST 2025