Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Active-X friendly splitter - update
Message
 
À
10/05/2004 16:49:43
Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00902333
Message ID:
00902645
Vues:
42
FIRST:

The workaround for your resizing issue is:
1 - Resize the container
2 - Call container.Refresh() <- this is the workaround!
3 - resize the browser

If you dont put the refresh before resizing the browser,
the browser 'think' that the size of the container have not change
and dont draw itself at the right position/dimension.

HTH :-)

SECOND:

The name of the method is not really appropriate for the user point of view. I will rename it...

The history is as follow:
Internally, the 'left' and 'right' objects are hidden (.visible=.f.) to handle the drawing on the form behind the control window if the control is an active-x.

If the form contain more active-x controls, those controls also need to be hidden.

Thats why I have named the method ItemToHide().
In this method, I populate an array of controls to 'hide' during the split operation.

If you or someone else, have a better name for this method, feel free to tell me this name ASAP.

I will update the class and zip files tomorrow.

Regards :)

>Gerald,
>
>I sent a response back to your email address. I'd included a modified version of your second splitter class that contains the ItemToHide method. What is this method supposed to do? Anyway, the issue still exists. It is related to the fact that the ActiveX control is within a VFP container object on the form.
>
>Regards,
>
>Mike
>
>PS. I like the quick "tech support" :)
>
>>Of course its quick :)
>>
>>Check your mail, I have sent a new class (only the left/right splitter is changed).
>>
>>You need to call the splitter.ItemToHide(oItem) in the init of the form to add your browser to the splitter show/hide pool.
>>If it pass your test, I will update the other class and the doc in the download...
>>
>>HTH :)
>>
>>
>>>I'll hold off sending you your modified sample then. It sounds like you know what the problem might be.
>>>
>>>Thanks for the quick attention to it.
>>>
>>>Mike
>>>
>>>>I can take a look at your code and I will come back later with a workaround.
>>>>I already have an idea...
>>>>
>>>>
>>>>
>>>>>The sample works file. I should have taken a closer look and realized that you were indeed using the browser control there. Having dug a little further into my code I see that I put my browser control into a VFP container object and that's when the splitter starts acting up.
>>>>>
>>>>>I modified your sample to reproduce the error. If you wish I could send it to you.
>>>>>
>>>>>Mike
>>>>>
>>>>>>I always like to have feedback :)
>>>>>>
>>>>>>Did the sample form work as expected in your system?
>>>>>>The sample form contain a browser and an a treeview control and it work well on my system (W2K Server).
>>>>>>
>>>>>>You can post some code or send me your form for testing.
>>>>>>You dont give enough info to debug...
>>>>>>
>>>>>>
>>>>>>
>>>>>>>Hi Gerald,
>>>>>>>
>>>>>>>I tried your splitter class and ran into an issue as follows:
>>>>>>>
>>>>>>>I have a WebBrowser ActiveX control on a VFP8SP1 form running under Windows2000 Pro. In the browser control, I navigate to a HTML document. The splitter does not work when I drag it over the browser control. It disappears and does not respond to the mouseup event.
>>>>>>>
>>>>>>>Am I doing something wrong or was the splitter not designed to work with all ActiveX controls?
>>>>>>>
>>>>>>>TIA
>>>>>>>
>>>>>>>Mike
>>>>>>>
>>>>>>>
>>>>>>>>If you already have downloaded this class, please re-download it.
>>>>>>>>I have made some changes that improve the speed of the class.
>>>>>>>>
>>>>>>>>download#23455
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform