type TyourHackGrid = class(TDBGrid); TyourHackGrid(yourDBGrid).RowHeights[0] := 50;Nice indeed ;)
Sabtu, 24 September 2011
Delphi:runtime TDBGrid change default row height
Delphi : Load png to TBitmap
HI there good friends, for those of you who would like to get load a jpeg image and then load the data to a TBitmap object, here is a neat good trick to get it done :
Have fun dear friends! ;)
procedure TForm1.btn1Click(Sender: TObject); var bmp : TBitmap; begin if(dlgOpenPic1.Execute()) then begin img1.Picture.LoadFromFile(dlgOpenPic1.FileName); bmp := TBitmap.Create; try bmp.Width := img1.Picture.Width; bmp.Height := img1.Picture.Height; bmp.Canvas.Draw(0, 0, img1.Picture.Graphic); Canvas.Draw(btn1.Left, btn1.Top + btn1.Height + 20, bmp); finally bmp.Free; end; end; end;Just dont forget to include the jpeg unit if you want to work with the jpegs, and for delphi 2009 and up you could add the PNGImage to work with png files on your delphi project
Have fun dear friends! ;)
Jumat, 23 September 2011
Playing with linux
Downloading file : use wget http://blabla.com/bla.zip
working with a tar.gz : tar -zxvf arcieve.tar.gz
since i like to play with installing the development.. this will include the header file XLib.h, XUtil.h
apt-get install xorg-dev
finding some file?
find / -name filename.ext -print
working with a tar.gz : tar -zxvf arcieve.tar.gz
since i like to play with installing the development.. this will include the header file XLib.h, XUtil.h
apt-get install xorg-dev
finding some file?
find / -name filename.ext -print
Rabu, 14 September 2011
WEBOS : Google map doesn't recognize your location?
A simple solution to that but might be not permanent is because of the latitude mode problem on the native google map application, me too had those similar problem, and browsing the web give me one solution that worked like charm ;)
Open your browser, clear your cache
hen go to the following address : http://maps.google.com/maps/m? mode=latitude
Google map application will open automaticly
and voila..
we had our location detected flawlessly.
Hints for the geek :
our palm pre phone is very much capable of the gps
try running this..
##DEBUG and you will find numerous wonderfull information there :)
Nice..
I love this phone..
Open your browser, clear your cache
hen go to the following address : http://maps.google.com/maps/m?
Google map application will open automaticly
and voila..
we had our location detected flawlessly.
Hints for the geek :
our palm pre phone is very much capable of the gps
try running this..
##DEBUG and you will find numerous wonderfull information there :)
Nice..
I love this phone..
Langganan:
Postingan (Atom)