The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: jumping directly to uisetcolor "more color..." tab
Replies: 3   Last Post: Dec 2, 2012 4:23 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 11
From: Netherlands
Registered: 9/24/07
jumping directly to uisetcolor "more color..." tab
Posted: Nov 29, 2012 6:01 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


I am exploring uisetcolor. How can we set control such that when I press color selection button (such as the example below) the color picker opens automatically Swatches (or HSB, or RGB) tab under 'More Color...'. I dont want to use the default swatches which has limited colors, because then the user has to switch to More Color... every time, which make them annoyed/bored/lose patience with my experiment.

Thanks all.

function test
uicontrol('Parent',f,'Style', 'pushbutton',...
'Position', [0 0 130 30],'String','Color',...
actxcontrol('OWC.Spreadsheet.9', [150 150 300 300],f);

function color_Callback(hObject, eventdata, handles)
c = uisetcolor(c1, 'Entity color');
disp('HALLO') ;
if sum(c1==c)<3

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.