The Demo Project
Last updated
Last updated
The demo project shows the dynamic pictures of the running system in its current state.
It uses a subclass of a Canvas, ColorCanvas, to demonstrate one possibility to get a dynamic color inside a paint event while still keeping it variable.
The controls on the lower right part of the window perform the following functions:
Has no real function. Use it to see changes in your apperance/system palette color settings.
The controls window shows examples on the extension methods for some controls included in the user32Addition and AppKitAddition modules.
You can set images and templates on Push- and Radiobuttons, create an invisible (or semi-transparent) splashwindow or even exchange a popupmenu’s whole content with a custom ContainerControl (this one on macOS only) and use two different kinds of double buffers on windows and controls (Windows only). See how the Main window is being opened without visible drawing of the canvases. This was done by setting its Composited
value to True.
is a window showing Window-exclusive system colors. They have been mapped to similar macOS system colors for some kind of similarity though.
The color methods window is a playground for the included color manipulation methods.
You can change the color of the upper and middle row leftmost canvas by clicking on it.
You can set the strength of the effects in the bottom row – BlendColor, Highlight, Shadow and ChangeAlpha – in the allowed range between 0.0 and 1.0.
Please note that AddSystemEffect is macOS only. The Windows version of this method returns the original color instead. The other methods are approximations built in Xojo as Windows does not know these methods natively.
macOS only!
Opens a window showing the different materials of VisualEffectViews.