Array of buttons with different boolean text ?

I'm looking for a method of displaying a 2D button matrix with
different boolean text on each button. It seems an array of booleans
must all have the same text. Perhaps a cluster could be used, but the
array makes button alignment easy and easy to determine which had been
pressed (radiobutton style with only one button true at a time).
Steve

On 6 Dec 2002 05:31:21 -0800, [email protected] (humenik) wrote:
>[email protected] (Steve Parus) wrote in message news:<[email protected]>...
>> I'm looking for a method of displaying a 2D button matrix with
>> different boolean text on each button. It seems an array of booleans
>> must all have the same text. Perhaps a cluster could be used, but the
>> array makes button alignment easy and easy to determine which had been
>> pressed (radiobutton style with only one button true at a time).
>It's easy to make them individuals in a cluster, and on the block
>diagram use Cluster To Array to get it into array form for
>manipulation. This can be superior to an array of buttons, not merely
>because the buttons can thereby have differing colors and text. An
>array of buttons cannot have the buttons Latched When Pressed; when in
>a cluster, however, the latching action is available.
When might that Latched When Pressed behavior be useful ? Using a 2D
array of buttons (not cluster), in LV 6.1, a Value Changed event for
the array can be used as you mention below to XOR the event's OldValue
and NewValue and wire that to a local variable copy of the array.
This easily gives a radio button effect for the entire 2D button
matrix. The array control automatcially arranges the visual
alignment of the buttons.
For the cluster method, I'd like to programmatically change which
button is true. All the approaches I come up with end up using
Array-to-Cluster which then requires the cluster size to be specified.
I may end up wanting to programmatically vary the number of buttons in
both dimensions and hence the cluster size. LV's Align Objects and
Distribue Objects ends up making the button visual alignment not
difficult (for a 12 x 8 matrix).
>Try this: take a cluster of four PB's (latched when pressed) put
>inside a while loop. Initialize a boolean array of 4 to FALSE outside
>the while loop, and attach it to a shift register input on the left
>side of loop. Inside the loop, convert your cluster to an array. XOR
>the shift register with this array from the buttons, and wire this to
>the output shift register and to an indicator array. Set the boolean
>to the loop so it will run free and start it up; on the control panel,
>click on the PB's and you will see the outputs toggle.
>
>Greg

Similar Messages

  • Button with pre element text is given a container div

    Hi!
    Just installed 4.2.2.00.09 and imported a workspace and an application. Worked fine.
    I noted a page display difference when compared to the exported application (4.1.0.00.32). I have (so far) found this:
    If I have a button with Pre Element Text set to <div class="dummy"> and Post Element Text set to </div>, Apex generates an extra div around it all.
    If my button was named P1_SUBMIT I end up with
    <div id="P1_SUBMIT_CONTAINER">
    <div class="dummy"> <input type="button" value="Search" id="P1_SUBMIT" /></div>
    </div>
    Is it possible for me to turn this extra div off?
    Kind regards
    Tomas

    Hi,
    Change the "Number of Columns" setting in the "List of Values" where you define the 1,2,3,4,5 to "5", and you'll be all set.
    --Jennifer                                                                                                                                                                                                                                                                                                   

  • Array of sliders with different properties possible?

    Hello, I'd like to have an array of sliders with different properties. And since that's not possible simply by creating an array of sliders, are there any workarounds for creating what's in the attached VI?
    The reason for having an array of sliders is so that the user can add multiple elements at run-time, which is something I can't do with clusters, or can I? What about a nice scrollbar to go along with it? I'm particularly interested in the property to change the scale of the sliders so that the user can adjust the scale for each channel on its own. Since different channels are scaled differently, the sliders look a little silly when the values are especially far off.
    Thanks.
    Attachments:
    sliders.vi ‏8 KB

    You can't create an array like that, but you can create cluster that looks exactly the same (you'll need to add an event structure to handle the scrolling and you can set the controls disabled value to 2 to make it act like just like an unused array element). I can write up a working example later if you want.
    Matt W
    Attachments:
    sliders 2.vi ‏14 KB

  • Help!! Buttons with different actions on IPAD

    Why is in Ipad a button with different actions does not respond to these actions at the same time, but one at a time? In Android works fine!!
    What is happening is that in ipad I have to touch more than once on the button to go to the different actions that this button has!
    Help...

    Hi Tomas
    thanks for the quick response.  I think mine Adobe Content Viewer is the last update, from February 21, so the problem is not due to this.
    II'll explain the situation better, i have several identical situations. For example, I have a square that hides an image and I want that when you tap this square this image appears behind him, then i did the following: I selected at first the square and the image and transformed a multi- State Object, in which the first state is the box (State1) and the second is the image (state 2) then made a transparent button on top of this square and it gave the following actions - on release go to state 2 (image) here everything goes well, the problem is that as I have more buttons / squares that do the same and show different images, that when I turned the other one the next hide her image. So all the buttons in addition to the state that shows the picture / object matching (state 2) - i have also- go to state (name of the object: state 1) causes other squares hide their files, as they get the state 1. Here lies the problem, in ipad these actions do not react automatically but in different touches, it seems that it reads a touch for action and not all at once.
    I apologize for my English but I'm Portuguese, I hope you can understand everything explained.
    Marta

  • How can I set the different boolean text in the button array?

    I created the OK boolean button array. How can I change the boolean text of each button to be different at run-time? I changed one, but the others are changed also.

    > Thank you for your help
    > Unfortunately I'm a beginner of this software. Please you
    > explain me more details.
    Select the control using the positioning tool and choose
    Customize... from the Edit menu or choose it by popping up
    on/right clicking on the control and selecting Advanced>>
    Customize...
    This will open the control up in a new window -- the control
    editor window. This window allows for lots of additional
    control modifications and allows for them to be saved into
    typedefs to promote reuse and make things more consistent.
    Once in the control editor, popup on the button and select
    the menu item near the bottom Multiple Text Strings.
    Close the editor window and the first dialog will ask if
    you would like to save the change
    d file. Choose No, and a
    second dialog will ask if you would like to Replace the
    Original Control. Choose Yes.
    At this point the Button will support multiple text labels.
    To edit the True string, make the Boolean True and use the
    Labeling tool to edit the string that is visible. To edit
    the False string, make the Boolean False and use the labeling
    tool to edit that string too.
    Greg McKaskle

  • Bug? Button Appearance is changed with hidden boolean text

    I encountered the following problem with customized buttons:
    I created a button,  made label, caption an boolean text invisible, then added a picture to decal and resized the button to fit to the picture. This means, i had to decrease the width. Everyting works fine on my development machine. There is installed LV2012f3 on Win7 x64.
    When I open the VI or the created EXE on my Laptop, the Button changes in size and position. There is the same LV Version installed on WinXP 32bit.
    This problem occurred with only two of several buttons. The other buttons didn't show this behaviour.
    The pictures below illustrate this problem.
    Now I found out, that the hidden boolean text was the reason for this behaviour. Because at these two buttons the boolean text is wider than the actual width of the button, LabVIEW resizes the button when opening in a different runtime environment(?)
    So the workaround is, to delete the unneeded boolean text.
    Greets, Dave
    Attachments:
    Buttons Win7 x64.png ‏16 KB
    Buttons WinXP.png ‏9 KB

    I think the logic behind this behavior is that while the text is hidden, you could show it programatically and presumably you wouldn't want the button size to change at that point, so the text is taken into account even if it's hidden.
    Of course, you could also change the font size at run-time, which would also change the control size, so it could be argued that the control should only grow when you show the text.
    Either way, I don't think this is so much a bug as it is unexpected behavior. The argument for how it should actually behave could go either way.
    Try to take over the world!

  • Multiple copies in Adobe form with different header text

    Hi All,
    I have created Adobe form for Invoice and now my requirement is when we create an invoice it should generate 4 copies with different texts like original copy, duplicate copy and triplicate copy.
    I know its possible in samrtforms using the copy window and maintaing text there.Is it possible in adobe form , if yes how can we achieve this.
    Regards
    Lalit

    Are you using a custom driver program?
    If yes, then loop the function module with the number of copies you have.
    the copy name should be a variable which should be passed to the form in the loop change the value of the copy control accordingly.
    Please let me know, if you see any issues.
    Thanks,
    Rakesh

  • Multiple copies with different footer text --sapscripts

    Hello I have a requirement where in i need to print multiple copies( customer, company, etc). On each copy different footer text is to be printed. Can anyone help me out. Thankyou helpful posts will be rewarded.

    Hi,
    If you have a need wherein the samrtform has to have data differ for each copy of a printout
    eg. Different form title per every print copy.
    then the following code should work.
    case sfsy-copycount0.
    When 000.
    form_title  = 'Order confirmation'.
    when 001.
    form_title = 'Warehouse ticket'
    when 0002.
    form_title = 'Customer ticket'.
    endcase.
    Remember, display the element 'form_title' in a window of type 'copies window'.
    Reward if helpful.
    Regards
    Pavan.

  • Two boolean buttons with colors and text?

    HI,
    I need two boolean buttons which will represent a power switch. So one will be ON and one will be OFF, but I need the text to be right on the button and I also want the buttons to switch colors. I have found only one or the other property (text on button or color) but not both on the pallette. Am I just not looking at the right buttons/properties? Please recommend what I should be using. (i.e. when ON is depressed I want it to be green, and OFF to be grey and viceversa)

    Programatically, there are two attribute nodes, one of them is strings, which will accept an array of 4 strings, being the following:
    1-OFF state
    2-ON state
    3-ON to OFF state (when latched or switched until release)
    4-OFF to ON state (when latched or switched until release)
    The other attribute is Colors, which is composed of an array of clusters of two numeric or color constants(controls):
    1-OFF sate foreground and background
    2-ON state foreground and background
    3-ON to OFF state foreground and background (when latched or switched until release)
    4-OFF to ON state foreground and background (when latched or switched until release)
    Hope this helps

  • Lowpass filtering an array of waveforms with different cutoff frequencie​s

    I'm trying to take an array of waveforms and have seperate filter settings for each individual waveform. For example, I want to have a 2 hz cutoff frequency on my thermocouple inputs and a 100 hz cutoff frequency on a strain gage input.
    When I try to accomplish this using the Butterworth filter (as shown in the image) I get weird results. The VI seems to be setup to only handle 1 waveform at a time. If I set the init/cont to F for init, the beginning of each waveform segment is reset to 0 which wrecks the data files. If I set the init/cont to "T" for continuous, the data is completely wrecked because the waveforms are interferring with each other.  Clearly this VI is not setup for muliple instances (for use in a for loop).
    There are the Waveform filters, but I seem to only be able to use 1 cutoff frequency for the entire set of waveforms.
    In the subVI image below, I input an array of waveforms into a for loop with the settings collection for each channel (element in the waveform array). I pass the cutoff frequency to the butterworth filter with the Y data array from the segment of the waveform.  Waveform data is supplied continuously (I need a live data filter).
    Thanks for your input.
    Attachments:
    Filter applied to multiple waveforms.png ‏17 KB

    You are correct (about the true/false on the cont/init input).  Not sure I follow what the help is saying to do...
    Is there anyway to verify the number of instanced "Filter Duplicates" are running? I'm still having a lot of issues with my implimentation and I'm wondering if I'm not initializing everything correctly.  I've even added a button that should push a new re-initialization.  I'm trying to have an interface that allows the user to turn off and on the filter while data is be aquired.  Here is some of my code that I'm using to try and accomplish that, but after I've enabled the filter on multiple waveforms and hit my "re-initialize" button I still get bizarre data artifacts (like spikes) that would not be indicative of data on the other side of a low pass filter.  Thanks for any additional feedback.
    I've modified your Filter Duplicate to have an "Enable" feature so that the waveforms that I do not want any filtering of are just passed through.
    I've tried to re-create the functionality of your Test multi-filter VI Server, but with the added boolean option to not have the filter performed:
    So when "True" is on init/cont input the VI is re-open by VI server and the true signal propagates to the Filter Duplicate Asynchronous call.  Here is a snippit from my main window call:
    Lastly, here is the noisy data I'm dealing with:
    Here is the data after I apply a 5Hz filter to each one:
    Clearly data from one is being imposed on the other.  Hitting my "re-initialize" button to send a "true" signal through doesn't fix it.  How can I verify that my filters are working independently as desired?
    Thanks!

  • Two buttons with different ids keep overwriting eachothers onclick

    My flex app has 2 different states ('Employee Results' and 'Place Results') all based on one original base state (so three total)
    I have a search button called searchbtn on one view state.
    I have a search button called searchbtn2 on another view state.
    They both are in their own unduplicated control bars, meaning I didn't copy and paste from one screen to the other.
    I have assigned an onclick event of currentState='Employee Results' to the searchBtn.
    I have assigned an onclick event of currentState='Place Results' to  the searchBtn2.
    The problem is this.
    When I assign the event to the searchBtn it works.
    When I go to the next view state and assign the event to searchBtn2, the searchBtn is overwritten with the same onclick that is in searchBtn2.
    Why is this happening and how do I get around it?

    Sorry.  It was the way I was nesting things.  I had forgotten some closing
    tags.
    Thank you!
    The soul of a journey is liberty, perfect liberty, to think, feel, do just
    as one pleases.
    William Hazlitt, "On Going a Journey," 1822

  • Two buttons with different colors

    Hi,
      I am very new to the Web Dynpro. I have placed two buttons in my web dynpro application. What to want to change the first button color to RED and Seond button color to GREEN. How to do this?

    Hi Praveen,
    We have very limited options while changing the colors of the UIElements in WebDynpro.
    There is no direct way to change the color.
    For the Button UIElement we have a property called Design.
    You can set the property value to "emphasized" or "standard" to get different look & feel.
    Or Check the following article by Bharathwaj
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/colourful webdynpro applications.pdf
    Regards, Anilkumar
    Message was edited by: Anilkumar Vippagunta

  • Options to move your tool bars above the tabs? And options to shade tabs and buttons with different colors?

    In this version my tool bars are below my tabs, I like my tabs directly above my page. And in this version the tabs are almost see through which is fine except it would be cool if we had an option to change the color of them you could still keep them almost see through but let us add a tint of color to them, as well as add color to the other buttons in the browser bar.

    Thank you, I appreciate your answer. I did however figure that one out myself actually immediately after I asked the question. But you are correct.

  • ¿Custom button with different size/shape for rollover state in Muse?

    Hello, i'm trying to make a custom button, that has one size/shape when normal, and other size/shape when rollover.
    The problem is that the area not visible in normal state is a hot area, so when then mouse rollover anywhere near, activates the button rollover state.
    So i think what i need is mask or something like that
    Is there a work around to do this? Is even possible in normal CSS - HTML5?
    Here is the website:
    http://www.audime.com/prueba/
    And here what i'm talking about:
    Thanks in advance!

    I'm not fully understanding the screenshot, but what you're describing sounds more like a Composition:Tooltip widget than a button.

  • Array of buttons and Event Structure

    I have a the same problem... I was wondering if you were able to find a soln.
    I have literally thousands of buttons and each button as a unique key code and unique name.
    For Example :  
    Button Name    – Key code #
    PUSH              - 1
    POP                 - 2
    PULL               - 3
    The way I program this simple algorithm is deadly painful. 
    1)      I create 1000 buttons by going to control->buttons.
    2)      Then I have to go through one by one to change the Boolean text to “PUSH,POP,PULL…”  
    3)      Then used the Event Structure, adding in all the controls names “PUSH, POP, PULL..” In side each event, I placed the key codes “1,2,3..”
    I have search and tried for weeks to find a better way, and still nothing comes to mind.  
    Please help.

    Hi Ben,
    Thank you for your reply, I have attached my try_code and a picture of the code I currently have.  I  am new in Labview, but I am confident that, there must be a easier way to make an array of buttons with different button name and an associated number to that button.  
    The 1st file, is to show you want I am currently doing, (painful)
    The 2nd file attached is some of the things i tried, I had great hope with my try_code, array_jan25.  But I couldn't get it.  I think I am very close.
    Thanks again,
    Attachments:
    ThePainfulWay.doc ‏63 KB
    Array_jan25.vi ‏42 KB

Maybe you are looking for