PPJ Manual
HomeCurrent IssuesDownloads
  • Welcome
  • Releases
    • PPJ 2023
  • PPJ 2023
  • PPJ Web API
  • PPJ Desktop API
  • Wisej.NET Documentation
  • General
    • Framework
      • Features
        • SAL and SQL Functions
        • Constants and Variables
        • SalContext
        • Visual Toolchest
        • XSal2
        • Reporting Support
        • LINQ Support
        • SalCompileAndEvaluate
        • Unicode Support
        • Startup Arguments
        • App.config
      • Data Types
        • Automatic Casts
        • Dynamic Arrays
      • Controls
        • ToolBar
        • TabControl
        • TableWindow
        • QuickObject
        • Ribbon Bar
        • NavigationBar
      • SQL Support
        • Configuration
        • ADO.NET Drivers
        • Bind and Into Variables
        • DBP Parameters
        • SqlContext
      • Extensions
        • Table Window
        • Unicode Support
        • Bug Fixes
        • Object Oriented Types
        • Custom Parsers
        • Named Properties
        • Microsoft Charts
        • Tabbed MDI
        • Watermark
        • HTML Rendering
      • Skins and Themes
        • Skin Files
        • Theme Files
        • Configuration
        • Skin Editor
        • Theme Builder
      • Tracing
        • Trace Viewer
        • Default Listeners
        • Tracing the Application
      • Spell Checker
        • Dictionaries
    • Ported Application
      • Project Structure
        • Late Bind Calls
        • Visual Styles
        • Unqualified References
        • Message Actions
        • When SQLError
        • Classes
      • Global Items
      • Forms
      • COM/ActiveX
      • Multiple Inheritance
      • Configuration Tool
      • Issues & Workarounds
    • Ported Reports
      • General
      • Crystal Reports
        • Structure
        • Unsupported Features
      • List & Label
        • Report Conversion
        • Structure
        • Document
        • Input Items
        • Passing Data
        • Unsupported Features
      • Reporting Services
        • Features
      • Stimulsoft
        • Break Groups
        • Fields
        • Formulas
        • Cache Mode
Powered by GitBook
On this page

Was this helpful?

  1. General
  2. Framework
  3. Controls

ToolBar

PreviousControlsNextTabControl

Last updated 2 years ago

Was this helpful?

The default toolbar control (accessory in the form) is enhanced to support Windows Visual Styles and to look like the ToolStrip controls in WinForms without having to rewrite the code that relies on the ported controls.

It is enough to set the two new properties of the ToolBar control to automatically upgrade the look & feel of the toolbar and all the buttons that are contained.

The typical look of the toolbar using the default Visual Style mode is shown below:

Normal toolbar

Setting the UseVisualStyleBackColor property of the ToolBar control to true, enables the enhanced background painting and the toolbar looks like the image below (depending on the color scheme):

To change the appearance of all the buttons on the toolbar to look like a ToolStrip control, set the Appearance property to Flat. When the Appearance = Flat and UseVisualStyleBackColor = True, the toolbar control looks like this:

XSalToolBars

The same effect is supported in XSalToolBars by setting the static properties in XSalToolbar as:

XSalToolbar.UseVisualStyleBackColor = true;
XSalToolbar.Appearance = ToolBarAppearance.Flat;
Toolbar with enhanced background
Toolbar with enhanced buttons and background
XSalToolbar with enhanced buttons and background