Let's say I have 4 lamps, initially, they are all in gray color.
After running the app, a user should be able to select the lamp/lamps that he wants to change their color to green.
The user selects the lamp/s and presses the button and the selected gray lamp/s turns into green.
What came to my mind to solve this problem is creating a 2*2 "table" and inserting the lamps inside of the table. Then accessing lamps through their positions in the lamps, but it seems like you can't use the "table" in this way.
So my question is, how can the user select lamp/s? Is there any way to press on the lamps in the Matlab appdesigner?
Related
I'm having trouble making my 2 crountry "graphics" to work the same way.
Let me explain.
First I have my SS here of how it is in the begining.:
before I click in some UF to filter both of them
Then I have an SS After clicking in some UF:
After clicking some UF
If you notice, the bellow figure (green one) have all UF's in both SS's, when I click in one to filter it, some UFs become shadows and the one I clicked become Highlighted...
But the above figure(red one) Before the filtering are all the same green and red.
after I click in some UF in green all the other ufs in red disapear, the scale became one single color.
I need to make the red one to work the same way as green one, shadowing the other UFs, highligthing the UF I clicked in the green one.. (Or vice-versa, since I can filter by red or green) and the scale to don't change.
Is it possible to do what I want?
How can I do it?
A friend of mine says it might be because the filter is being aplied before the complete sample enter the "graphic" making it only see the filtered UF(STATE)
Definitely check your filters. In your red example, once you select a state, notice how the color legend only reads one value. So the act of clicking it, is triggering a filter for only that state. Whereas your green example, it only shadows out the others, so no filter is engaged.
So I have a grid in Zkoss with a certain amount of columns. One the first row I place two labels which fill the first two columns (as expected).
I've written their style so that they don't have change color when you hover the mouse over them however one of the columns label is much bigger than the other and when I hover the mouse over the smaller label the area around which isn't filled by the text goes to white.
ZKFiddle example
I'm going insane around this as I'm simply unable of making that area have the same background as the label.
Like I already said in your duplicated question.
CSS is responsible and you just need to search with developer tools.
This update to your fiddle tooks me 2 min.
The changed thing :
.z-row:hover > .z-row-inner, .z-row:hover > .z-cell {background:red; !important}
I have 2 dimensions (one is BUG_ID, the other is severity).
I have defined a specific color for each possible severity (blocker == red, normal= orange...)
I am using a table and I want to color the BUG_ID dimension value (the text) according to the color defined for reach severity for example:
I have tried several things but cannot figure out how to do it.
Any idea ?
Generally Tableau is a data visualisation tool, so if you want to create graphs of any kind it's great. If you want to create a table and format text, stick to Excel!
You can drag all dimensions you would like to have in the rows shelf. eg: [Description] and [Status]. Now you can drag the [BUG_ID] onto "Text" in the Marks pane. That will display the bug ID, but it will be on the right of all other dimensions. And you won't be able to change it.
To color it, just drag [Severity] onto colur and choose the colors you want.
I am trying to make a Form with 3 rows, and make one of the rows with differnet color. The thing is when I try it, the row is not fully color`d, and the edges get the default background color.
Example:
http://puu.sh/i910v/51a6e5699a.png
How I want it to look like:
http://i.stack.imgur.com/fv2Rj.jpg
You could set the BorderStyle property of the form to None. This will remove the borders and the title bar, showing only the client area on which you are painting.
However to get the X (close) button at the top right, you'd have to place a button there yourself and close the application when pressed.
In my current project I have a bunch of edit text boxes in my gui. When I/m in the first text blank and hit the tab key it skips to the third text box, when I hit tab again it goes to the second box. Every time I hit tab it jumps around in this weird order. I found out that the order is dependent on the order of the callback function for each text box. Without going in an copy pasting and changing around the code that gets generated by guide is there a better way to order my text boxes.
So for example when I'm in the box red x and hit tab it takes me to the box red z, than red y than green x then green z. I want to be able to click red x and then using just tab step through and fill out the other blocks. Is it at all possible to re-order?
GUIDE-generated GUI
When using GUIDE, you can simply use the "Tab Order Editor". Get to it using the following menu item:
For this simple GUI, with a single button and two text boxes, you would see the following dialog box:
Then set the tab order by moving UI objects up/down.
Programmatic GUI
To set the tab order programatically, you can use uistack to reorder the handles.
For example, to move a uicontrol "up" one in the order:
uistack(hui,'up',1)
To see the order of the handles to all controls in figure hf:
ch = get(hf,'Children')