How could I change max and min values in control "fill slide" by code?
Here is my program and it should take max and min values from CSV file and change scale range in fill slide's properties. How could i get access to fill slide's properties?
https://drive.google.com/file/d/0B7eFfQuRzPgASHQtNTY0LVpmY0k/view?usp=sharing
In the diagram, right click on the control and create a property node. Select the Data Entry Limits property, min and max can be set. The property node must be writable to set properties.
after creating property node, right click on it, choose Properties, Scale, Range, and Minimum (or Maximum) to set the visible data range for the fill slide. Let me know if you need more help.
Related
I want to use a word macro to set the position of the shapes in the document to book layout (see screenshot). But I can't find any reference which member I need to set for this (probably because my word is in german and this is called differently in the macro).
Can anyone tell me how to set the horizontal layout of a shape to book layout in vba?
[update] The following did the trick:
Shape.Left = -999994
Shape.LeftRelative = -999999
Shape.RelativeHorizontalPosition = wdRelativeHorizontalPositionMargin
In the most recent versions of Word the macro recorder gives no help for graphical objects. The next best thing you can do is to look at the properties available for the object in the Object Browser (F2).
If a graphical object has "text wrap" formatting then it belongs to the Shapes collection, so the list you need to look up is that of the Shape object.
In there you'll find the property RelativeHorizontalPosition, which takes a member of the WdRelativeHorizontalPosition enumeration. Looking at that list there are a number of options, none of which has "book" in it.
So the next step is to insert and format a Shape with the desired positioning. Then in the Immediate Window (Ctrl+G) you can type:
?ActiveDocument.Shapes(1).RelativeHorizontalPosition
Then press Enter. This will print a number that corresponds to the list of Enumeration members.
You can also test the effect of the various members by assigning them in the Immediate Window:
ActiveDocument.Shapes(1).RelativeHorizontalPosition = wdRelativeHorizontalPositionOuterMarginArea
Press Enter.
What you'll see is that there is not an enumeration member for every option in the dialog box. And that various positioning options in the dialog box correspond to a single enumeration member.
For your specific question, wdRelativeHorizontalPositionInnerMarginArea corresponds to the dialog box option you indicate.
ActiveDocument.Shapes(1).RelativeHorizontalPosition = wdRelativeHorizontalPositionInnerMarginArea
Besides the above, you need to use the LeftRelative and Left properties, as well. Take a look at those settings in the Immediate Window after using the dialog box and play with them, putting the image on odd/even pages.If it disappears - it's off visible portion of the page, which you can see in Reading View. In a nutshell, you need the NEGATIVE numbers to lock the image to the margin or page side. Positive numbers position it absolutely.
When a user changes the selected item on a dropdown I need to get the PREVIOUS item selected,
EX:
dropdown items:
1) Questions
2) Jobs
3) Tags
4) Badges
User has #2 Selected and then changes to #4 -- How can I get the value of #2 when they change the selection?
Declare an instance variable in your form (WinForms) or window (WPF).
When a user selects an item:
Do what you want to do.
Save the current item index in the instance variable.
In step 1, you can now access the instance variable to get the previously selected item.
Declare a global variable that will contain the previous value.
When the user changes the selection in the combobox, set the variable to the currently selected value. Allow the selection to be changed. You now will have the previous value.
If you need to have the history of changes, then the global variable would be a collection. Then on changed event, add the current selection to the collection.
If your control is bound to data, there is no need to "Squirrel" the old value away, your data provider usually does this for you.
For example, if you are bound to a DataRow, this code will get the previous value.
? = [Your DataRow].item("[Your column name]",OrigialVersion)
This varies based on your data but ultimately, you could always re-query the database to get the original value as well.
Regardless of what you are bound too, if you ask the datasource for it's value during the Validating event of the control, it will have not changed yet so it will give you the old value, which you can then compare against the current selection.
Lastly, if you are not bound to data, I typically store the old value in the TAG property on the GotFocus event of the control. Then you can compare against that.
Hope this provides some other options that might help you, depending on your case.
I want to remove/hide this row (in orange) from the grid, I don't know what this row mean.
Thanks.
I see that the auto filter row feature is enabled on you screenshot. This feature row allows data to be filtered on the fly - by typing text within a row.
To disable this feature set the GridOptionsView.ShowAutoFilterRow property to false.
You can also restrict this option from activating by end-user via hiding the "Show Auto Filter Row" check item within the Column Header Context Menu. To do this, just set the GridOptionsMenu.ShowAutoFilterRowItem property to false.
Please advise (syntax) on how to reference a text object in QlikView to pick its value.
My object is called: TX1, it is a text box and it is defined like this:
=SUM( TOTAL Income)
Why do I need this?
I have a chart with Persons as a dimension, and the expression should calculate each person's income/total income.
The total income needs to be taken from that textbox with alternate state so it remains unaffected by the filter selections (or the dimension that forces total income to be seen as total income belonging to each person).
Thank you.
Any selections you make in your dashboard will have an effect on relational data shown within a text-box.
You can, however, store the initial value of your expression and keep it for later use.
Create a variable called vInitialSum or something, and set it upon opening the document. You'll then have the untouched (unfiltered) value of =SUM("Total Income") to use at your disposal.
Add the trigger in Settings > Document Properties > Triggers > OnOpen:
Just use this:
SUM({1}Income)
The "{1}" tells the formula to ignore any selections and calculate on the full data set. For more details, see "set analysis" and "set modifiers" in the help.
I'd like to use increment/decrement buttons in numeric control field to quickly span wide range of values. In order to do this I would like increment/decrement buttons to work as multiply/divide by constant.
One example would be to choose resistor values. In order to choose values in E12 series one would start with 1 and multiply it over and over by 10^(1/12). 12 being how many values per decade you need.
Is there a way to change the function of up/down buttons or do I need to write my own control?
Keeping it simple, just have the numeric control as an integer (say N), and wire up 10^(N/12).
You can do this by listening to "Value changed" event, that detects if increment or decrement was used, and force the appropriate value:
LabVIEW 2010 example VI
If you want the user to choose from a fixed list of values like the E12 resistor series, consider using a ring or enum instead of a numeric control (the list in a ring can be changed at runtime, the list in an enum cannot). Use the value of the ring or enum to look up the numeric value from an array.
If you want the user to be able to type an arbitrary value in the numeric control but also use increment/decrement buttons to scale the value upwards or downwards, you could use a numeric control whose increment/decrement buttons are visible but hide the numeric entry field behind a second numeric control with no buttons. Use the Value Changed event for the hidden control as shown in CharlesB's answer to update the value in the visible control when the user increments or decrements the hidden control.