Xojo Conferences
MBSOct2019CologneDE

Platforms to show: All Mac Windows Linux Cross-Platform

Previous items

Window.ShowHideToolbarMBS(animate as boolean, value as boolean)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Window MBS Util Plugin 4.0 Yes No No No No
Function: Shows or hides the toolbar.
Notes: Only working on Mac OS X.

Feedback, Comments & Corrections

window.SmoothResizeCenteredMBS(width as Integer,height as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Window MBS Util Plugin 11.2 Yes No No No No
Function: Resizes the window smoothly to all directions.
Example:
dim w,h as Integer

// get destination dimension

w=300
h=200

// Resize

window1.SmoothResizeCenteredMBS w,h

// Now resize via RB to make it permament.

width=w
height=h
Notes:
You need to set the new size using Xojo's Windows properties, too. (no longer needed with Xojo)
In Xojo 2005 and newer you need to use self. in front of the method as the propertyname alone is not accepted.

Feedback, Comments & Corrections

Window.SmoothResizeMBS(width as Integer,height as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Window MBS Util Plugin Yes No No No No
Function: Resizes the window smoothly.
Example:
dim w,h as Integer

// get destination dimension

w=300
h=200

// Resize

window1.SmoothResizeMBS w,h

// Now resize via RB to make it permament.

width=w
height=h
Notes:
You need to set the new size using Xojo's Windows properties, too. (no longer needed with Xojo)
In Xojo 2005 and newer you need to use self. in front of the method as the propertyname alone is not accepted.

Works on Cocoa on 10.4 and newer.

Some examples which use this method:

Feedback, Comments & Corrections

Window.ToolbarVisibleMBS as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Window MBS Util Plugin 4.0 Yes No No No No
Function: Whether the toolbar is shown in this window or not.
Notes:
Value is false on any error.
Only working on Mac OS X.
(Read and Write computed property)

Some examples which use this property:

Feedback, Comments & Corrections

Window.TransparencyMBS as single
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Window MBS Util Plugin 5.0 Yes Yes Yes No No
Function: The transparency of the window on Mac OS X, Windows 2000 and Windows XP.
Notes:
1 for opaque, 0 for invisible.
Return 1 on any error. On Windows it returns always 1 as the current transparency value can't be queried.
You need to call MakeTransparent before to install transparency.
(added Windows support in version 4.4)
Linux supported added with 14.0, but works only with Linux desktop which support alpha channel.
(Read and Write computed property)

Some examples which use this property:

Feedback, Comments & Corrections

window.UnifiedTitleAndToolbarMBS as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Window MBS Util Plugin 8.1 Yes No No No No
Function: Whether this window has an unified title and toolbar look.
Example:
window1.UnifiedTitleAndToolbarMBS = true
Notes:
This window draws its window title and toolbar using a unified appearance that has no separator between the two areas. A window may not have both UnifiedTitleAndToolbar and Metal appearance. If a window already has the metal attribute, attempting to set the Unified attribute will cause ChangeWindows to return an error, and vice versa. This constant was not added to this header file until Mac OS X 10.5, but it is actually available at runtime on Mac OS X 10.4 and later for windows of kDocumentWindowClass. However, on Mac OS X 10.5 and later, kHIWindowBitUnifiedTitleAndToolbar no longer has any effect, since all windows with toolbars now have a unified look.
(Read and Write computed property)

Feedback, Comments & Corrections

Window.UpdateNowMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Window MBS MacOSX Plugin Yes No No No No
Function: On Mac OS X all Windows are doublebuffered and the OS updates the screen from time to time. This method forces a screen update.
Example:
Mainwindow.UpdateNowMBS
Notes: Updated for 64-bit in plugin version 18.3.

Feedback, Comments & Corrections

Window.UpdateNowRectMBS(left as Integer, top as Integer, width as Integer, height as Integer)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Window MBS MacOSX Plugin Yes No No No No
Function: On Mac OS X all Windows are doublebuffered and the OS updates the screen from time to time. This method forces a screen update for a part of your window.
Example:
Mainwindow.UpdateNowRectMBS Mainwindow.text.left, Mainwindow.text.top,  Mainwindow.text.width, Mainwindow.text.height
Notes: Updated for 64-bit in plugin version 18.3.

Feedback, Comments & Corrections

Window.WindowFeedbackSettingMBS(Feedback as Integer, byref value as boolean, IncludeAncestors as Boolean = false) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Window MBS Win Plugin 17.5 Yes No No No No
Function: Retrieves the feedback configuration for a window.
Notes:
IncludeAncestors: Specifies that the parent window chain should be checked.

Returns true if the specified feedback setting is configured on the specified window. Otherwise, it returns false (and config won't be modified).

Requires Windows 8 [desktop apps only] or Windows Server 2012 [desktop apps only].

Constant NameValueDescription
FEEDBACK_TOUCH_CONTACTVISUALIZATION1Feedback for a touch contact event.
FEEDBACK_PEN_BARRELVISUALIZATION2Feedback for a pen barrel-button event.
FEEDBACK_PEN_TAP3Feedback for a pen tap event.
FEEDBACK_PEN_DOUBLETAP4Feedback for a pen double-tap event.
FEEDBACK_PEN_PRESSANDHOLD5Feedback for a pen press-and-hold event.
FEEDBACK_PEN_RIGHTTAP6Feedback for a pen right-tap event.
FEEDBACK_TOUCH_TAP7Feedback for a touch tap event.
FEEDBACK_TOUCH_DOUBLETAP8Feedback for a touch double-tap event.
FEEDBACK_TOUCH_PRESSANDHOLD9Feedback for a touch press-and-hold event.
FEEDBACK_TOUCH_RIGHTTAP10Feedback for a touch right-tap event.
FEEDBACK_GESTURE_PRESSANDTAP11Feedback for a press-and-tap gesture.

Feedback, Comments & Corrections

window.WinFlashWindowMBS(Invert as boolean)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Window MBS Util Plugin 16.2 No Yes No No No
Function: Flashes Window.
Example:
window1.WinFlashWindowMBS true
Notes:
Flashes the specified window one time. It does not change the active state of the window.

Invert: If this parameter is true, the window is flashed from one state to the other. If it is false, the window is returned to its original state (either active or inactive).

When an application is minimized and this parameter is true, the taskbar window button flashes active/inactive. If it is false, the taskbar window button flashes inactive, meaning that it does not change colors. It flashes, as if it were being redrawn, but it does not provide the visual invert clue to the user.

Flashing a window means changing the appearance of its caption bar as if the window were changing from inactive to active status, or vice versa. (An inactive caption bar changes to an active caption bar; an active caption bar changes to an inactive caption bar.)
Typically, a window is flashed to inform the user that the window requires attention but that it does not currently have the keyboard focus.
The FlashWindow function flashes the window only once; for repeated flashing, the application should create a system timer.

Feedback, Comments & Corrections

Window.WinMenuHandleMBS as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Window MBS Util Plugin No Yes No No No
Function: A property to access the handle used for the menu of a Window.
Example:
dim menu as Integer // global

if menu=0 then
menu=Window1.WinMenuHandleMBS // read it on the first window
else
Window1.winmenuHandleMBS=menu // set it on the second window
end if
Notes:
Used in the example "Menu in every Window" to have a menubar in every window on Windows. But never forget to quit your app after all windows were closed.
In Xojo 2005 and newer you need to use self. in front of the method as the propertyname alone is not accepted.
(Read and Write computed property)

Feedback, Comments & Corrections

Previous items

The items on this page are in the following plugins: MBS MacOSX Plugin, MBS Util Plugin, MBS Win Plugin.




Links
MBS Xojo Chart Plugins