problem with changing the order of tab on tab control

Hello

I am aware that the same question has been asked over three years - but I can't yet find the problem in what I'm doing...

Description: I have two controls tab, A tab with three tab and tab B with two controls on a Panel. For the following discussion, tab B is of no interest. Each tab control has several numerical indicators, of type integer and double. Now, I want to add a fourth tab control to A tab. This method works.

Following and problematic stage, in the Publisher of the IUR I select the new tab (most right) and move two positions to the left. It's still ok until I try to display a numeric value of order of tab 3 (the new tab control is left to it). I get an error in calls to SetCtrlAttribute, complain about an invalid control ID... However, I didn't touch any control over the tabs, or add a new control. In addition, I did not touch the generated include file... Visual inspection did not show any changes in the include file (the new tab control is listed only when certain controls are added)

Posting numbers on the first/far left tab control work only on 3 and 4 which are suitable for the new (and still empty) new tab will generate this error. Adding a control to the new label does not change the bahavior.

Help is appreciated!

Wolfgang

Wolfgang,

When you get the handle for your tab using GetPanelHandleFromTabPage:

GetPanelHandleFromTabPage (MainPanelHandle, PANEL_TAB, 0, & TabHandle);

the third parameter is an index for the specific tab you want to address.  If you change the order of the tabs, you can change the index, too.  For example, assume that you have a digital control on the third tab from left to right.  You want to assign some value, so this, you:

GetPanelHandleFromTabPage (MainPanelHandle, PANEL_TAB, 2, & TabHandle);

SetCtrlVal (TabHandle, TAB_numMyNumeric, 1);

Now, you add a new tab to the left of the tab with the digital contorl.  The new tab is now index 2 and the original tab is index 3.  When you call:

GetPanelHandleFromTabPage (MainPanelHandle, PANEL_TAB, 2, & TabHandle);

you get the handle to the new tab.  There is a control with the same ID as TAB_numMyNumeric, so that you get a runtime error.

Personally, I like to use an enumeration to my tabs so I can keep the lines:

enum {MY_FIRST_TAB, MY_SECOND_TAB, MY_THIRD_TAB,...};

So if I redesign the tabs or add a new one I just re - order enums and everything works fine.  Also, I used the same names in my constants of tab, to help keep things straight:

GetPanelHandleFromTabPage (MainPanelHandle, PANEL_FIRST_TAB, MY_FIRST_TAB, & TabHandle);

Tony G.

Tags: NI Software

Similar Questions

  • WRT54GS - problem with changing the router IP

    Here's my problem: I want to change the IP Address of the router (and subnet) to 192.168.1.1 to (for example) 192.168.28.1 (long story).  I can do it on the base of the router configuration page.

    I have a desktop with a fixed address configuration: 192.168.28.90, subnet mask 255.255.255.0, default gateway and preferred DNS server: 192.168.28.1.  Three laptops get dhcp addresses.

    Access to Internet is fine, but local communications on the local network no longer work: shared folders are not accessible, and I can not ping to one local PC to another. (But I can ping anything on the web)

    When I'm back at 192.168.1.1 all is well again.

    Someone at - it includes what is the problem?

    Thank you.

    It is most likely a problem of computer software firewall.

    To resolve the issue, reset the router to 192.168.28.1, then power cycle your network, verify that your Internet connection works on all computers.  Then go into the computer on each computer software firewall and set it to "trust", other computers on your network.

  • Are there problems with changing the IP address of a system of v5.3 ACS after the initial Setup?

    I'm migrating from ACS v4.2.1 to v5.3.  I want the final v5.3 system to assume the IP address of the machine 4.2 of origin so I don't have to change any configs on network devices.

    Are there problems with the change of the IP address of the system AFTER the initial installation v5.3?

    I tried without problem. I changed the ip address of the WLC several times.

    You must ensure that:

    1-) you change the switchport accordingly to the appropriate vlan if the new ip address belongs to a subnet of a vlan different.

    2-) make sure that all clients AAA configured to use the new IP address of the ACS servers.

    Here is the procedure how to change the ip address of the interface (according to the doc of cisco):

    http://goo.GL/0BYqVT

    I also changed parIP normal address and it works. but of course, the server must be autonomous before doing this step (i.e. no secondary ACSS registered to him and he is not on the other ACSS in a distributoin).

    HTH

    Amjad

  • change the order of tabs

    Hi guys
    Nice to be back. I have a form on a site semi-manufactured. The layout (asp, vb, DW 2005) allows me to simply take down fields, so that they are in two columns. When I got the tab, the focus jumps before horiziontally vertically. is there a way/extension to work around this problem and allow me to specify an order of "tab"?

    Thank you
    Andy

    Hey, thanks everyone. I really appreciate it, as always.
    Middletree, your code is very welcome, but I don't think that my fields anyt'ing will depend on other parameters (although I considered).
    I'll check in tabindex carefully this weekend.

    Andy

  • Problem with 'Display the resources' - Summary tab

    Hello forum!

    I am with a problem, it is not critical, and I think that it is simple to solve. I have 3 servers ESXi 5.1, and I got these 3 with vCenter. When I try to check the memory and processor in the Summary tab, 2 servers show me 0% (see attached), only 1 of the 3 show me the correct information. If I use a simple vSphere client, that is to say, one by one, the memory and CPU is OK, the Summary tab.

    Can someone help me with this?

    THX!

    Hello and welcome to the community,

    Depending on your version of build you ESXi 5.1, and you must update your ESXi 5.1 U1a.

    Check this kb for more information:http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2038686

    Kind regards

    Julien.

  • How can I change the order of songs in my list "to the top following" of Apple's music with the 10 iOS?

    Thanks for your help guys! :-)

    Hey Aktivoli,

    If I understand correctly, you use the Apple music app and want to change the order of the songs until the next.
    I recommend reading this article, it explains how to change the order in the Apple's music library and playlists.

    Swipe up on reading to display your queue up next, that lists all the songs that you have selected for the current playback.

    Drag the songs with to rearrange the order, or swipe to the left to remove a song you want to ignore.

    Use of music Apple in the music - Apple Support application

    Thank you for using communities of Apple Support. Have a good.

  • How can I change the order of open tabs?

    I currently have about a dozen tabs open, most need to be read in a particular order. Is it possible to change the order of these tabs? If not, hang a tabs without sliding laterally could become a method of 'release' of the selected tab, allowing it to be moved to the top or to the bottom of the list (I think that it looks like a good and especially easy and possible future addition to the app).

    Thanks for your time,
    Adam

    Adam, unfortunately at the moment it is not a feature of Firefox for Android. To move tabs, you will need to close and open them in the order you want them to appear.

    If this is a feature you want, however, I would recommend leaving your comments on this matter in input.mozilla.org.

  • How can I change the order of the elements in the "open with" context menu?

    I'm working on XP Prof SP3 and to change the order of the "open with" context menu.

    I like to make the most of my photos, I crop them optimal detail using a specific program for this. This program, I can access by right clicking on the photo icon by pressing H, to open the framework "open with" menu and then I have to scroll down to 6th place.

    You can imagine that if you do this for a series of hundreds of vacation pictures, you are quickly tired.

    Is there a way how I can change the sort order in the "open with" context menu, because the removal of everything seems not a too good idea.

    Is there anyone out there who can help me?  I thank in advance.

    Michael

    I'm working on XP Prof SP3 and to change the order of the "open with" context menu.

    I like to make the most of my photos, I crop them optimal detail using a specific program for this. This program, I can access by right clicking on the photo icon by pressing H, to open the framework "open with" menu and then I have to scroll down to 6th place.

    You can imagine that if you do this for a series of hundreds of vacation pictures, you are quickly tired.

    Is there a way how I can change the sort order in the "open with" context menu, because the removal of everything seems not a too good idea.

    Is there anyone out there who can help me?  I thank in advance.

    Michael

    This utility is supposed to do what you want, but I have not personally tried:http://www.lopesoft.com/en/fmtools/info.html

  • I created a 'film' in Windows Movie Maker with audio. I'm now trying to burn on a DVD in windows DVD creation, but the program will change the order of my photos. What I am doing wrong?

    I took pictures of a Picasa folder and created a "slideshow" with audio in Windows Movie Maker. It's over, but when I try and save it to a dvd using windows DVD create, change the order of my photos are randomly. Am I missing a setting? What I am doing wrong?

    It may be interesting to try to publish (Save) project in the. Film WMV
    format in a folder on your hard drive. Then import them. WMV file in
    Creating Windows DVD.

    Windows Vista - publish a movie in Windows Movie Maker
    http://Windows.Microsoft.com/en-us/Windows-Vista/publish-a-movie-in-Windows-Movie-Maker

    Movie Maker Vista - Edition
    http://www.Papajohn.org/Vista-publishing.html

  • change the order of a table with another table

    I want to change the order of a 1 d table based on another table 1 d that specifies the order.  For example, I have a table including the following items: 12, 13, 14, 15, 16.  And I have another 1 d array that specifies the order of 3, 4, 0, 1, 2.  I want the table resulting in 15, 16, 12, 13, 14.  How can I do this?  It must be really easy.  Another example, I give myself a table in the order following 1,2,3,4,5,6,7 and I an order specifying the array containing the 0,6,1,5,2,3,4.  Therefore, the resulting table must be 1,7,2,6,3,4,5.  ???

    It is, in fact, quite easy.  Put an "Array Index" inside a loop and thread the two tables in it.  Disabled automatic indexing on the input array.  Wire of the array element located on the border of the for loop, and you'll have the desired table.

  • Change the order of the components in FlowPane

    I'm interested, how I can change with mouse drag and drop the order of the components in FlowPane. I have an example that can work with TabPane and drag between two TabPanes tabs:

    public class DragPanel {
    
        private static final String TAB_DRAG_KEY = "panel";
        private static ObjectProperty<Tab> draggingTab = new SimpleObjectProperty<>();
    
        // Drag Panel
        public static Tab makePanelDrag(final Tab tabA, final Label tabALabel)
        {
    
            tabALabel.setOnDragDetected(new EventHandler<MouseEvent>()
            {
                @Override
                public void handle(MouseEvent event)
                {
                    Dragboard dragboard = tabALabel.startDragAndDrop(TransferMode.MOVE);
                    ClipboardContent clipboardContent = new ClipboardContent();
                    clipboardContent.putString(TAB_DRAG_KEY);
                    dragboard.setContent(clipboardContent);
                    draggingTab.set(tabA);
                    DragBuffer.setDraggingTab(draggingTab);
    
                    // For Java 8
                    // Make screenshot of the dragged component
                    //Image img = tabALabel.snapshot(null, null);
                    //dragboard.setDragView(img, 7, 7);
                    //tabA.getTabPane().getTabs().remove(tabA);
                    event.consume();
                }
            });
            return tabA;
        }
    
        // Drop Tab
        public static TabPane makeTabDrop(final TabPane tabPane)
        {
    
            tabPane.setOnDragEntered(new EventHandler<DragEvent>()
            {
                @Override
                public void handle(DragEvent event)
                {
                    /* the drag-and-drop gesture entered the target */
                    /* show to the user that it is an actual gesture target */
                    if (event.getGestureSource() != tabPane && event.getDragboard().hasString())
                    {
                        tabPane.setCursor(Cursor.MOVE);
                        // Add Glow effect when the mouse holds object over the TabPane
                        tabPane.setEffect(new Glow(0.5));
    
                    }
                    event.consume();
                }
            });
    
            tabPane.setOnDragExited(new EventHandler<DragEvent>()
            {
                @Override
                public void handle(DragEvent event)
                {
                    /* mouse moved away, remove the graphical cues */
                    tabPane.setCursor(Cursor.DEFAULT);
                    // Remove the Glow effect when the mouse is not over the tabPane with Object
                    tabPane.setEffect(new Glow(0.0));
                    event.consume();
                }
            });
    
            tabPane.setOnDragOver(new EventHandler<DragEvent>()
            {
                @Override
                public void handle(DragEvent event)
                {
                    final Dragboard dragboard = event.getDragboard();
                    if (dragboard.hasString()
                            && TAB_DRAG_KEY.equals(dragboard.getString())
                            && DragBuffer.getDraggingTab().get() != null
                            && DragBuffer.getDraggingTab().get().getTabPane() != tabPane)
                    {
                        event.acceptTransferModes(TransferMode.MOVE);
                        event.consume();
                    }
                }
            });
    
            tabPane.setOnDragDropped(new EventHandler<DragEvent>()
            {
                @Override
                public void handle(DragEvent event)
                {
                    final Dragboard dragboard = event.getDragboard();
                    if (dragboard.hasString()
                            && TAB_DRAG_KEY.equals(dragboard.getString())
                            && DragBuffer.getDraggingTab().get() != null
                            && DragBuffer.getDraggingTab().get().getTabPane() != tabPane)
                    {
                        final Tab tab = DragBuffer.getDraggingTab().get();
                        tab.getTabPane().getTabs().remove(tab);
                        tabPane.getTabs().add(tab);
                        // Tempolary fix
                        new Timeline(new KeyFrame(Duration.millis(100), new EventHandler<ActionEvent>()
                        {
                            @Override
                            public void handle(ActionEvent event)
                            {
                                tabPane.getSelectionModel().select(tab);
                            }
                        })).play();
                        event.setDropCompleted(true);
                        DragBuffer.getDraggingTab().set(null);
                        event.consume();
                    }
                }
            });
            return tabPane;
        }
    }
    
    

    The question is how do I get the position of the foresight of component the FlowPane and change the order when I drop the component?

    P.S

    I have a FlowPane with many small panels that are BorderPanes. I want to change the order of the BorderPanes with the mouse drag and drop. But I'm sure that this feature at the moment is not possible. So I think I can solve this problem in the other direction.

    I can insert component additional which will be inserted into the FlowPane and held the BorderPane:

    FlowPane-> component-> BorderPane

    I can add setOnDragDetected() and setOnDragDropped to the component in order to implement the transaction slip and fall.
    The question is which component will be suitable for this task? I need to make it transparent and it must be resizable auto because the BorderPanes can expand and shrink. Can you give me some advice?

    Concerning

    No idea why you think that you should add another component between each part of the border and the workflow pane. Why not just put the behavior of dragging on each side of the border?

    To change the order, just children of the pane flow and basically manipulate it like any other list, using (...) remove and add (...). Just be careful to remove the two nodes first, then add them after (so you do not violate the rules of the graphic scene).

    import java.util.Random;
    
    import javafx.application.Application;
    import javafx.collections.ObservableList;
    import javafx.event.EventHandler;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.input.ClipboardContent;
    import javafx.scene.input.DragEvent;
    import javafx.scene.input.Dragboard;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.input.TransferMode;
    import javafx.scene.layout.BorderPane;
    import javafx.scene.layout.FlowPane;
    import javafx.scene.layout.Pane;
    import javafx.stage.Stage;
    
    public class DraggableFlowPane extends Application {
    
        @Override
        public void start(Stage primaryStage) {
            final FlowPane root = new FlowPane();
            final Random rng = new Random();
            final int NUM_NODES = 120;
            for (int i = 0; i < NUM_NODES; i++) {
                int red = rng.nextInt(256);
                int green = rng.nextInt(256);
                int blue = rng.nextInt(256);
                Node node = createNode();
                node.setStyle(String.format("-fx-background-color: rgb(%d, %d, %d);", red, green, blue));
                root.getChildren().add(node);
            }
            primaryStage.setScene(new Scene(root, 600, 500));
            primaryStage.show();
        }
    
        private Node createNode() {
            final BorderPane bp = new BorderPane();
            bp.setOnDragDetected(new EventHandler() {
                @Override
                public void handle(MouseEvent event) {
                    Dragboard db = bp.startDragAndDrop(TransferMode.MOVE);
                    ClipboardContent clipboard = new ClipboardContent();
                    final int nodeIndex = bp.getParent().getChildrenUnmodifiable()
                            .indexOf(bp);
                    clipboard.putString(Integer.toString(nodeIndex));
                    db.setContent(clipboard);
                    event.consume();
                }
            });
            bp.setOnDragOver(new EventHandler() {
                @Override
                public void handle(DragEvent event) {
                    boolean accept = true;
                    final Dragboard dragboard = event.getDragboard();
                    if (dragboard.hasString()) {
                        int incomingIndex = Integer.parseInt(dragboard.getString());
                        int myIndex = bp.getParent().getChildrenUnmodifiable()
                                .indexOf(bp);
                        if (incomingIndex == myIndex) {
                            accept = false;
                        }
                    } else {
                        accept = false;
                    }
                    if (accept) {
                        event.acceptTransferModes(TransferMode.MOVE);
                    }
                }
            });
            bp.setOnDragDropped(new EventHandler() {
                @Override
                public void handle(DragEvent event) {
                    boolean success = false;
                    final Dragboard dragboard = event.getDragboard();
                    if (dragboard.hasString()) {
                        int incomingIndex = Integer.parseInt(dragboard.getString());
                        final Pane parent = (Pane) bp.getParent();
                        final ObservableList children = parent.getChildren();
                        int myIndex = children.indexOf(bp);
                        final int laterIndex = Math.max(incomingIndex, myIndex);
                        Node removedLater = children.remove(laterIndex);
                        final int earlierIndex = Math.min(incomingIndex, myIndex);
                        Node removedEarlier = children.remove(earlierIndex);
                        children.add(earlierIndex, removedLater);
                        children.add(laterIndex, removedEarlier);
                        success = true;
                    }
                    event.setDropCompleted(success);
                }
            });
            bp.setMinSize(50, 50);
            return bp;
        }
    
        public static void main(String[] args) {
            launch(args);
        }
    }
    
  • Cannot change the order of songs in my playlists on my new iPhone 7 (iOS 10.02). How can I fix?

    CAN I change the order on my MacBook Air when my phone is connected (but the changes are not published on my phone)

    Hello, wolfebait!

    Welcome to congratulations on getting a new iPhone and Apple support communities 7.  I see your message that you are having problems changing the order of song into playlists that you created, but it only happens on your new iPhone.  I have several playlists I created myself, and I sometimes have to change the order of songs as well.  I'm happy to help you with this.

    1. Open your music app.
    2. Type library on the bottom left.
    3. Touch Playlists.
    4. Press the Playlist you want to change (it must be one that you have created, as organized playlists cannot be changed).
    5. Press 'Edit' at the top right of your screen.
    6. You should now see red circles 'remove' to the left of each song and three horizontal lines gray right of each song.
    7. Press the grey horizontal lines with your finger and drag the song to the position in the playlist that you want it to be in.
    8. When you have finished editing, type "Done" in the upper right corner.
    9. Your playlist should now be in the new order that you chose!

    Have a great rest of your week!

  • HP Officejet Pro 8625: HP Officejet Pro 8625 impossible to change the order of printing back to the front and want to change

    HP Officejet Pro 8625 cannot change the order of printing back to the front and want to change

    The Officejet Pro 8600 driver has a 'Page order' option in the driver, and it is compatible with the Officejet Pro 8625.  You can install this driver in point 8.1 of Windows as follows: first download and install the driver Officejet Pro 8600 from HP here.  When the installer asks how the printer will be connected select "ignore the connection at the moment, I'll do it later."  After that go to printer and devices, right click on the Officejet Pro 8625, printer, advanced, pilot, new properties, then select a manufacturer HP (Hewlett-Packard) and select HP Officejet Pro 8600, next, done.  Click the Officejet Pro 8625 properties, general window and in the rear upper part called Officejet Pro 8625 (or what you want the printer named...), OK.  The Page order option will be available in the Advanced Printer Options tab.

  • Problems with "" change in "in Lightroom 4"

    I just installed Lightroom 4. Problems with "change in ' under 'PHOTO', when I select a program to edit photo in I download a message error - ORDER of EXECUTION ERROR INATTENDUE: bad argument #1 to 'down' (string expected, got the draw). I tried uninstalling and reinstalling, still have the problem. Any suggestions?

    Thank you

    http://feedback.Photoshop.com/photoshop_family/topics/lr4_external_editor_failure

    Frans

  • Interactive reports will change the order of columns

    Hi all

    Have experienced this for the 3rd time now. The other times I just create a new report with the request in the order you wish to fix. But it starts to become annoying now...

    When I use the arrows to change the column order on my reports interactive nothing happens when running. The new order is saved and appears that way in design mode, but does not change the order on the report.

    Please let me know if you know how to solve this problem, or if Miss me just something really obvious.

    Thank you!
    K

    Hey,.

    Changing the order in the attributes report is more an effect, since the default report parameters overwrite it.

    If you want to change the order of the columns, you must go through the menu actions of the interactive report, then choose the column selection menu item, change the order and press ok.

    Then save this order order by default, you go to the action menu again and choose save report option this time, select "primary" or "Save as default" depending on your version of apex (this option is available only if you are connected as a developer in the generator of the apex). Then press the ok button again.

    Other users will only see the changes if they press the reset button on their version of empathy.

    I hope this helps.

Maybe you are looking for