Ch
Sun Apr 08 13:35:31 CDT 2007
This is a multi-part message in MIME format.
------=_NextPart_000_001B_01C77A1D.75E1EFD0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Mohammed
* code in the column=B4s mouseenter
this.cboMemStatus.mouseenter() && noting happens
As said before - the problem is NOT the code for decision if the tooltip =
should appear because of its length.=20
The problem is that the tooltip doesn=B4t appear at all if user don=B4t =
klick the combo.
Christina
"imaginecorp" <ashruff@imaginecorp.com> skrev i meddelandet =
news:epZdPIgeHHA.4032@TK2MSFTNGP02.phx.gbl...
No, No you did NOT steal the code, it is there for anyone to use;
Try this
*** For Text Box
*** MouseEnter()
If !Empty(This.Value) And Vartype(This.Value) =3D "C"
nSize =3D Fontmetric(6,This.FontName,This.FontSize)
If ((Len(Alltrim(This.Value))*nSize)+nSize) > This.Width
This.ToolTipText =3D Alltrim(This.Value)
Endif
Endif
****** for Combobox (need to adjust for down arrow)
***** MouseEnter()
If !Empty(This.displayValue) And This.onlydescriptions And =
Vartype(This.ControlSource)=3D"C"
nSize =3D Fontmetric(6,This.FontName,This.FontSize)
If ((Len(Alltrim(This.DisplayValue))*nSize)+30) > This.Width
This.ToolTipText =3D Alltrim(This.DisplayValue)
Endif
Endif
*********************************************************************
**** Grid Column MouseEnter()
this.<<controlname>>.mouseenter()
Controname =3D whatever you have named the textbox/combobox
This will display the text Only if it is Too wide to fit.
--=20
Mohammed Ashruff
www.imaginecorp.com
"Ch Lofberg" <ch.lofberg@eurosoft-se.com> wrote in message =
news:uY$DYwfeHHA.4636@TK2MSFTNGP03.phx.gbl...
> Hi Mohammed!
>=20
> I didn=B4t know I hade stolen the code :-).
>=20
> You wrote:
> In the columns Mouse Enter put
> this.<<comboboxname>>.mouseenter()
>=20
> I tried:
> * the code below in ColMembSatus.mouseenter
> LOCAL lcTip
> lcTip =3D 'Hello this is a tooltiptext'
> This.mouseenter(This.cboMemStatus.MouseEnter(lcTip))
>=20
> And some other alternatives as well.
>=20
> Nothing happend then the mousepinter was moved over the combo inside =
the=20
> grid. Is there something I didn=B4t understand?
>=20
> Regards
> Christina
>=20
>=20
>=20
> "imaginecorp" <ashruff@imaginecorp.com> skrev i meddelandet=20
> news:%234vWXTYeHHA.208@TK2MSFTNGP05.phx.gbl...
>> Hello Christine:
>> Amazing, thats my code Or what I had posted on tek-tips F&Q, glad =
you are=20
>> using it. To solve the problem;
>> In the columns Mouse Enter put
>> this.<<comboboxname>>.mouseenter()
>> Any time you put code, in the grids column child always reference =
it in=20
>> the column object
>> --=20
>> Mohammed Ashruff
>> www.imaginecorp.com
>>
>> "Ch Lofberg" <ch.lofberg@eurosoft-se.com> wrote in message=20
>> news:e$LjN5FeHHA.284@TK2MSFTNGP05.phx.gbl...
>>> Hi all!
>>>
>>> I have problem with a tooltip for a combo inside a grid. The mouse =
>>> pointer over the combo does not immediately fire the tooltiptext =
as=20
>>> expected.
>>>
>>> The user must first focus the combo with a click. After that the =
tooltip=20
>>> appear.
>>>
>>> Is there a workaround for this?
>>>
>>> Best regards
>>> Christina
>>>
>>
>>=20
>=20
>
------=_NextPart_000_001B_01C77A1D.75E1EFD0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.6000.16414" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Mohammed</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>* code in the column=B4s =
mouseenter</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>this.cboMemStatus.mouseenter() =
&& noting=20
happens</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>As said before - the problem is NOT the =
code for=20
decision if the tooltip should appear because of its length. =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>The problem is that the tooltip =
doesn=B4t appear at=20
all if user don=B4t klick the combo.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Christina</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"imaginecorp" <<A=20
=
href=3D"mailto:ashruff@imaginecorp.com">ashruff@imaginecorp.com</A>> =
skrev i=20
meddelandet <A=20
=
href=3D"news:epZdPIgeHHA.4032@TK2MSFTNGP02.phx.gbl">news:epZdPIgeHHA.4032=
@TK2MSFTNGP02.phx.gbl</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>No, No you did NOT steal the code, it =
is there=20
for anyone to use;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Try this</FONT></DIV></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>*** For Text Box</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>*** MouseEnter()</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>If !Empty(This.Value) And =
Vartype(This.Value) =3D=20
"C"<BR> nSize =3D=20
Fontmetric(6,This.FontName,This.FontSize)<BR> If=20
((Len(Alltrim(This.Value))*nSize)+nSize) > =
This.Width<BR> =20
This.ToolTipText =3D=20
Alltrim(This.Value)<BR> =
Endif<BR>Endif<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>****** for Combobox (need to adjust =
for down=20
arrow)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>***** MouseEnter()</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>If !Empty(This.displayValue) And=20
This.onlydescriptions And=20
Vartype(This.ControlSource)=3D"C"<BR> nSize =
=3D=20
Fontmetric(6,This.FontName,This.FontSize)<BR> =
If=20
((Len(Alltrim(This.DisplayValue))*nSize)+30) >=20
This.Width<BR> =20
This.ToolTipText =3D=20
Alltrim(This.DisplayValue)<BR> =20
=
Endif<BR>Endif<BR>*************************************************=
********************</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>**** Grid Column =
MouseEnter()</FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2>this.<<controlname>>.mouseenter()</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Controname =3D whatever you have =
named the=20
textbox/combobox</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>This will display the text Only if it =
is Too wide=20
to fit.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><BR>-- <BR>Mohammed Ashruff<BR><A=20
=
href=3D"
http://www.imaginecorp.com">www.imaginecorp.com</A></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>"Ch Lofberg" <</FONT><A=20
href=3D"mailto:ch.lofberg@eurosoft-se.com"><FONT face=3DArial=20
size=3D2>ch.lofberg@eurosoft-se.com</FONT></A><FONT face=3DArial =
size=3D2>> wrote=20
in message </FONT><A =
href=3D"news:uY$DYwfeHHA.4636@TK2MSFTNGP03.phx.gbl"><FONT=20
face=3DArial =
size=3D2>news:uY$DYwfeHHA.4636@TK2MSFTNGP03.phx.gbl</FONT></A><FONT=20
face=3DArial size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>> =
Hi=20
Mohammed!<BR>> <BR>> I didn=B4t know I hade stolen the code =
:-).<BR>>=20
<BR>> You wrote:<BR>> In the columns Mouse Enter=20
=
put<BR>> this.<<comboboxname>>.mouseenter()<BR>>=20
<BR>> I tried:<BR>> * the code below in =
ColMembSatus.mouseenter<BR>>=20
LOCAL lcTip<BR>> lcTip =3D 'Hello this is a tooltiptext'<BR>>=20
This.mouseenter(This.cboMemStatus.MouseEnter(lcTip))<BR>> <BR>> =
And some=20
other alternatives as well.<BR>> <BR>> Nothing happend then the=20
mousepinter was moved over the combo inside the <BR>> grid. Is =
there=20
something I didn=B4t understand?<BR>> <BR>> Regards<BR>>=20
Christina<BR>> <BR>> <BR>> <BR>> "imaginecorp" =
<</FONT><A=20
href=3D"mailto:ashruff@imaginecorp.com"><FONT face=3DArial=20
size=3D2>ashruff@imaginecorp.com</FONT></A><FONT face=3DArial =
size=3D2>> skrev i=20
meddelandet <BR>> </FONT><A=20
href=3D"news:%234vWXTYeHHA.208@TK2MSFTNGP05.phx.gbl"><FONT =
face=3DArial=20
size=3D2>news:%234vWXTYeHHA.208@TK2MSFTNGP05.phx.gbl</FONT></A><FONT =
face=3DArial=20
size=3D2>...<BR>>> Hello Christine:<BR>>> Amazing, thats =
my code Or=20
what I had posted on tek-tips F&Q, glad you are <BR>>> using =
it. To=20
solve the problem;<BR>>> In the columns Mouse Enter =
put<BR>>>=20
this.<<comboboxname>>.mouseenter()<BR>>> Any time =
you put=20
code, in the grids column child always reference it in <BR>>> =
the column=20
object<BR>>> -- <BR>>> Mohammed Ashruff<BR>>> =
</FONT><A=20
href=3D"
http://www.imaginecorp.com"><FONT face=3DArial=20
size=3D2>www.imaginecorp.com</FONT></A><BR><FONT face=3DArial=20
size=3D2>>><BR>>> "Ch Lofberg" <</FONT><A=20
href=3D"mailto:ch.lofberg@eurosoft-se.com"><FONT face=3DArial=20
size=3D2>ch.lofberg@eurosoft-se.com</FONT></A><FONT face=3DArial =
size=3D2>> wrote=20
in message <BR>>> </FONT><A=20
href=3D"news:e$LjN5FeHHA.284@TK2MSFTNGP05.phx.gbl"><FONT face=3DArial=20
size=3D2>news:e$LjN5FeHHA.284@TK2MSFTNGP05.phx.gbl</FONT></A><FONT =
face=3DArial=20
size=3D2>...<BR>>>> Hi all!<BR>>>><BR>>>> I =
have=20
problem with a tooltip for a combo inside a grid. The mouse =
<BR>>>>=20
pointer over the combo does not immediately fire the tooltiptext as=20
<BR>>>> expected.<BR>>>><BR>>>> The user =
must first=20
focus the combo with a click. After that the tooltip <BR>>>>=20
appear.<BR>>>><BR>>>> Is there a workaround for=20
this?<BR>>>><BR>>>> Best regards<BR>>>>=20
Christina<BR>>>><BR>>><BR>>> <BR>> =
<BR>></FONT>=20
</BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_001B_01C77A1D.75E1EFD0--