Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deactivate of the page fires when you click on the same
Message
From
30/06/2005 18:23:39
 
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01025827
Message ID:
01027932
Views:
14
>Fabio,
>
>Sorry I missed your replies. I don't understand a bit anyway.
>
>We had code in page actiavate and it was working. However, I think, it should be in Deactivate. This is my current code in the Deactivate:
>
>
>local lnAnswer
>if thisform.IsChanged()
>	lnAnswer = thisform.AskToSave()
>	do case
>*!*			CASE lnAnswer = IDYES
>*!*				THISFORM.SAVE()
>*!*			CASE lnAnswer = IDNO
>	case lnAnswer = IDCANCEL
>		nodefault
>	endcase
>endif
>
>Very simple. However, it's firing even if I click on the same page.
>

>I think, I need to find mouse positions and check, what text is under mouse. The problem is, that pages do not have top and left properties... :( So, how would I know which page did I click?
>

OBJTOCLIENT(m.this,1) and OBJTOCLIENT(m.this,2)
return Page.Top and Page.Left.

But they don't serve you to nothing,
because all the tabs are of the Pageframe object,
and under you always have you the page ativa, that is This!

To distinguish a click on the Tab1 from that on the Tab2, is not easy in general!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform