@# 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> if it is it's a toplevel window
<1> i am, look there
<0> yeah i remember
<0> then it's a toplevel window i guess
<1> so why doesn't windows show it as one?
<1> though the edit window some times does show lol
<0> yeah
<0> well u know.. there can be toplevel windows without a taskbar button
<1> only it they're a toolwindow
<0> http://www.codeproject.com/csharp/taskbarsorter.asp
<1> check the other problem with the resize
<1> http://www.vkarlsen.no/pastebin/default.asp?id=7271
<1> i found some functions
<1> doesn't seem to work for me, i do it wrong :o
<0> if u look at that page
<0> u can actually ask the taskbar, how many buttons do you have there?



<0> prolly for the handle too, didn't read all yet
<1> hehe
<1> check out the second link
<0> what happens
<0> TrayInfo[ind].TrayIcon.Picture.Graphic.. .Bitmap not ***ignable?
<1> nothing appear
<1> i tried bitmap, graphic was my 2nd shot hehe
<0> i think instead of
<0> NewBitmap.Canvas.StretchDraw(Strech, Bitmap);
<0> it should be
<0> actually no it should be ok
<0> :S
<1> maybe the problem is with this two lines
<1> TrayInfo[ind].TrayIcon.Picture.***ign(trIcon);
<1> Bitmap.***ign(TrayInfo[ind].TrayIcon.Picture.Bitmap);
<1> since i "convert" ticom to a timage
<1> maybe it gets lost there
<1> ?
<0> i don't know how VCL works
<0> u had the icon in TImage be4
<1> yeah
<0> just do it like u did it before to get it into a TImage and then get the bitmap
<0> and you don't need to ***ign a new bitmap i think, just use the .Bitmap property
<1> i got it into a TImage
<1> oh
<1> got a point :p
<0> what about using images only?
<1> lol now nothing shows
<0> TImage i mean
<1> how?
<0> it has a canvas property
<0> Img2.Canvas.StretchDraw(Rect, Img1);
<0> or whatever it wants for the second parameter..
<1> lets see
<0> if TImage is descendant of TGraphic it should work
<0> Img1 is the big icon in the image
<0> img2 is blank and after it should be the resized img
<0> just make a new img ofc Img2 := TImage.Create;
<0> and set width\height
<1> it says it can only modify a Bitmap
<0> Img2.Picture.Bitmap.Canvas?
<0> but be sure to ***ign a height and width to img2
<1> i did it with the original TImage
<1> TrayInfo[ind].TrayIcon
<1> lemme see
<0> ah right use that then
<0> i would try ImgX := TImage.Create; ImgX.Width := x; ImgX.Height := y; ImgX.Picture.Bitmap.StretchDraw(yourrect, TrayInfo[ind].TrayIcon);
<0> i am just not sure if the bitmap is already existant at that point.. i hope VCL makes it if u want to draw on it
<1> then just TrayInfo[ind].TrayIcon:=Img2;?
<0> no cause it's STRETCHdraw
<0> and ofc imgx.width and height are the resized (smaller) dimensions
<0> as far as i can remember the StretchDraw resize is pretty ugly tho :P i know i had to use the filters (bicubic and those) to make it look ok.. just so u know
<1> so how do i get the Img2 back to TrayInfo[ind].TrayIcon?
<0> ah
<0> yes like u said
<0> that's after tho
<1> lol i got an AV
<1> still shows nothing
<0> heh
<0> AV prolly cause bitmap doesn't exist
<0> actually do something else



<0> i think
<0> bmp: TBitmap;
<1> AV cause i did TrayInfo[ind].TrayIcon:=Img2;
<1> lol
<0> bmp := TBitmap.Create;
<0> bmp.height\width to resized
<0> use bmp.StretchRect to draw
<0> then do TrayInfo[ind].TrayIcon.Picture.Bitmap.***ign(bmp);
<0> bmp.free;
<0> or without .Picture i don't know what type TrayIcon is
<0> wrong up, not Stretchrect but stretchdraw sry
<1> AH
<1> !
<1> IT WORKS!
<1> well
<1> sorta, didn't resize and the BG is white lol
<0> lol
<0> if you comment out the drawing on the bitmap
<0> and just make the bitmap and set size
<0> and ***ign it
<0> what do you get?
<0> it's possible that it ignores the ***ign and it's the same as be4
<1> MrBrdo, nothing lol
<0> so it displays nothing?
<1> yeah
<0> then you only screwed at the stretchrect part
<0> did you set the Rect width and height so it is for the smaller icon?
<0> the one u need to have?
<0> ehhhh
<0> stretchdraw
<0> sry again
<1> MrBrdo> the one u need to have?
<1> yeah i did
<0> put on pastebin
<1> http://www.vkarlsen.no/pastebin/default.asp?id=7272
<1> man 6:21 am isn't a good programming time lol
<0> u're 1 hr ahead of me
<1> lol
<1> where u from?
<1> say, does this KOL change smth in delphi or does it add objects and components?
<0> looks fine to me
<0> slovenia
<1> well it doesn't resize blah
<0> no, you just add KOL in library path, and remove SysUtils and such from uses list
<1> oh kewl, and all is the same?
<0> Note:If the graphic is an icon, it is not stretched.
<0> no it's kinda different but u get used to it
<0> silly but i think u have to Draw() the icon on a bitmap first, then Stretchdraw it on another bitmap (it's canvas i mean, ofc)
<1> lol
<0> but watch out
<0> If the graphic is a TBitmap object, the bitmap is rendered using the value of CopyMode.
<0> whatever that means.
<1> loll
<0> just try drawing the icon on bitmap and then stretch on another :)
<0> might work
<1> now i get blank white cubes lol
<1> http://www.vkarlsen.no/pastebin/default.asp?id=7273
<0> bitmap has no height width set
<0> one of them ;)
<1> newbitmap or bitmap?
<1> still no resize blah
<0> bitmap
<0> show code again
<0> u had width\height set only for newbitmap this time
<1> http://www.vkarlsen.no/pastebin/default.asp?id=7274
<0> what now, u again see the image but not resized?
<1> yeah
<1> maybe
<0> he
<0> ofc
<0> Bitmap width and height
<1> the ticon gets cut inside the timage?
<0> must be the big one
<0> NewBitmap 16 16 is ok


Name:

Comments:

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






Return to #delphi
or
Go to some related logs:

#opengl
#linuxhelp
#3dsmax
delmurice
buy a new phone without extending service verizon
#gentoo
#winxp
#politics
ROTORFACE
kemotherapy marijuana



Home  |  disclaimer  |  contact  |  submit quotes