Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to show a progress bar in a status bar panel
Message
From
13/09/2000 10:00:31
Jonathan Cochran
Alion Science and Technology
Maryland, United States
 
 
To
13/09/2000 09:42:01
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00415702
Message ID:
00415784
Views:
16
Hey, that's kinda neat. I don't think I would use it in an application, but I might use it in the future if I have a simple utility or something that needs a status indicator. Do you have any idea if there is any way to change the font on the status bar, either programmatically or with a setting, like maybe the Windows Control Panel? I was playing around with some way to let the user know where the end of the progress bar would be, and came up with the following. However, it probably won't look very good if the font changes on the status bar.
DECLARE Sleep IN WIN32API INTEGER
FOR ln_Loop = 1 TO 50
   _VFP.STATUSBAR = ;
      SPACE(5) + "|" + REPLICATE( "I", ln_Loop ) + REPLICATE( ".", 50 - ln_Loop ) + "|"
   = Sleep(50)
ENDFOR
>>How it's possible to show a progress bar in a status bar panel ?
>>I tried to overwrite the 2 ocx position, but don't work
>>Any Idea ?
>
>You can try code like this:
>
>DECLARE Sleep IN WIN32API INTEGER
>
>FOR i = 1 TO 500
> _VFP.StatusBar = REPLICATE("|", i)
> =Sleep(50)
>ENDFOR
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform