Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Toolbar + activex control problem
Message
De
16/02/2006 10:16:28
Tamas Handari
Szinva Trend Interconsulting Kft.
Miskolc, Hongrie
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Toolbar + activex control problem
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01096735
Message ID:
01096735
Vues:
71
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
Fil
Voir

Click here to load this message in the networking platform