Re: define popup by George
George
Tue Sep 09 08:49:03 CDT 2003
Ok, this is not the exact relation between pixels and foxels but very =
close:
In button.Click:
nRow =3D ( Objtoclient(This,1)+This.Height ) / 15
nCol =3D ( Objtoclient(This,2) ) / 5
DO yourPopup.mpr With This, nRow, nCol
then in your popup.mpr:
PARAMETERS oSource, nRow, nCol
DEFINE POPUP yourPopup SHORTCUT FROM nRow, nCol
"Altman" <NotGiven@SickOfSpam.com> wrote in message =
news:eo5MzJtdDHA.656@tk2msftngp13.phx.gbl...
> Yeah I looked at that and it's pretty close but it positions it based =
on the
> mouse position. I was hoping to position it under the command button
>=20
>=20
> "George Nava" <NavaGeorge@Hotmail.com> wrote in message
> news:%23HQ91PndDHA.2732@tk2msftngp13.phx.gbl...
> > The rightClick event does the positioning for you with no sweat
> > Check [Menus\Display Shortcut Menus] in Solutions.app
> >
> > Do Home() + 'samples\solution\solution.app'
> >
> > "Altman" <NotGiven@SickOfSpam.com> wrote in message
> > news:%23IrGnFldDHA.3260@TK2MSFTNGP09.phx.gbl...
> > > I am trying to get a popup to show up under a command button when =
it is
> > > clicked but I am having problems on getting it located without =
trial and
> > > error and a static number. Any suggestions?????
> > >
> > > --=20
> > > Altman
> > > VFP7 SP1
> > >
> > > "No matter how foolproof you make a system, 'fools' can be =
remarkably
> > > ingenious."
> > >
> > >
> >
> >
>=20
>