Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ActiveX visual weirdness
Message
 
To
28/08/2000 11:41:49
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00409826
Message ID:
00415411
Views:
17
I can confirm this problem with DateTimePicker ActiveX control.

I am loading this control dynamically at run time on the second page using ADDOBJECT command. As soon as it is loaded it shows through the first page and I can set focus to it.

If I click on second page (where it is) and then back on first page, then everything is OK until this ActiveX control is refreshed with new data. Then it becomes visible on first page again.

I think this came with Visual Studio Service Pack 4. Very very weird.

>It's easier to provide steps to reproduce rather than trying to explain :
>
>-Create a class based on container - say dtcont.
>Height = 22
>Width = 206
>*Custom
>Pickerformat = 0
>
>-Put datetimepicker ActiveX control in it
>Left=0
>Top=0
>Height = 22
>Width = 206
>Format = 0
>*Init
>
if this.Parent.Pickerformat = 1
> store 86 to this.parent.width,this.width
> this.Object.Format = 1
>endif
>
>-Save class
>-On a test form put a textbox, class you saved, another textbox (place them so that at least a few chars space at left)
>-Select these controls and save as class -say dtmaincont- then delete 3 controls on form
>-Put a pageframe wth 3 pages. In each of the pages put the class dtmaincont that's saved and set Pickerformat to 1 for all instances.
>-Run the form.
>
>What I get is :
>Initially datetimepicker control is visually doubled, one overlapping the other. You can tab to only one of them (with correct left,top) but you can setfocus to 'both' of them with mouse.
>If you cycle through the pages, after getting to 3rd page everything is normal.
>What gives ? Any suggestions other than creating 2 different classes for different formats ? TIA
>Cetin
Serge Matsevilo, Seattle, WA, USA
Senior Programmer/Analyst,
iServ Systems, Inc.
e-mail: smatsevilo@iservsystems.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform