Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Active-X friendly splitter - New Update
Message
 
À
15/07/2004 07:13:18
Km Kwun
Eastop Consultants Limited
Nt, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00902828
Message ID:
00924691
Vues:
40
Corrected.

I have hunted this annoying bug from the beginning (first release) and I finaly found it!

Its related to the rangemin property.
I have added an assing method to change the value to int() and the bug is gone :)

Re-Download the zip.
This should be the last time <g>

Happy splitting :)




>Hi Gerald,
>
>Thanks again for the update. It works correctly inside a container. However, there is a very minor issue. In the following code, the splitter is intentionally made shorter than the container. Dragging the splitter somehow distorts the borders of the containers. Anyway I don't think this is a big problem and is just for your information.
>
>
>Public oform1
>
>Set Classlib To Split.vcx Additive
>
>oform1=Newobject("form1")
>oform1.Show
>
>Define Class form1 As Form
>	AutoCenter = .T.
>	Caption = "Form1"
>	Name = "Form1"
>	Add Object container1 As Container With ;
>		Top = 6, ;
>		Left = 7, ;
>		Width = 145, ;
>		Height = 238, ;
>		Name = "Container1"
>	Add Object container2 As Container With ;
>		Top = 6, ;
>		Left = 159, ;
>		Width = 209, ;
>		Height = 238, ;
>		Name = "Container2"
>	Add Object splitter1 As splitter With ;
>		Top = 40, ;
>		Left = 154, ;
>		Height = 162, ;
>		Width = 4, ;
>		oleft = "thisform.container1", ;
>		oright = "thisform.container2", ;
>		Name = "Splitter1"
>Enddefine
>
>
>
>KM
>
>
>>You're welcome :)
>>
>>
>>>Hi Gerald,
>>>
>>>Thanks a lot for the update!
>>>
>>>KM
>>>
>>>
>>>>You can download the new class with container support now.
>>>>
>>>>HTH :)
>>>>
>>>>>Thanks for your follow-up.
>>>>>
>>>>>KM
>>>>>
>>>>>
>>>>>>Yes, I know this can be an issue if you use the splitter in a container.
>>>>>>The reason is that the code assume that everything is at the form level and the resizing is done with this assumption.
>>>>>>
>>>>>>I am too busy right now to update the code to use a better approach.
>>>>>>
>>>>>>I will check this later this week and probably update the download this weekend.
>>>>>>
>>>>>>Thanks for your kind words :)
>>>>>>
>>>>>>
>>>>>>>Hi Gerald,
>>>>>>>
>>>>>>>Thanks for your Splitter class. It works great. However there are some minor issues. When the splitter and the left and right containers are all put inside a page of a pageframe (pageframe.width < form.width), the splitter will not be redrawn properly with the mouse drag.
>>>>>>>
>>>>>>>
>>>>>>>Thanks,
>>>>>>>KM
>>>>>>>
>>>>>>>
>>>>>>>>No problemo :)
>>>>>>>>
>>>>>>>>And I want to thank you too, its your feedback that drive the improvment of the class.
>>>>>>>>
>>>>>>>>No feedback = no interest in improvment!
>>>>>>>>
>>>>>>>>>Gerald,
>>>>>>>>>
>>>>>>>>>Your new ActiveX friendly splitter class works for me. No more issues. Thanks.
>>>>>>>>>
>>>>>>>>>Regards,
>>>>>>>>>
>>>>>>>>>Mike
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