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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement