Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP8 bindevent bug ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00782380
Message ID:
00783742
Vues:
16
Hi Mark !
After docking or unodocking a toolbar _screen width/height is changed so _screen resize event should fire. In VFP7 application I detected the change using a hook to _screen resize and it worked properly.

>I get the same results as you. However, I do not understand why the screen resize would fire at all.
>
>>Hi !
>>It seems that VFp does not recognise some screen resize events.
>>Run the code below and then try to dock and undock a VFP window for example comamnd window. When you dock the window resize event is triggered when you undock the window is seems that no resize event is generated.
>>I hope that I am wrong.
>>
>>
>>PUBLIC oFoo
>>oFoo = CREATEOBJECT("foo")
>>BINDEVENT(_screen,"resize",oFoo , "myresize")
>>DEFINE CLASS foo as custom
>> nCount = 0
>> FUNCTION myresize
>> this.nCount = this.nCount + 1
>> ? "Resize" , this.nCount , _screen.Width, _screen.Height
>> ENDFUNC
>>ENDDEFINE
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform