back to gui 

wxColourDialog

generated from ../src/mod_gui/control/coldlg.cpp

The wxColourDialog presents a colour selector to the user. See also wxColourData. The following sample shows this dialog:


    wxTheApp.onInit = function()
    {
      clrData = new wxColourData();
      // Set the selected colour
      clrData.colour = new wxColour(0, 0, 0);

      // Set a custom colour
      clrData.customColour[0]  = wxRED;
    
      dlg = new wxColourDialog(null, clrData);
      dlg.title = "Select a colour";
      dlg.showModal();
      
      return false;  
    }
  

Constants

Constructor

wxColourDialog

wxColourDialog(Parent, 
               ColourData)
 
Name Type Default Description
Parent wxWindow The parent of wxColourDialog.
ColourData wxColourData The colour data.

Constructs a new wxColourDialog object

Properties

Name Type Description
colourData read only wxColourData Gets the colour data.


SourceForge.net Logo Support This Project

Table of Contents

Prototype

wxDialog

Constructor

wxColourDialog

Properties

colourData


Design downloaded from Zeroweb.org: Free website templates, layouts, and tools.