Platform SDK Shell >> Formatting an InfoTip

by Chuck Chopp » Wed, 18 May 2005 04:06:54 GMT

OK, I now have IQueryInfo::GetInfoTip() being successfully called in my NSE.
I can allocate a chunk of memory using the shell's malloc routine and
return a pointer to this memory to the caller. I've populated it with some
text that text is being displayed as a pop-up InfoTip when the mouse pointer
hovers over an item in my NSE.

Now I'd like to format the string value to make it look more professional,
but it appears that the shell is disregarding the "\n" line break control
code that I've embedded in my string. I'd like to have 3 separate lines of
text appear inside the InfoTip bubble, but as it works now, my 3 lines are
all run together as one line and only the arbitrary wrapping imposed by the
shell causes any line breaks to occur.

What's the proper way to force a line break in an InfoTip bubble?


TIA,

Chuck
--
Chuck Chopp

ChuckChopp (at) rtfmcsi (dot) com http://www.rtfmcsi.com

RTFM Consulting Services Inc. 864 801 2795 voice & voicemail
103 Autumn Hill Road 864 801 2774 fax
Greer, SC 29651

Do not send me unsolicited commercial email.


Platform SDK Shell >> Formatting an InfoTip

by Michael Phillips, Jr. » Wed, 18 May 2005 04:55:18 GMT


I use a CString to format my infotips and then use memcpy to copy the
formatted string to the shell malloced buffer. The CString format method
seems to work well with multiple '\n' terminated strings.








Platform SDK Shell >> Formatting an InfoTip

by Chuck Chopp » Wed, 18 May 2005 09:21:18 GMT





I made a very subtle change and now it's working. I'm not sure *why* it
made a difference, but it did. I combined some string constants into a
single string constant and now the "\n" control code is being handled properly.


--
Chuck Chopp

ChuckChopp (at) rtfmcsi (dot) com http://www.rtfmcsi.com

RTFM Consulting Services Inc. 864 801 2795 voice & voicemail
103 Autumn Hill Road 864 801 2774 fax
Greer, SC 29651

Do not send me unsolicited commercial email.