Tuesday 15 January 2013

uitableview - Generating Transparent Box outside of Axes in Matlab GUI -



uitableview - Generating Transparent Box outside of Axes in Matlab GUI -

i developing set of guis in matlab (w/ guide) automated info post-processing. info displayed in set of axes, while button allows user "shift" through various datasets (1 @ time). table (located below these figures) illustrates characteristics of all existing datasets.

i able highlight relevant set of info in table corresponds displayed figure (i.e. row w/in table). there way either alter background color of row within table, or place transparent, colored rectangle on row? (the "rectangle" command doesn't work, applies areas within axes objects).

thanks help,

colin waldo

do understand want able highlight single row in uitable?

you can customising backgroundcolor property:

f = figure; info = rand(5); colnames = {'x-data', 'y-data', 'z-data'}; t = uitable(f, 'data', data, 'columnname', colnames, 'position', [20 20 260 200]); % highlight row 3 bgcolor = ones(5,3); % needs same size number rows. bgcolor(3,:) = [0 0 0] % highlight row 3 t.backgroundcolor = bgcolor t.foregroundcolor = [1 1 1] % set foreground color same main background

matlab uitableview user-interface

No comments:

Post a Comment