1. OT-Making a window dialog .. and balloons: Pete

Pete Stoner wrote:
> >snipped
> 
> Kenneth, If you want a tooltip to show more than the standard 80 characters
> see here..(warning, long URL!) 
> <a
> href="http://www.listfilter.com/cgi-bin/esearch.exu?thread=1&fromMonth=C&fromYear=A&toMonth=2&toYear=B&keywords=%22Win32Lib+????????????%22">http://www.listfilter.com/cgi-bin/esearch.exu?thread=1&fromMonth=C&fromYear=A&toMonth=2&toYear=B&keywords=%22Win32Lib+????????????%22</a>
> 
> On your other point about offscreen or other ways to hide a window, as usual
> there is more than
> one way to skin a cat (I hope Kat isn't reading this,,, it's just an English
> expression!! smile
> 
> PeteS


Hi Pete,

should someone be interested, I got this running into the win32lib 59-1 too.

I have simply replaced the lText with allocate_string(lText) (no lenght check), 
like this: 
store( lParam, NMTTDISPINFO_szText, lText)
    VOID = w32Func(xSendMessage,{fetch(lParam, NMHDR_hwndFrom), 
    TTM_SETMAXTIPWIDTH, 0, lTextLen})

with:
    store( lParam, NMTTDISPINFO_lpszText, allocate_string(lText))
    VOID = w32Func(xSendMessage,{fetch(lParam, NMHDR_hwndFrom ), 
    TTM_SETMAXTIPWIDTH, 0, lTextLen})       	

and it works fine.

I have also replaced: 
classStyle[ToolTip] = or_all({TTS_ALWAYSTIP,TTS_BALLOON})

and obtained an nice ballon, adding an ICON and a TITLE if desired 
(but this goes to annoy, being the same for all) with
VOID = sendMessage( tooltipControl, TTM_ACTIVATE,
	1, " message Title")            -- 1 = icon flag


but I would like to submit a further question:

if you open the dialog to choose a folder by the selectDirectory(), you will
see the system context help '?' button to the upper right, near the 'x'.
Try it clicking everywhere on the tree and will get a very elegant tooltip,
rectangular but well spaced all around the text, and shadowed: 
do you know perhaps how to obtain these effects?

Thank you
antonio

new topic     » topic index » view message » categorize

2. Re: OT-Making a window dialog .. and balloons: Pete

Antonio Alessi wrote:
> 
> Pete Stoner wrote:
> > >snipped
> > 
> > Kenneth, If you want a tooltip to show more than the standard 80 characters
snipped
> 
> but I would like to submit a further question:
> 
> if you open the dialog to choose a folder by the selectDirectory(), you will
> see the system context help '?' button to the upper right, near the 'x'.
> Try it clicking everywhere on the tree and will get a very elegant tooltip,
> rectangular but well spaced all around the text, and shadowed: 
> do you know perhaps how to obtain these effects?
> 
> Thank you
> antonio

Hi Antonio,

It seems that is just another flag when doing the createEx for your window. From
the MS docs..

WS_EX_CONTEXTHELP
Includes a question mark in the title bar of the window. When the user clicks
the question mark, the cursor changes to a question mark with a pointer. If the
user then clicks a child window, the child receives a WM_HELP message. The child
window should pass the message to the parent window procedure, which should call
the WinHelp function using the HELP_WM_HELP command. The Help application
displays a pop-up window that typically contains help for the child window.

WS_EX_CONTEXTHELP cannot be used with the WS_MAXIMIZEBOX or WS_MINIMIZEBOX
styles.

I haven't tried this.. let us know how you get on!

PeteS

new topic     » goto parent     » topic index » view message » categorize

3. Re: OT-Making a window dialog .. and balloons: Pete

Pete Stoner wrote:
> 
> Antonio Alessi wrote:
> > 
> > Pete Stoner wrote:
> > > >snipped
> > > 
> > > Kenneth, If you want a tooltip to show more than the standard 80
> > > characters
> snipped
> > 
> > but I would like to submit a further question:
> > 
> > if you open the dialog to choose a folder by the selectDirectory(), you will
> > see the system context help '?' button to the upper right, near the 'x'.
> > Try it clicking everywhere on the tree and will get a very elegant tooltip,
> > rectangular but well spaced all around the text, and shadowed: 
> > do you know perhaps how to obtain these effects?
> > 
> > Thank you
> > antonio
> 
> Hi Antonio,
> 
> It seems that is just another flag when doing the createEx for your window.
> From the MS docs..
> 
> WS_EX_CONTEXTHELP
> Includes a question mark in the title bar of the window. When the user clicks
> the question mark, the cursor changes to a question mark with a pointer. If
> the user then clicks a child window, the child receives a WM_HELP message. The
> child window should pass the message to the parent window procedure, which
> should
> call the WinHelp function using the HELP_WM_HELP command. The Help application
> displays a pop-up window that typically contains help for the child window.
> 
> WS_EX_CONTEXTHELP cannot be used with the WS_MAXIMIZEBOX or WS_MINIMIZEBOX
> styles.
> 
> I haven't tried this.. let us know how you get on!
> 
> PeteS

Hi Pete,

thanks a lot for your detailed answer; alas I did not focus my question
very well. In lack of this info, I did program since long time a completely 
independent context-help system into my application, therefore this is not 
currently a problem of mine, hence I will not be able [at this time] to feed 
back with this information. However it could be practiced in the future.

What I tried to ask is if you - or someone reading herewith - know how 
to obtain the same tooltip style of the context-help, which is rectangular 
but not so strictly sized and brings a nice shadow, more suitable to my 
project's style than the balloon! 
See, the balloon reveals to be too much invasive in a window 
with many buttons and controls, each endowed with descriptions..

antonio

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu