
I want to make some custom gadgets, but using ImageGadget() does not allow me to make parts transparent. For example, if there is a disabled ImageGadget in the Background, I want my custom gadgets to have transparent areas which are showing the background image.

Imagine a custom button gadget with round button shape. Also, it needs to be plattform independent (Win, Lin, Mac). More and more customers want me to make skinned form and set the window background to be a inconspicuous texture (image). I can use a disabled ImageGadget() as background (which works fine so far), but I can no longer use TextGadget() etc. Granted many scientists think that Pure-Basic Research is very important over. The PureBasic Editor The PureBasic Form Designer General Discussion Feature Requests and Wishlists Tricks n Tips Bug Reports. More than just a programming manual, this book covers computer science ppt free download, ccomputer science handbook / pdf, computer science. It allows you to create your own gadget, and the gadget will call spesified functions for repainting the gadget and when you scroll a scroll bar the gadget directly calls your function. because of the missing transparent background.

Scientists need to strip down from the techno-gadgets and start making. Dont worry, we have tons of resources available if you get stumped on a question. Fixed missing system default ToggleButtonEx skin. And I'm stuck in doing my own cross plattform custom gadgets if I can not have transparency in any gadget. Fixed rendering bug with PureBasic Panel gadget under Windows Server 2003.
PUREBASIC GADGETS 32 BIT
Img = TransparentImage(#Width, #Height, #Color) Ret = CreateImage(#PB_Any, width, height, 32, #PB_Image_Transparent)īox(0, 0, 10, 10, color) just an example creates a 32 bit image with transparent background Procedure.i TransparentImage (width.i, height.i, color.i) Is there a cross plattform way to make ImageGadget() or CanvasGadget() transparent? Or any other gadget type? The benefit of using an existing gadget would be the standard event handling which I prefer. The ScrollBarGadget stops the events when the mouse is pressed.

ImageGadget (0, 10, 10, #Width, #Height, ImageID(img))ĬanvasGadget(1, 10, #Height+10, #Width+20, #Height)ĭrawImage(ImageID(img), 0, 0) unwanted resultīut there is a serious problem with the CanvasGadget. But it is OS internal and not PB internal.
