WindowAPI
- Downloads:
- Views:
- Rating:

WINDOWAPI - Set window properties using the Windows API
There are a lot of functions in the FEX to set the figure properties, e.g. maximized, minimized, always-on-top, level of transparency (using Java).
This submission adds 4 new features:
1. Maximize a window with or without visible taskbar or menu bar.
2. Set transparency level of figure and stencil-color: pixels of a this color are 100% transparent.
3. Placing figures on multi-monitor setups.
4. Clip region: draw only pixles inside a specified rectangle (e.g. splash screen).
WindowAPI(FigH, Command)
INPUT:
FigH: Matlab's figure handle or Windows HWND.
Command:
TopMost: Window is topmost even if the focus is lost.
NoTopMost: Disable the topmost state.
Front: Move window on toptemporarily.
Minimize: Minimize the window.
Restore: Restore to former size.
Maximize: Full screen, taskbar and menubar visible.
XMax, YMax: Maximize figure horizontally or vertically only.
Position: Set inner figure position to 'work' (taskbar visible), 'full' (taskbar hidden),
or [X,Y,Width,Height].
Monitor index can be specified also.
OuterPosition: As Position, but with figure border and titlebar.
Flash: Short flashing.
Alpha: Set the figure's transparency between 0.0 and 1.0.
4th input [R,G,B]: Pixels with this color are 100% transparent in addition.
Opaque: Release memory needed for alpha blending.
Clip: Draw only pixels inside a rectangle.
ToScreen: Move figure completely to nearest monitor.
SetFocus: Gain keyboard focus to figure (figure(FigH) is buggy).
Reply = WindowAPI(FigureHandle, Command)
GetStatus: Replies 'maximized', 'minimized' or 'restored'.
GetHWnd: Reply the Windows handle of the figure.
Position/OuterPosition: If used with 2 inputs, the position relative to current monitor and the monitor index is replied.
Monitor: Get index and position of monitor.
NOTES:
This function calls Windows-API functions => No Linux, no MacOS - sorry.
The function is written in C and must be compiled before using by the mex command. See WindowAPI.c for instructions.
Suggestion for other OS are are very appreciated!
EXAMPLES:
Maximize the current figure:
WindowAPI(gcf, 'maximize')
A semi-transparent figure with through-looking background:
FigH = figure('Color', ones(1,3));
plot(1:10);
WindowAPI(FigH, 'Alpha', 0.5, [255,255,255]);
Draw a button without surrounding figure ("spalsh button"):
FigH = figure;
ButtonH = uicontrol('Style', 'PushButton', 'String', 'Bye', ...
'Units', 'pixels', 'Callback', 'delete(gcbf)');
WindowAPI(FigH, 'Clip', get(ButtonH, 'Position'));
Tested: Matlab 6.5, 7.7, 7.8, WinXP, 32bit, MSVC 2008, LCC3.8, BCC5.5
Assumed compatibility: Higher Matlab versions, 64 bit.
Free download from Shareware Connection - WINDOWAPI - Set window properties using the Windows API
Version: 1.0 | Size: 20 KB | Platform: Matlab, Scripts
Released Date: 20-03-2013 | Rating: 0 | Title: WindowAPI
Author Url: http://www.mathworks.com
Program Info Url: http://www.mathworks.com
Download Url: http://www.mathworks.com/matlabcentral/fx_files/31437/4/WindowAPI_30Jun2011.zip
ScaleTime - ScaleTime - fast linear matrix interpolation
DateStr2Num - DATESTR2NUM - Fast conversion of DATESTR to DATENUM
strncmpr - Compare last N chars of strings or cell strings
Patch FILTFILT - If applied to a matrix, the function FILTFILT (Signal Processing Toolbox) calls itself recursively for each column.
fSGolayFilt - fSGolayFilt is a fast polynomial smoothing filter for uniformly spaced signals
Free Audio Editor
Free 3GP Video Convert Wizard
Free Ringtone Maker
Free ISO Grabber
DTMF Tone Decoder
Power Movie Switch
Cool iPhone Ringtone Maker
HotDisc DVD Copy
Flash Player Script
EarCatch Ringtone Express
Easy Audio Extractor
SoundTaste Audio Converter
mov Audio Extractor
Audio Record Edit Toolbox
Affiliate Programs
Animation
Auctions
Audio Systems
Banner Rotation
Blog
Bulletin Boards & Forums
Business & Enterprise
Buttons
Calendars & Events
Charts & Graphs
Chat
Classified Ad Managers
Communication
Compaq Restored
Fix Damaged Restored Mpg
How Restored Replace Files
Icons Restored
Nokia Backup Restored Samsung
PDF to Image Converter CMD for Linux - With PDF to Image Converter Command Line for Linux, you can convert PDF to TIFF, JPEG, GIF, PNG, BMP, PCX, TGA, and PPM.
CLINT Command Interface to System Calls - System calls command line utilties for Linux and all POSIX based operating systems. Allows direct command line access to many popular kernel system calls in text format. Makes a great internals teaching tool for operating systems.
Recursive HYPOT Function for Multiple Inputs - Extension of the built-in MATLAB function hypot for multiple inputs.
GUI for Routh-Hurwitz Criterion - There are 5 M-files : Routh_Gui.m, OnOk.m, routh.m, disp_result.m, funct.m. And Routh_Gui.m is used for creating the interface(using uicontrol,uipanel), OnOk.m is the callback function of pushbutton 'OK'.
SBPShift - Move a project's origin to a specific or relative position and accepts command-line parameters making it suitable for batch adjustments.
Shareware Connection periodically updates pricing and software information of 'WindowAPI' from company source 'Jan Simon' , so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using 'WindowAPI' crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of WindowAPI.
SnapCrab - Nearly every PC users need to take screenshots from time to time, whether it is for personal or professional needs. While using the basic Windows screenshot capture method is available, it is not adequate for everyone. When you want to capture ...
Driver Fusion - To keep your laptop and desktop running smoothly and get the best performance out of it, it is important to pay attention to some aspects. It is quite important to ensure your PC device drivers are updated. Components like motherboards, GPU and ...
Trend Micro HouseCall - With time, PC users find it increasingly difficult to keep their systems free of malware and rogue apps, despite using latest and feature packed security software. This is mostly owing to the evolving nature of malware and newer types of ...
Sony Movie Studio 13 Platinum - Sony enjoys a prime position in consumer level media software development and its Movie Studio has a large fan following. However, in recent years competition from Adobe and Corel has caught up. The recent overhaul of Sony’s video editor ...
Eset Cyber Security Pro - There was a time Mac users were simply oblivious to the existence of malware and viruses, partially encouraged by Apple’s claim that Mac’s do not fall prey to malicious code. In last few years, that perception has been shattered owing ...
Sigma Internet Monitoring - There is no denying the huge importance of internet in human life. Without the web, it has literally become imposable to carry on a lot of personal and professional activities, irrespective of your age, gender and qualification. While the web ...
CyberGhost VPN - There are so many ways available to browse the web nowadays. You can use a plethora of devices and pick from various service providers to get online. However, tech savvy users resort to additional measures to access the internet without being ...
MacPilot - The Mac OS contains many advanced features that can make computing a different experience altogether. However, not all Mac users are aware of such deep rooted features of the Apple OS. The usual surface customizations are what most of them remain ...
MacCleanse - Macs are known for their multitasking prowess and near perfect performance over other type of computers. However, after prolonged usage a Mac can also run slower than usual. In such situations, you can try third party clean up and maintenance ...
KeePass Password Safe - Using password becomes mandatory for performing various online operations, at both home and workplace. For accessing email accounts, shopping online, making banking transactions and similar tasks it is necessary to use user ids and passwords ...

