Information générale
Catégorie:
Contrôles ActiveX en VFP
Titre:
Toolbar + activex control problem
Versions des environnements
Hi,
I created a form with a textbox and a activex control.
I created a toolbar with a textbox.
When activex control got the focus,I click in the textbox
on the toolbar.I can't write in the textbox.
If I set the focus to textbox on form, I can write in textbox on toolbar.
Is any way to write in textbox of toolbar when form's activex control got the focus?
thank's
Tamás Handari
The sample:
(You can try with any activex control)
otbr=Createobject('toolbar')
With otbr
.AddObject('txt2','textbox')
.txt2.Visible=.T.
.ControlBox=.F.
.Visible=.T.
Endwith
ofrm=Createobject('frmtest')
With ofrm
.AddObject('txt1','textbox')
.txt1.Visible=.T.
.txt1.Top=20
.AddObject('pict1','olecontrol','FOXHWND.FOXHWNDCtrl.1')
With .pict1
.BorderStyle=1
.BackColor=Rgb(255,255,255)
.Left=110
.Top=20
.Height=100
.Visible=.T.
Endwith
.Top=50
.Visible=.T.
Endwith
Read Events
Define Class frmtest As Form
Procedure Unload
otbr.Release
Clea Events
Endproc
Enddefine
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