Window Manipulation Project

Blitz3D Forums/Blitz3D Programming/Window Manipulation Project

mk2y10(Posted 2012) [#1]
Hello everyone, I have been working in the background and decided to let others know about the commands I have been mastering to make Blitz3D more functional. What I have been up to most recently is making desktop widgets for Windows 7 using blitz3d. The reason for this is to help me organize all my information about programming. (I just finished a widget that searches through previously written functions. You type in the name of it, and it lists the results in real time. You just click on one of the results and a weeder copies the function you want out of the code and launches a .bb file that only has the function in it. Clean, Fast, and simple.)

Here I would like to post some functions for Window Manipulation (I will add more as I go) for those who want to have more control over objects in Windows.

Note: You will need the .decls for Windows User32.dll, GDI32.dll, and some others. If I find the link, I will post it around here somewhere.



If you have any comments, or requests, please let me know.

I am currently working on custom shapes for Windows. (Using Images as masks)

EDIT 1/27:
I have a new addition to the set of codes above, it is the SetWindowShape command. It sets the shape of the window using an image as a mask. The parts of the image that are 0,0,0 will be transparent while the other colors will not. Use this for crazy shaped windows. Please note, the coordinates used are from the offset of the window gadget itself, not the buffer on blitz. Use the optional LX and LY parameters to move the location where the region is drawn!



:) - Mike

Last edited 2012


Guy Fawkes(Posted 2012) [#2]
Thank you for your contribution to the community! This is AWESOME! :)