Model Railroad System  2.2.2
Functions
LabelSelectColor Namespace Reference

This package provides a BWidget style megawidget for selecting colors, in the same style as a LabelEntry widget. More...

Functions

 create (path,...)
 Creation procedure. More...
 
 ColorPopup (path)
 Procedure bound to the palette button to select a color. More...
 
 configure (path,...)
 Configuration procedure: configure one or more options for this widget. More...
 
 cget (path, option)
 Configuration option accessor procedure: access one option directly. More...
 
 _path_command (path, cmd, larg)
 Path command for this megawidget. More...
 
 _destroy (path)
 Destructor function. More...
 

Detailed Description

This package provides a BWidget style megawidget for selecting colors, in the same style as a LabelEntry widget.

This megawidget includes resources from the LabelFrame, Entry, and Button widgets.

Parameters
pathnameWidget pathname.
...Options:
  • -labeljustify From LabelFrame (-justify).
  • -labelwidth From LabelFrame (-width).
  • -labelanchor From LabelFrame (-anchor).
  • -labelheight From LabelFrame (-height).
  • -labelfont From LabelFrame (-font).
  • -labeltextvariable From LabelFrame (-textvariable).
  • -label From LabelFrame (-text).
  • -selectcolorfg From Entry (-foreground).
  • -selectcolorbg From Entry (-background).
  • -text From Entry.
  • -buttonfg From Button (-foreground).
  • -buttonbg From Button (-background).
  • -buttonactivebg From Button (-activebackground).
  • -buttonactivefg From Button (-activeforeground).
  • -buttondisabledfg From Button (-disabledforeground).
  • -buttonhighlightbg From Button (-highlightbackground).
  • -buttonhighlightcolor From Button (-highlightcolor).
Author
Robert Heller <heller@deepsoft.com>

Package provided

LabelSelectColor 1.0

Function Documentation

◆ _destroy()

LabelSelectColor::_destroy ( path  )
private

Destructor function.

Parameters
path– The path of the megawidget.

◆ _path_command()

LabelSelectColor::_path_command ( path  ,
cmd  ,
larg   
)
private

Path command for this megawidget.

Implements all of the megawidget commands.

Parameters
path– The path of the megawidget.
cmd– The command name.
larg– The command argument.

◆ cget()

LabelSelectColor::cget ( path  ,
option   
)

Configuration option accessor procedure: access one option directly.

Parameters
path– The path of the megawidget.
option– The option to access

◆ ColorPopup()

LabelSelectColor::ColorPopup ( path  )

Procedure bound to the palette button to select a color.

Parameters
path– The path of the megawidget.

◆ configure()

LabelSelectColor::configure ( path  ,
  ... 
)

Configuration procedure: configure one or more options for this widget.

Parameters
path– The path of the megawidget.
...– Option value pairs.

◆ create()

LabelSelectColor::create ( path  ,
  ... 
)

Creation procedure.

Parameters
path– The megawidget's path.
...– Options for this widget.