Skip to content

ThomasMaul/Toolbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toolbar class

Two classes to handle resizeable/responsive button toolbar. When window is large, full size buttons with title are displayed. Button groups are separated with a vertical line.

If window is not large enough, based on priority and order, title is removed and displayed as tip.

If window is still not big enough, smaller icons are used, finally two buttons are set on top of each other.

The class support buttons, buttons with alternate action (arrow beside the button) and subforms, such as Search picker.

Install

  • copy content of Project/Sources/Classes into your Sources/Classes
  • copy content of Documentation/Classes into your Documentation/Classes

Usage

after Installation use 4D's explorer and select Toolbar or Toolbar_Button class to see documentation or read here:

Toolbar Class documentation

Toolbar_Button Class documentation

Example

Too see the behavior in action, download Example It is using the "Library" demo database from 4D v17, converted to v18 R3, exported to project, then adding the classes as explained above. Finally added "small" buttons (duplicating existing 48x48 buttons and resize them to 24x24).

The "students" form was modified to use the toolbar buttons. Open, then resize the window to see the result:

Full size window: Full size window

Big window: Big window

Medium window: Medium window

Small window: Small window

Very small window: Very small window

Note

  • require 4D v18 R3 or newer
  • require your application to be in project mode

About

Toolbar button class for responsive toolbars

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages