The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: bloodhound on April 30, 2006, 01:34:46 AM

Title: Balloon tool tip help
Post by: bloodhound on April 30, 2006, 01:34:46 AM
anyone has a sample source code or example???
Title: Re: Balloon tool tip help
Post by: anon on April 30, 2006, 01:33:51 PM
Did you try the Search function of this board ?
http://www.masmforum.com/simple/index.php?topic=3477.0
Title: Re: Balloon tool tip help
Post by: bloodhound on May 01, 2006, 04:20:18 PM
thanks anon!

but unfortunately, this is not it..

i was hoping for a tray icon balloon tip, not the standard balloon tip..

Title: Re: Balloon tool tip help OK!!!
Post by: bloodhound on May 02, 2006, 05:40:17 AM
WHOOOA!! I FINALLY GOT IT!!!!  :dance:

Got some clue on the net, but its kinda incomplete.. ::)

So special thanks to zcoder for the added balloon tip symbols/definitions  :thumbu

Finally, I / we got to contribute here at the MASM community!  :dance:


i updated the WINDOWS.INC v1.25a --> v1.28a


i got a compile error if i modified the v1.26e by Jibz, so we or somebody do that later..

enjoy!  :wink

[attachment deleted by admin]
Title: Re: Balloon tool tip help
Post by: hutch-- on May 02, 2006, 05:43:49 AM
bloodhound,

Do yourself a favour, download the current version of masm32, the one you are using in years old.
Title: Re: Balloon tool tip help
Post by: bloodhound on May 02, 2006, 05:52:53 AM
yes hutch, but the problem of this is missing definitions in the include files..
are yours updated??  ::)

thats why im asking first for help in this forum and im sure most of the members here are updated with
their masm versions, but unfortunately, yet to no avail.. cant seem to solve this tiny problem,

so i search the net for some solutions...

hope this is okay...
Title: Re: Balloon tool tip help
Post by: bloodhound on May 02, 2006, 05:54:21 AM
and i cant seem to find the right solution in this forum.. right??

so luckily and some sweat, i got it and made my own..

yes, will update to v9 but of course, first i ask for help and of course
(most of us here are updated with their masm version!) but my point is, why is this not yet
being sampled and i got some feedback of missing symbols on other users???
and not the right examples. right??

Quote
bloodhound,
When I read the MSDN I did not realize that this stuff is missing from
windows.inc and I tried for over 24 Hours to create a example on
using baloon tooltips, but I could not get it to work. So far to
date this is the only thing I have found in the MSDN that I can't
get to work.

I am sure I will find other things in the MSDN that I can't understand.
SHELLICONDATA has been inlarged with other items in it and some
equates have been add like:
NIF_INFO equ 10h
NIN_BALLOONSHOW equ WM_USER+2
NIIF_INFO equ 1
NOTIFYICON_OLDVERSION equ 0;
NOTIFYICON_VERSION equ 3;

I will have to work on this for awhile to figure this out.
I am adding all this to my windows.inc project as well.

This is the same problem I had with making a web cam
example, but I got that to work so I hope to have this figured out too.
Zcoder....


Thanks zcoder... you're a big help! :thumbu :thumbu :thumbu


hutch--, i hope you understand what i mean.. thanks!  :U


**Okay, i maybe out-to-date with the windows.inc version, but i dont see anyone here
who got a working sample of this tiny problem... so i did it myself along with the help of
other members here!  :wink

well let's see the version 9 windows.inc...


maybe i should compile an updated samples/tutorials for masm beginners like me... hmmm..  :wink
Title: Re: Balloon tool tip help
Post by: zcoder on May 02, 2006, 11:55:13 AM
bloodhound,
I ran the example you posted and I waited for over 5 minute
for a ballon popup, and I even place the mouse over the trayicon
to see if a balloon would apear, none did.

So I looked at the code and it is done the way I had tried it too.
I am using XP PRO, and I am wondering if their maybe something
that has to be added for different Versions such as 2000, NT, XP, XP PRO????

This is puzzleing me ::)

Zcoder....
Title: Re: Balloon tool tip help
Post by: bloodhound on May 02, 2006, 12:48:21 PM
@zcoder

Wait just click on the tray icon not mouse over! it works fine on my Windows ME, and XP PRO SP1 dual boot system...

here's my screenshot on my ME...

(http://www.members.lycos.co.uk/qbworks/images/bal.jpg%3Cbr%20/%3E)

BTW, Thank you so much for the big help on this!!  :U You're a gr8 guy!! :clap:

Title: Re: Balloon tool tip help
Post by: zcoder on May 02, 2006, 02:24:29 PM
bloodhound,
Your right it does when you click on it, and I ran mine and it too
does that. COOL, now I have to see what I have to do to make one
that will apear when I want it to for a time I want it too show.

COOL,LOL

Zcoder....
Title: Re: Balloon tool tip help
Post by: zcoder on May 02, 2006, 02:35:01 PM
OK, I know now how to make it pop up automaticaly
for a period of time like this:



          mov note.cbSize,sizeof NOTIFYICONDATA
          push hWin
          pop note.hwnd
          mov note.uID,IDI_TRAY
          mov note.uFlags,NIF_ICON+NIF_MESSAGE+NIF_INFO+NIF_TIP
          mov note.uCallbackMessage,WM_SHELLNOTIFY
          mov eax,hIcon
          mov note.hIcon,eax
          mov note.uTimeout,100
          mov note.uVersion,NOTIFYICON_VERSION
          mov note.dwInfoFlags,NIIF_INFO         
          invoke lstrcpy,addr note.szTip,addr szDisplayName
          invoke lstrcpy,addr note.szInfo,addr szMyBallonMessage
          invoke lstrcpy,addr note.szInfoTitle,addr szMyBalloonTitle
          invoke Shell_NotifyIcon,NIM_ADD,addr note


Zcoder....
Title: Re: Balloon tool tip help
Post by: zcoder on May 02, 2006, 02:54:26 PM
Oh, and for those using a windows.inc file that does not have all
the stuff needed to do this here is what you need in the windows.inc file.



NIF_INFO             equ 10h
NIF_MESSAGE          equ 1
NIF_ICON             equ 2
NOTIFYICON_VERSION   equ 3
NIF_TIP              equ 4
NIM_SETVERSION       equ 4
NIM_SETFOCUS         equ 3
NIIF_INFO            equ 1
NIIF_WARNING         equ 2
NIIF_ERROR           equ 3

NIN_BALLOONSHOW      equ WM_USER+2
NIN_BALLOONHIDE      equ WM_USER+3
NIN_BALLOONTIMEOUT   equ WM_USER+4
NIN_BALLOONUSERCLICK equ WM_USER+5
NIN_SELECT           equ WM_USER+0
NINF_KEY             equ 1
NIN_KEYSELECT        equ NIN_SELECT or NINF_KEY
 
NIN_BALLOONSHOW      equ WM_USER+2
NIN_BALLOONHIDE      equ WM_USER+3
NIN_BALLOONTIMEOUT   equ WM_USER+4
NIN_BALLOONUSERCLICK equ WM_USER+5
NIN_SELECT           equ WM_USER+0
NINF_KEY             equ 1
NIN_KEYSELECT        equ NIN_SELECT or NINF_KEY


NOTIFYICONDATAA STRUCT
  cbSize                 DWORD      ?
  hwnd                 DWORD      ?
  uID                    DWORD      ?
  uFlags                 DWORD      ?
  uCallbackMessage  DWORD      ?
  hIcon               DWORD      ?
  szTip                BYTE       128 dup(?)
  dwState           DWORD      ?
  dwStateMask    DWORD      ?
  szInfo              BYTE       256 dup(?)
  union
                       uTimeout      DWORD      ?
                      uVersion      DWORD      ?
  ends
  szInfoTitle      BYTE       64 dup(?)
  dwInfoFlags    DWORD      ?
NOTIFYICONDATAA ENDS


NOTIFYICONDATA  equ  <NOTIFYICONDATAA>



Zcoder....
Title: Re: Balloon tool tip help
Post by: bloodhound on May 03, 2006, 02:31:32 AM
Well done Z!  :thumbu now, i saved time to program that timer show thingy!

thanks a lot for the added code timer

well, you know about the WINDOWS.INC file, i already modified it and its included
in the balloon zip file i attached. i dont know if the 1 that comes wth masm9 has this
defs and symbols thats why im confused that nobody here gets this example before (no bragging issues here) or gave the wrong example, so i tried to work this thing out.. thats why its a big deal about updating the windows.inc..
i dont know what hutch is talking about??..

Quote

Do yourself a favour, download the current version of masm32, the one you are using in years old.


if i downloaded v9 and i still
dont get this balloon thing to work or it is still missing then why should i
update to 9 in the 1st place. im happy with v7, works smoothly on
the projects i want to code  :bg
Title: Re: Balloon tool tip help
Post by: bloodhound on May 03, 2006, 02:42:35 AM
Yes, i missed the NIN_BALLOON defs.. great you have it!

how about this?


TPM_HORPOSANIMATION   equ 400h
TPM_HORNEGANIMATION   equ 800h
TPM_VERPOSANIMATION   equ 1000h
TPM_VERNEGANIMATION   equ 2000h
TPM_NOANIMATION        equ 4000h
TPM_LAYOUTRTL          equ 8000h


this is for the Trackpopupmenu command, is this already included in your inc file? v9?

somebody has to post the latest version of windows.inc here, so no one is confused and
will know what are they talking about...

And the MASM version comparison, so they will know if they need the current one or
stick to their old version!
Title: Re: Balloon tool tip help
Post by: PBrennick on May 03, 2006, 05:02:57 AM
bloodhound,
those equates are in there.  Now, listen to me, you are a good guy and a lot of fun to work with but you are being just plain silly here.  I understant VERY well your hesitancy to upgrade a well wrking version but this is just the type of problem you will experience - you do not get the benefit of Hutch's hard work.

The version 7.0 version of masm32, rename it masm70.  Download and install version 9.0; after installing it rename it masm90.  Now, all you have to do is alter your batch files accordingly.  You can parellel test the two versions t your heart's content.  I have a masm70, masm80, masm90 and a masm16.

EDIT: I am attaching the 9.0 version of windows.inc though I do not feel it is neceesary but if it will re-assure you...  And if you should find a problem ...

Have fun,
Paul


[attachment deleted by admin]
Title: Re: Balloon tool tip help
Post by: hutch-- on May 03, 2006, 06:44:09 AM
hmmmm,

Quote
if i downloaded v9 and i still
dont get this balloon thing to work or it is still missing then why should i
update to 9 in the 1st place. im happy with v7, works smoothly on
the projects i want to code

You need to get the idea that there is more to the world than balloon tips, you will save many people here a lot of work by setting up the much later version and know how to use it. If and when you find an equate that is not available in the existing include file, what you do is find them in the PLATFORMSDK/MSDN etc ..., put them in a seperate include file and include them in your app that way.
Title: Re: Balloon tool tip help
Post by: bloodhound on May 03, 2006, 08:04:40 AM
Quote
You need to get the idea that there is more to the world than balloon tips,

i knew that, but isnt it trouble if you dont update the latest include files and share it to others??
since know your in version 9, and these small things dont count?? how about the beginners?

Quote
you will save many people here a lot of work by setting up the much later version and know how to use it.
What's the use of getting the latest if the thing that you want still doesnt work?? get it??
of course the others, will work it out cause its important for them i mean if not to you..

you know in programming, and also in life.. its the little things that matters!
Title: Re: Balloon tool tip help
Post by: bloodhound on May 03, 2006, 08:09:39 AM
okay i get it!

so, dont mess up the WINDOWS.INC file in the masm or try to update it..
just get the latest version and if you find something missing, go to the net or msdn or something
and just seperate it, cause you guys from the top are the only who has the authority to modify it, am i right???


HA! pretty much of a community we got here...


oh well, never mind...  :cheekygreen: this isnt going nowhere...
Title: Re: Balloon tool tip help
Post by: bloodhound on May 03, 2006, 08:21:19 AM
okay! i dont want to start an argument here... we'll just leave it this way

i get what you mean!


Title: Re: Balloon tool tip help
Post by: bloodhound on May 03, 2006, 08:26:18 AM
Yes, and thanks Paul! yes, i understand! i may be a little out of the line here  ::)

we'll just stop here..

i'll just get a time out on here for a while.. maybe i'm just frustated with my real life problems,
im diverting it here..

oh well,   have my vacation, away from the pc

im sorry guys... sorry hutch..

have a good day :wink


Title: Re: Balloon tool tip help
Post by: PBrennick on May 03, 2006, 10:22:30 AM
Don't stay away too long, it is fun wrking with you and I like your excitement.

Paul
Title: Re: Balloon tool tip help
Post by: zcoder on May 06, 2006, 07:29:28 AM
There is a problem with masm32 v.9's windows.inc
it is way behind, I know this for a fact, I always download the newest virsion
and try to compile with it all of my programs i have in my archive.
many, well alot of them don't compile right, error's accure.

I still check on the newest version, but it seems most people have
not been supporting the project to well, seems that The version
I have works on all my programs I have archived on my system.

I have mosly been reading the MSDN, trying to make or work with a API
I have never used, this has coused me to make modifications to the windows.inc
file I have and for over 7 years, I have not seen any version that has what I have in
my version. it appears to be ahead.

But I can only say, I would guess, it's mosly becouse I am not given the cretit I desirve
for what knowlage I have in this area, as for programming in assembly, and the fact
that I have solved almost everything I can in windows GDI, or GUI programming as I set
out to do so back in 1998 when I first started to learn how to make WIn98 peograms.

To this date, there is nothing or it's not complete in the masm32 windows.inc for web cam
and this tooltip from the shellicondata stuff as well as usb support, and other things
I can list for a long list of things I just can't think of right now.

Now if someone want's the inc file they have just ask me, and if you want those example
programs I have made, that show that the most current windows.inc you have from
masm32 project will not assemble, ask me, I hold nothing back, but soon as I am able
to post on my site the example programs and the IDE I am going to release free
then you can get it from there.

Also if you would search this forum more using keyword for Zcoder
you will find that I have easly produced code for newbies and some
code where I had to produce the stuff not in masm32's windows.inc file
or include the inc file with the code.

As you may know, the MSDN is large as hell, and by now way do I claim I have all the
stuff in the MDSN, but my projects I have written shows me where the current windows.inc
file lagg's behind..

Just my openion.


Zcoder....