Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cancel Button Activation
Message
From
19/08/1998 12:57:00
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00128078
Message ID:
00128178
Views:
25
>>>I am using the activeX progress bar control in a conversion project. I am needing to allow for a cancel button to be pressed at any time during the conversion process to stop the conversion.
>>>
>>>I have created a form with the progress control on the form. I have also placed a commandbutton on the form for cancel. This form is called via createobject().
>>>
>>>I cannot get the mouse click to activate the commandbutton while the progress bar is running. I thought a timer would help, but it does not fire either when the progress bar is running.
>>>
>>>Any help on this would be great.
>>
>>Hi, Kenny,
>>
>>Try to use my "Easy and Fastest ProgressBar control" from UT files archive ("Classes - VCX").
>>That progress bar moves (using StepIt() method) only if you want it and you can make active any other control on your form.
>>
>>Best regards
>>
>>Alex.
>
>Alex your progress bar is pretty neat. One problem:
>
>If you try to dynamically add it to a form, it doesn't work correctly because it sizes and positions itself at the time the object is instantiated. You can't change the size/position at run time. Do you have any suggestions for that?

Thank you, Fred.

Do you have the latest version of ProgressBar?
If not then download the last version from UT files archive.
I fixed some bugs there.

Here's sample code which works fine with last version of PB
with thisform
    ...
    .AddObject("oProgressBar", "ProgressBar")
    .oProgressBar.Move(40, 40, 400, 16)
    .oProgressBar.Visible = .t.
    ...
endwith
Best regards.

Alex.
(Sorry for my English)
Alex
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform