Skip to content
WinAPI Declare Library for use with Xojo
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
UI Added SelectFolderDialog class and "Minimalistic Select Folder" butto… Feb 20, 2019
WinAPILib
.gitignore Initial commit Nov 22, 2017
App.xojo_code Initial commit. Nov 22, 2017
Build Automation.xojo_code Initial commit. Nov 22, 2017
LICENSE
README.md Initial commit. Nov 22, 2017
WinAPILib.xojo_project
WinAPILib.xojo_resources Initial commit. Nov 22, 2017

README.md

WinAPILib

WinAPI Declare Library for use with Xojo.

About

WinAPILib is a library of WinAPI (formally Win32) Declares you can add to your Xojo projects to add Windows-specific functionality.

This project is intended to be both 32-bit and 64-bit compatible and will likely crib many of its Declares from the older (and 32-bit only) Windows Functionality Suite Xojo library (WFS - https://github.com/arbp/WFS).

Usage

Click the green "Clone or download" button to download a Zip of the project. You can run the WinAPILib project in Xojo on Windows to see a demonstration of some of its features.

To use it in your own projects, open the WinLibAPI project and copy the WinAPILib folder to your project. Currently all code resides in the WinAPILib namespace.

WinAPILib is know to work with Xojo 2017 Release 2.1 and later. Support for earlier versions is not known.

Set a Window to 50% opacity:

WinAPILib.Window.SetOpacity(Self, 0.50)

Make a Window always topmost:

WinAPILib.Window.AlwaysTopmost(Self) = True

Get the Windows version:

Dim versionInfo As New WinAPILib.OSVersionInfo
MsgBox(versionInfo.Version)

There is more of course and additional things will be added over time. For now you'll have to read through the WinAPILib namespace to see what is available.

If you have WinAPI Declares to add, please submit Pull requests.

You can’t perform that action at this time.