But how can I force ToolTip to be displayed for the same CEdit control
when it has input keyboard focus, but the mouse pointer is not
positioned over it?
Thanks,
Philip Chang
Are you sure you want to do this?
--
Ajay Kalra [MVP]
ajay...@yahoo.com
Note: Please post all replies to newsgroup only.
Philip Chang <philip...@checksol.com> wrote in message
news:399ACE79...@checksol.com...
I have no real estate to display this short message in a CStatic, so I was
hoping to display it in a temporary "floating" ToolTip...
If I don't use ToolTip, what other control can I use to display a temporary
message near the CEdit control?
Thanks,
Philip Chang
=======================================
Following example is very helpful:
SuperTip Demonstrates Tool Tips in an MFC Application
ID: Q188317
In addition, there are several examples in tootip section of
codeguru.developer.com.
--
Ajay Kalra [MVP]
ajay...@yahoo.com
Note: Please post all replies to newsgroup only.
Philip Chang <philip...@checksol.com> wrote in message
news:399B13AE...@checksol.com...
I'm sorry but I can't help you.
I'm interested in how you make tooltips for CEdit boxes.
Could you perhaps give me some hints of how to set up something like that;
info, documentation, sites, MSDN?
Many thanks in advance, Kimball
Philip Chang <philip...@checksol.com> schreef in berichtnieuws
--
Ajay Kalra [MVP - VC++]
ajay...@yahoo.com
Note: Please post all replies to newsgroup only.
FDB <fdb...@worldonline.nl> wrote in message
news:8ng24t$cha$1...@nereid.worldonline.nl...
For example, I would like to display a short message "Please type in your name",
so the user would know to type in a name into the CEdit control.
I was hoping to display "Please type in your name" in a ToolTip. I do not have
any room in my dialog box to display "Please type in your name" in a CStatic
text control.
The user is using keyboard only. The mouse pointer is off screen and the user
is not using the mouse.
Thanks,
Philip Chang
Ajay Kalra wrote:
> If I understand you correctly, you want to show a tooltip ONLY when mouse is
> over CEdit. Thats acceptable behavior. However I dont know what CStatic you
> are talking about. Additionally, you mentioned somethinkg about showing a
> tootip even when mouse is not over CEdit.
>
> Following example is very helpful:
>
> SuperTip Demonstrates Tool Tips in an MFC Application
> ID: Q188317
>
> In addition, there are several examples in tootip section of
> codeguru.developer.com.
>
> --
> Ajay Kalra [MVP]
> ajay...@yahoo.com
>
> Note: Please post all replies to newsgroup only.
>
> > > ajay...@yahoo.com
> > >
> > > Note: Please post all replies to newsgroup only.
> > >
> > > Philip Chang <philip...@checksol.com> wrote in message
> > > news:399ACE79...@checksol.com...
1. Create a child window in OnInitDialog(CTooltipCtrl or CStatic or any
other CWnd derived object) without WS_VISIBLE flag. Use SetWindowText to set
the text on the window.
2.Override OnSetFocus and OnKillFocus of your edit control.
3. In OnSetFocus, use pchildWnd->ShowWindow(SW_SHOW) and OnKillFocus, use
pChildWnd->ShowWindow(SW_HIDE)
These are general steps that you can use. Another option you can think of is
to use a Status Bar in your dialog, if you have real estate for it.
--
Ajay Kalra [MVP - VC++]
Note: Please post all replies to newsgroup only.
Philip Chang <philip...@checksol.com> wrote in message
news:399C5A42...@checksol.com...
--
<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>
Christian Weiske, RealDreams
cwe...@web.de
www.realdreams.purespace.de
<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>