Why is the setField code changing appearance - itext

I am using
form.setField(fm_form + "[0].Page1[0].SEXID[0]", 1 )
to set an Acrofield in a form.
Is there a reason why it is changing the appearance from round sunken radio button to square radio with check, but not consistently??

Related

Tableau: how to align text in dual axis-ed column labels

I am having trouble with label's text alignment. I used workaround to have rows coloured based on a value of certain row (featured in e.g. this tutorial); for example, if the Status is "Cancelled", it colours entire row red, otherwise it is green.
I created AGG(MAX(1)) columns for bar (with fixed range 0 to 1) and AGG(MAX(0)) columns for text (with fixed range 0 to 0), then paired them through dual axis.
However, I found out the text label is automatically aligned to the centre. I looked into text label options and set my alignment to the left (in both Edit Label window and Alignment setting) but it had no effect whatsoever. I changed Format... settings for column but once again, it had no effect.
I even tried changing fixed range on AGG(MAX(0)) columns or changing the zero in MAX(0) to some other number but this only moved centre-aligned text so it was of no use.
Here is a picture to illustrate my point:
I found out what was the issue and also arrived at better way to do it than the one I described in my question.
Here's the tutorial (using Tableau 2021.4):
Create a column MAX(-1). Right-click the column, go to Edit Axis..., set Range to fixed (start at -1, end at 0), delete the Title, and disable all Tick Marks (by setting them to 'None').
In Marks panel, set the Mark to 'Gantt Bar'.
Drop your condition for coloring (e.g. calculated field) on Color in Marks panel.
Create a calculated field MAX(1) and drop it on Size in Marks panel. This will fill out entire column width with a color bar. If needed, increase the bar width by moving the slider under Size to the right.
Drop the text value on Label in Marks panel. Now you should see text labels. If not, increase cell's height (Format > Cell Size > Taller or Ctrl+Up).
If you want a header (just like shown in my picture), create a column MAX(0), set its Range to fixed (start at 0, end at 0), disable all Tick Marks and change the Title.
Right-click the MAX(0) and tick 'Dual Axis'.
In case you'll encounter some challenges when formatting the end result, check formatting hierarchy (this tutorial may help).

Tableau: Background color based axis value

I want to color background based on axis value in tableau as in below image:
Once you have your Viz setup...
click on the Analytics Tab (top right next to the Data Tab)
drag Distribution Band onto the Viz and drop it on the Table element
set the values for the 2 band breaks (looks like ~33% and 68%)
click the 'Fill Above' and 'Fill Below' checkboxes in the middle Formatting section
click the 'Fill' dropdown and select the color palette you want
You can also create custom color palettes if the defaults do not meet your needs.

Winform - How to make 3 rows with different colors

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.

make four buttons width to fit for all screen size in swift

I am doing a sample project with size class and autolayout in swift.I have four buttons on top of the screen.How to set same width for all buttons with one pixel gap between them and make them fit for all screen size.
thanks in advance
The trick here is to make the button widths variable, but the same for all buttons. This can be accomplished like this:
Place the four buttons
Set the left margin constraint from the leftmost button
Set the right margin constraint from the rightmost button
Set horziontal distance constraints between the buttons to 1
Set the width constraints for all buttons to >= 10 (or any other
value, this makes the width variable)
Set equal width constraints on all buttons (ctrl-drag from one button to the next and choose equal width. Repeat that for all buttons)

GWT textBox with different coloured alpha numerics

I want to allow the entry of different coloured alpha numeric into a text box. The person clicks on one of four buttons (blue, grey, green or red) to select the colour and that colour applies to all alpha numeric entered into the text box until a new colour is selected (e.g., KPB - the K is blue and the PB is red; -6 is green).
Thanks,
Glyn
Hi #AndreiVolgin,
This is how I implemented your suggestion. I am working on getting the display a bit "nicer".
Thanks,
Glyn
You cannot style text inside a TextBox - even "::first-letter" selector does not work on it.
You can try to create your own widget which will include a transparent TextBox widget on top of a Label widget, where on each KeyUpEvent in the TextBox you update the Label widget with the corresponding text in different colors.