UI Buttons Bar

Create user interface push buttons, with a wide variety of customizability. From color to curvature the UI push button has you covered.

Building a Button Object

 Creating an Button Graphical Object To create the button you must first generate the structure through funBuildo function

 

s = funBuildo('button',Tag,Position,...)

 

 Several Button funBuildo Structure Properties
Note: There are over +15 fields, not all are covered here

Field:        Page

Type:        character vector 

Purpose: The page defines which page the button object will be defined on.                   To specify the page the user may use the menu bar.

default:    page is set to 'Home'.

Field:        Curvature

Type:        Double between the domain [0,1]

Purpose: Defines the curvature of the button, 

default:   Curvature is set to 1.

Field:        FontSize

Type:        Double

Purpose: The Font size of the text displayed for the x-axis, and y-axis titles, 

default:   FontSize is set to '8'.

Field:        Color

Type:        1x3 vector with elements between 1 and 0, or defined string

Purpose: Defines the Button color of the button normally.

default:   Color is set to [0.1490 0.7608 0.5059].

Field:        Highlight

Type:        1x3 vector with elements between 1 and 0, or defined string

Purpose: Defines the Button color of the button with mouse hover.

default:   Color is set to [0.1639 0.8369 0.5565]​.

 

Field:        CColor

Type:        1x3 vector with elements between 1 and 0, or defined string

Purpose: Defines the Button color of the button when clicked

default:   Color is set to  [0.0298 0.1522 0.1012].

After you have created the structure you may generate an object with it by calling the funControl function:

 

handles = funControl('button',handles,s)

 

Once you have loaded the structure the object has been uploaded. There are several dynamic methods you may perform on the object returned in handles. Such as.

 

 

obj = handles.(Tag); % pull object from handles

handles.(Tag).String = string; % switch display string on button

handles.(Tag).Visible = 'off'; % turn visibility off

handles.(Tag).Visible = 'on'; % turn visibility on

 

© 2018 by Alex Geiger

  • Facebook Social Icon
  • LinkedIn Social Icon
  • Google+ Social Icon