on 06-07-2007 5:39 PM
Hi,
My Progress bar doesn't show up.
BUT if I minimize SAP and maximize it, then I see it
Is there any way to force a REPAINT of SAP or a Refresh or anything to tell SAP that it needs to show my Progress bar when I create it ?
Here's where I create my Progressbar at the very begining of the process
private void PrintSticker()
{
string Sticker = "";
SAPbouiCOM.ProgressBar PrgBar = null;
try
{
PrgBar = SBO_Application.StatusBar.CreateProgressBar("Printing Stickers...", 500, false);
PrgBar.Value = 1;
NEED A REPAINT HERE, PLEASE SHOW ME MY PROGRESS BAR
Read the previous message
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think the Progress Bar is only showned after 2 or 3 seconds...
So if the work is short enough, you don't see it (but the mouse pointer is set as an hourglass)
Try to make the work longer.
If your work is already longer than 3 seconds, could you show us the code of it ?
Do you increment PrgBar.Value ?
Is there any other UI call ?
Did you freeze something and not unfreeze ?
What's the version of Business One ? (PL... ?)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Marc,
There isn't a way to get the whole SBO interface to refresh. There is an Update method of the form object that causes the selected form to redraw itself but whether this would rectify your progress bar issue is something you'd have to test. You could also try writing to the status bar (SetStatusBarMessage of the application object) just before you create your progress bar to see if this corrects the problem.
Have you tried setting the initial value of the progress bar to 0 rather than 1?
Finally, check to see if any newer patches are available. Maybe this has been recognised as an issue with the UI and fixed in a later patch (though I haven't heard of it myself).
Kind Regards,
Owen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
11 | |
10 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.