Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sublassing Containers With OLE/ActiveX Controls?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00053392
Message ID:
00053409
Views:
24
>>>I was setting up a progressbar class today and ran into several problems.
>>>
>>>The first problem I encountered was that the OLE control I placed on my
>>>container didn't have the correct properties set. I had subclasses this
>>>OLE control, set the properties and then used the subclassed control on my
>>>container. All the properties were the default ones.
>>>
>>>I thought I would get around this bit of buggery by setting the OLE properties
>>>in the init of the container. This, however, was blatently ignored by the
>>>OLE control.
>>>
>>>All I can think of to say is, "Huh?"
>>
>>In addition to the aforementioned problems, I also am having trouble placing
>>any objects in front of the OLE control. For example, I tried putting a
>>label to show the numerical percentage complete in front of the progress bar.
>>It looks fine in design mode, but at runtime the label is hidden by the OLE
>>control. I've tried refreshing the label and using Zorder to set it to the
>>fore to no avail. Pah.
>
>I ran into this one too. OLE control seems to be always on top.

Well, I've had my fill of ActiveX controls in general and the ProgressBar in
particular. So, I created my own Progressbar class that does all the ActiveX
control did and more. It looks better, it's more configurable, it has NO bugs
and it is easily sublcassed.

If anyone is interested in this class let me know and I'll post it to the
file section.

Michael G. Emmons
memmons@nc.rr.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform