@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16



Comments:

<0> i need to know the TIcon's size
<0> .Bitmap gives 0
<1> .Width\Height
<0> .Picture gives 32
<1> then maybe you are using an ImageList
<1> if you are, where's your head :P
<0> in not :o
<0> it's a TImage :X
<1> what's TrayInfo then
<1> what type
<0> TTrayInfo = record
<0> TrayIcon: TIMage;
<0> Wnd: HWND;
<0> uID: UINT;
<0> uCallBack: UINT;
<1> ah good



<1> was scared there for a moment
<0> some how even trIcon.Height/Width is all 32 :(
<0> im totaly confused :<
<1> TrayInfo[ind].TrayIcon.Picture.***ign(trIcon);
<1> if you check right after this
<1> it's always 32?
<1> btw do you really need TImage?
<1> it's really bloated :P
<1> i mean like, all we do is .Picture.Bitmap all the time
<0> i cant get TIcon from the memory else
<0> <1> it's always 32?
<0> yeah
<1> what's trIcon
<1> is it HICON?
<0> ticon with a ticon.handle:=hicon
<1> you could try
<1> make a new Bitmap
<1> hm
<1> do you know the size of the icon without making TIcon? prolly no right?
<0> nope
<0> and actually not through ticon too
<1> trough what then?
<0> dunno
<0> that's what im trying to figure out
<1> well
<1> i know there can be more than one bitmap in one icon
<1> like for different sizes
<0> yeah :o
<0> i didn't think of that
<0> how does it get the right one?
<1> it finds the one that best fits the size of the destination
<1> as far as microsoft says
<0> the most HQ?
<0> i actually think it's all of them :o
<1> lol
<1> dunno
<0> well i dont anymore lol
<0> i just did a "save to file" and like 5 files were the same
<0> just 2 diff sizes
<0> well we still cant tell the size :(
<1> try something
<1> sec
<1> http://www.vkarlsen.no/pastebin/default.asp?id=7278
<1> try this
<1> maybe u have to change something
<1> just tell me what happens
<0> blank whites
<1> that's weird
<2> omg! windows update! new WGA! w00000h!!!! PARTY
<1> WGA?
<2> windows genuine advantage
<2> their license crap
<1> lol
<1> cool i always uncheck that box
<2> still wonder why that is a "critical update"
<2> unless they've mdae it exploitable
<0> This item updates the Bookshelf Symbol 7 font included in some Microsoft products.
<0> that's what i've got :o
<2> hehe
<0> win2k3 > * :P
<1> sniff where do u get HICON from?



<0> procedure TFORM1.NewTrayIcon(NID: PNotifyIconDataEx);
<0> NID.hicon
<1> and you load it with LoadIcon?
<0> to the function?
<0> trIcon.Handle:=NID.hIcon; that's what i use inside it
<0> function=procedure*
<1> hum yes
<1> well
<1> sec :)
<0> damnit i love de la soul
<1> http://www.vkarlsen.no/pastebin/default.asp?id=7279
<1> the first line u gotta prolly change
<1> just so u know i want trIcon to be TIcon
<0> sec
<0> "cannot ***ign bitmap to timage" heh
<0> ok
<0> now it's like it was at first
<0> with the half icon
<1> well
<1> just do it to Picture then
<1> oh u did that already
<1> so it doesn't show the whole icon
<0> yeah
<0> the only problem is to get the icon's size
<1> yes well
<1> would be easier if it wasn't a fact there can be more bitmaps in one icon
<0> is it possible to chose which one
<0> ?
<1> if you have an ico file yes
<1> but u only have a handle
<0> yup
<0> so it's just one ico?
<1> prolly but also it seems u can't get it's size
<0> i can get it's size, just not the right one hehe
<1> which one do you get then lol? 32?
<0> 32 yeah hehe
<0> GetIconInfo() ?!?@! :o
<1> yeah just looking at it
<1> u can get a bitmap out of the icon
<1> that might be it
<1> u can then check the widht\height of the bitmap
<0> fIcon: BOOL;
<0> xHotspot: DWORD;
<0> yHotspot: DWORD;
<0> hbmMask: HBITMAP;
<0> hbmColor: HBITMAP;
<0> not helpful lol
<1> Bitmap := TBitmap.Create; Bitmap.Handle := iinfo.hbmColor;
<1> and
<1> Bitmap.MaskHandle := hbmMask;
<1> nvm maskhandle is readonly
<1> just ***ign the handle
<0> GetIconInfo(NID.hIcon, IconInf);
<0> thats the correct usage?
<1> probably
<1> depends what IconInf has to be
<0> IT WORKSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
<1> in VCL probably var Tsomething
<0> IT WORKSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
<0> KISSSSSSSSSSSSSSSSSSSSSSS :D~~~
<1> u said that 3 times already
<1> :P
<1> be4 i mean
<1> then it didn't work anymore :)
<0> lol it works perfect
<0> lemme see what i did there rofl
<1> :)
<0> hold up i'll show you!
<0> http://www.vkarlsen.no/pastebin/default.asp?id=7280
<0> and a pscreen
<0> hold up :p
<0> MrBrdo: http://img508.imageshack.us/img508/1999/asdada4oi.jpg
<1> wtf
<0> the print screen is screwd


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #delphi
or
Go to some related logs:

mssql server_principals
#computers
#linuxhelp
#politics
#computers
#goal
irc $ulist(*,
#computers
#qmail
twonky media warez



Home  |  disclaimer  |  contact  |  submit quotes