Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pageframe
Message
 
To
21/08/2007 15:17:33
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MySQL
Miscellaneous
Thread ID:
01249423
Message ID:
01249466
Views:
15
Manuel,

>Gracias Hugo, por responder.

De nada, espero poder ayudarte

>¿Si pulso sobre la pestaña de la página 4 de un PageFrame, se dispara el evento PageFrame.Page4.Activate?

Si

>
>¿Si desde un botón ejecuto este código
>
>
>Thisform.Pageframe1.Page4.Setfocus
>
>
>se dispara el evento PageFrame.Page4.Activate?

No, lo que deberías hacer es, en vez de SetFocus, algo así como
thisform.pageframe1.ActivePage = thisform.pageframe1.page4.pageorder
te paso un ejemplo sencillo para ver si te ayuda
loForm				= Createobject('myForm')
loForm.Show(1)

define class myForm as Form
	add object myPageFrame as myPageFrame with Left=0, Top=0, width=250, height=200
	add object myButton as myButton with left = 251, width=100, Top=0, height=24, caption='Activate Page 2'
enddefine

define class myPageFrame as PageFrame
	add object myPage1 as myPage
	add object myPage2 as myPage
	add object myPage3 as myPage
	add object myPage4 as myPage
	
	function init() as Boolean
		this.myPage4.PageOrder = 2 && solo para demostrar
	endfunc
enddefine

define class myPage as Page
	procedure activate
		wait window this.Name + ' activated' nowait
		this.Refresh()
	endproc
enddefine

define class myButton as CommandButton
	procedure click
		thisform.myPageFrame.ActivePage = thisform.myPageFrame.myPage2.PageOrder
	endproc
enddefine
>
>Gracias por tu ayuda y saludos cordiales.
>
>Manuel Tovar
>Barranquilla - COLOMBIA
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform