StartDrawing Output HDC
If I were to drawing TreeGadget
Node row hover color 》》》》》》》》 A transparent background image
How to modify HDC With StartDrawing
I am very confused
Please give a simple example, using StartDrawing to draw the specified HDC
About self drawing
Re: About self drawing
As far as I know a background image inside a treegadget is not possible. Then you have to use windows api for get it done, but I have no experience with this.
Re: About self drawing
Hadrianus wrote:As far as I know a background image inside a treegadget is not possible. Then you have to use windows api for get it done, but I have no experience with this.
thank you
Re: About self drawing
oryaaaaa posted this code example to display a TreeGadget with an image as background in 2004 (and updated his example more recently for PB 5.20+).
You have to add your own picture by replacingby (for example)and addingto the top of the code in order to try it (tested successfully on Windows XP SP3 and Windows 7 x86 SP1).
You have to add your own picture by replacing
Code: Select all
LoadImage(0, "c:\body.bmp")
Code: Select all
LoadImage(0, #PB_Compiler_Home + "Examples\3D\Data\Textures\Clouds.jpg")
Code: Select all
UseJPEGImageDecoder()