How can i hide a tabstrip control

On my screen there are a pushbutton and a tabsrtip control which contain two tabs.
initial,the tabstrip is visible,and the button with icon_collapse icon.
then,i click the button ,and the tabstrip must be invisible,and the button's icon will change to icon_expand.
if i use screen-name conditions to set the tab invisible,but the tabstrip has a shadow on the screen.the color of the space obtained by the tabstrip is different with other space's color.
How can i set the color same with other if i want to hide the tabstrip.
ths very much.

see the example of custom tabstrip control for 0591 infotype
MODULE ztab_strip_active_tab_set OUTPUT.
   IF  psyst-dsubt EQ 'BNPF'.
     g_ztab_strip-pressed_tab = c_ztab_strip-tab2.
     LOOP AT SCREEN.
       IF screen-group4 = '060'.
         screen-active = 0.
         MODIFY SCREEN.
       ENDIF.
     ENDLOOP.
   ELSEIF  psyst-dsubt EQ 'BNES'.
     g_ztab_strip-pressed_tab = c_ztab_strip-tab1.
     LOOP AT SCREEN.
       IF screen-group4 = '050'.
         screen-active = 0.
         MODIFY SCREEN.
       ENDIF.
     ENDLOOP.
   ENDIF.
   IF   psyst-dsubt NE 'BNPF' AND psyst-dsubt NE 'BNES'.
      LOOP AT SCREEN.
       IF screen-group4 = '050'.
         screen-active = 0.
         MODIFY SCREEN.
       ENDIF.
     ENDLOOP.
      LOOP AT SCREEN.
       IF screen-group4 = '060'.
         screen-active = 0.
         MODIFY SCREEN.
       ENDIF.
     ENDLOOP.
     g_ztab_strip-pressed_tab = ' '.
   ENDIF.
   ztab_strip-activetab = g_ztab_strip-pressed_tab.
   CASE g_ztab_strip-pressed_tab.
     WHEN c_ztab_strip-tab1.
       g_ztab_strip-subscreen = '0201'.
     WHEN c_ztab_strip-tab2.
       g_ztab_strip-subscreen = '0203'.
     WHEN OTHERS.
       g_ztab_strip-subscreen = '0202'.
   ENDCASE.
ENDMODULE.                    "ZTAB_STRIP_ACTIVE_TAB_SET OUTPUT
check this for hiding one tabstrip in one subtype and another in next subtype

Similar Messages

  • How can I hide a text label as I would a control or indicator?

    As I have multiple indicators that must have the same identifier to the operator I can not use the indicator label as the items identifier. At times I want to hide the indicator and label. How can I hide the label? Please recall a text label just sits on the front panel as desired. It isn't within a raised or lowered box. In the attached sample I would like to hide "MyLabel" when the date indicator is hidden.
    Attachments:
    Test_Label.vi ‏35 KB

    Here�s a way. Its a little involved, but it will work:
    1. Customize a control or indicator to remove the border (I used a string control)
    a. Right click on the control or indicator, go to �Advanced � Customize�
    b. Click on the wrench on the tool bar to enter edit mode
    c. Select the border and drag it off to the side
    d. Reduce the size of the border to a single pixel (it won�t let you delete it)
    e. Rubber band a box around the 1 pixel border to select it and use the cursor keys to move it within the �white space� of the string control. It will effectively disappear. You will NOT be able to move it with the mouse as LV will try to resize the border instead of moving it.
    f. Using the color tools �suck up� the background color of your vi and �paint� i
    t into the white space of the control.
    g. Make the control the correct size to hide your label(s). Make sure it is right as you will NOT be able to resize the control outside of the �customize� function (i.e.: while on your front panel)
    h. Click on the tweezers to go back to customize mode.
    i. Give your control a descriptive name
    j. Right click on the control, go to �Visible Items� and uncheck �label� to hide the label.
    k. Save your new control
    2. Back on your front panel, place your new control over what you want to hide and programmatically make it visible or invisible as desired.
    I have included a copy of your original vi, modified to hide and unhide your label. I have also included the customized string control that accomplishes this. You may resize the control as needed by �customizing it as described above.
    The only disadvantage to this method is that if you want to hide multiple labels they must be in the same area of the front panel. Otherwise you must have seve
    ral �hiding� controls.
    An advantage is that you will not have to make the original control or indicator (i.e.: the date indicator) visible or invisible as it can be hidden as well.
    Hope this does what you want.
    Good Luck.
    Attachments:
    Test_Label.vi ‏27 KB
    InvisibleString.ctl ‏6 KB

  • How can i hide phone apps so that if kids take my mobile the couldnt be able to make calls. At the same time when someone call me I could be able to attend call. is there any control to lock phone's apps or hide it.

    how can i hide phone apps so that if kids take my mobile the couldnt be able to make calls. At the same time when someone call me I could be able to attend call. is there any control to lock phone's apps or hide it.

    Hi there
    Apple doesnt give this feauture and there are certain apps in app store under utilities which provide password facility under this app and u can store photos videos and orther stuff and lock so
    Kids will be not able to access this single app ortherwise there is no such feature of locking apps feature given by apple
    <Edited By Host>

  • How can I hide primary key column in BC4J form

    I have populated a primary key with dbsequence and how can I hide it on the form. It is populated in the DB by a trigger.

    I have populated a primary key with dbsequence and how can I hide it on the form. It is populated in the DB by a trigger. To hide it, edit the attribute using attribute-editor that you bring up by double-clicking on the attribute in the "StructurePane" .
    Then go to control-hints panel and mark the attribute setting for Display = Hide.
    Then UI wizards will not add the attribute into generated panels.
    However once you have UI generated, this hint is no more used.

  • How can I hide the scroll bar in TextArea?

    How can I hide the scroll bar in TextArea?

    Hi. To remove the horizontal scrollbar you can do this:
    textArea.setWrapText(true);
    To remove the vertical scrollbar you can do this:
    ScrollBar scrollBarv = (ScrollBar)ta.lookup(".scroll-bar:vertical");
    scrollBarv.setDisable(true);  and set the opacity to 0 in the css file:
    //css file
    .text-area .scroll-bar:vertical:disabled {
        -fx-opacity: 0;
    }Here is an example:
    import javafx.application.Application;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.ContextMenu;
    import javafx.scene.control.MenuItem;
    import javafx.scene.control.ScrollBar;
    import javafx.scene.control.TextArea;
    import javafx.scene.input.ContextMenuEvent;
    import javafx.scene.layout.StackPane;
    import javafx.stage.Stage;
    public class TextAreaSample extends Application {
        @Override
        public void start(Stage primaryStage) {
        final TextArea textArea = new TextArea();
            textArea.setWrapText(true);
            StackPane root = new StackPane();
            root.getChildren().add(textArea);
            Scene scene = new Scene(root, 300, 250);
            primaryStage.setScene(scene);
            primaryStage.show();
            scene.getStylesheets().add(getClass().getResource("style.css").toExternalForm());
            ScrollBar scrollBarv = (ScrollBar)textArea.lookup(".scroll-bar:vertical");
            scrollBarv.setDisable(true);
        public static void main(String[] args) {
            launch(args);
    }

  • How can I place the tabstrip on spitter container?

    How can I place the tabstrip on spitter container

    Hello Lykin
    You cannot. Controls only can hold other controls (e.g. tree, ALV, TextEditor).
    The tabstrip element is part of a screen yet outside of any container.
    Regards
      Uwe

  • How can I hide the class file ??

    Hi !
    I has a question, when i write a program of Java, then use the command "javac" to compiler to class file for other people using, but the class file can be disassembled and convert to source code. How can I hide the class file and let people can not disassemble, or can not see the source code. Thinks

    See these....
    http://www.saffeine.com/
    http://www.jarsafe.com/
    I recently read this. This will help you.
    http://developer.java.sun.com/developer/qow/archive/160/index.jsp
    Enojy....
    Rajesh

  • How can i hide my extension number when i make outgoing calls

    Hi All,
    How can i hide my extension number when i make outgoing calls,what configuration should i make on the call manager server.
    Regards,
    Lester

    We use a Route Pattern that mimics the telco feature *67. The RP is *679.xxxxxxx with a Transformation mask of 000000000 (just to get beyond the individual blocking on some private lines.

  • How can I hide a JPanel?

    I have some JPanels and using the mouse motion listeners you can scribble on them. I want to be able to switch between these panels but the problem is the drawings get wiped off when I use repaint() and frame.add(panel).
    Any ideas how else I could try doing this?

    Ok thanks everyone. I've taken the MyPanel class from here http://java.sun.com/docs/books/tutorial/uiswing/painting/step3.html
    class MyPanel extends JPanel {
        private int squareX = 50;
        private int squareY = 50;
        private int squareW = 20;
        private int squareH = 20;
        public MyPanel() {
            setBorder(BorderFactory.createLineBorder(Color.black));
            addMouseListener(new MouseAdapter() {
                public void mousePressed(MouseEvent e) {
                    moveSquare(e.getX(),e.getY());
            addMouseMotionListener(new MouseAdapter() {
                public void mouseDragged(MouseEvent e) {
                    moveSquare(e.getX(),e.getY());
        private void moveSquare(int x, int y) {
            int OFFSET = 1;
            if ((squareX!=x) || (squareY!=y)) {
                repaint(squareX,squareY,squareW+OFFSET,squareH+OFFSET);
                squareX=x;
                squareY=y;
                repaint(squareX,squareY,squareW+OFFSET,squareH+OFFSET);
        public Dimension getPreferredSize() {
            return new Dimension(250,200);
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);      
            g.drawString("This is my custom Panel!",10,20);
            g.setColor(Color.RED);
            g.fillRect(squareX,squareY,squareW,squareH);
            g.setColor(Color.BLACK);
            g.drawRect(squareX,squareY,squareW,squareH);
    }Now if I use this class to make two panels, how can I hide one and bring the other one up and vice versa, using two buttons? setVisible() still doesn't work properly.
    Here's the whole code.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.SwingUtilities;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.BorderFactory;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseMotionListener;
    import java.awt.event.MouseMotionAdapter;
    public class PanelTest extends JFrame {
        private MyPanel panelOne;
        private MyPanel panelTwo;
        private BorderLayout layoutManager;
        private PanelTest() {
            layoutManager = new BorderLayout();
            this.setLayout(layoutManager);
            panelOne = new MyPanel();
            panelTwo = new MyPanel();
            panelOne.add(new JLabel("This is Panel One"));
            panelTwo.add(new JLabel("This is Panel Two"));
            setCurrentPanel(panelOne);
            JButton switchButton = new JButton("Switch");
            switchButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    if(getCurrentPanel() == panelOne) {
                        setCurrentPanel(panelTwo);
                    } else {
                        setCurrentPanel(panelOne);
            this.getContentPane().add(switchButton, BorderLayout.SOUTH);
            this.pack();
            this.setVisible(true);
        private void setCurrentPanel(MyPanel panel) {
            this.getContentPane().add(panel, BorderLayout.CENTER);
            panel.revalidate();
            panel.repaint();
        private JPanel getCurrentPanel() {
            return (JPanel)layoutManager.getLayoutComponent(BorderLayout.CENTER);
        public static void main(String[] args) {
            new PanelTest();
    class MyPanel extends JPanel {
        private int squareX = 50;
        private int squareY = 50;
        private int squareW = 20;
        private int squareH = 20;
        public MyPanel() {
            setBorder(BorderFactory.createLineBorder(Color.black));
            addMouseListener(new MouseAdapter() {
                public void mousePressed(MouseEvent e) {
                    moveSquare(e.getX(),e.getY());
            addMouseMotionListener(new MouseAdapter() {
                public void mouseDragged(MouseEvent e) {
                    moveSquare(e.getX(),e.getY());
        private void moveSquare(int x, int y) {
            int OFFSET = 1;
            if ((squareX!=x) || (squareY!=y)) {
                repaint(squareX,squareY,squareW+OFFSET,squareH+OFFSET);
                squareX=x;
                squareY=y;
                repaint(squareX,squareY,squareW+OFFSET,squareH+OFFSET);
        public Dimension getPreferredSize() {
            return new Dimension(250,200);
        protected void paintComponent(Graphics g) {
            super.paintComponent(g);      
            g.setColor(Color.RED);
            g.fillRect(squareX,squareY,squareW,squareH);
            g.setColor(Color.BLACK);
            g.drawRect(squareX,squareY,squareW,squareH);
    }Edited by: atom.bomb on Mar 30, 2010 11:25 AM

  • How can I hide a field a table from SE16

    Hi all,
    I have an urgent requirement, can anyone help me? How can I hide or mask any field of a table from SE16. Also how can I restrict the user not to put a restriction on a particular field of a table so that this field should not be accessed for SQVI/SQ01.
    Awaiting for reply.
    Useful answers will be rewarded immediately with full points.
    Tnx.

    You could hide the column, by using the standard functinoality of the ALV output, you would need to hide the column, and save a default layout.  This way the next time you come into this display, the column will not be there.
    Regards,
    Rich Heilman

  • How can i hide a tex message on my screen? i have a 4s?

    how can i hide a tex message on my screen when my phone is locked? i have the 4s

    Settings>Notifications>Messages>View in Lock Screen>OFF
    Message was edited by: The Huntress

  • How can i hide a pages file from other users

    How can I hide a pages file so other users can't open or see it?

    My own tip is to save this kind of doc in an encrypted disk image (the .dmg items)
    Such item resemble to every downloaded installer so it doesn' take special attention and the encryption scheme is an efficient one.
    Yvan KOENIG (VALLAURIS, France) dimanche 21 août 2011 14:53:01
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • How can i hide a folder?

    how can i hide a folder?

    I know nothing about it, but you can get is an application for it.

  • How can i hide a column using personalization?

    Hi,
    Please help me how can i hide a one column in oracle forms using personalization?
    Thanks

    Hi,
    When you login to My Oracle Support website, enter "458786.1" or "468657.1" in the search box, and you should get the documents.
    Or, use the direct links below to access those documents.
    How To Do Forms Personalization (Doc ID 468657.1)
    https://supporthtml.oracle.com/ep/faces/secure/km/DocumentDisplay.jspx?id=468657.1
    RCVRCERC: When Using Personalization to Remove a Column Receive Error FRM-41017: Cannot set UPDATE ALLOWED (Doc ID 458786.1)
    https://supporthtml.oracle.com/ep/faces/secure/km/DocumentDisplay.jspx?id=458786.1
    Regards,
    Hussein

  • How can i hide a JFrame and then Show it again in runtime

    How can i hide a JFrame and then Show it again in runtime??
    Please, please help me
    Its URGENT

    Here's even an example:
    import javax.swing.*;
    public class HideAndShow extends JFrame
         public HideAndShow()
              super("Hello");
              setSize(200, 200);
              setVisible(true);
              try
                   Thread.sleep(2000);
              } catch(InterruptedException e) {}
              setVisible(false);
              try
                   Thread.sleep(2000);
              } catch(InterruptedException e) {}
              setVisible(true);
         public static void main(String[] args)
              new HideAndShow();
    The JFrame will show, then hide, then show again. This is at runtime.

Maybe you are looking for

  • Links in Discoverer Reports

    I am new to Discoverer Reports so i want know, how to implement links in discoverer reports, I have two worksheets/links/pages in a Discoverer Report, in the first worksheet/page some data will be displayed, i want to display links for a particular c

  • HP Color LaserJet CP1518ni & Windows 7 via network

    I have a HP Color LaserJet CP1518ni connected to the network, not via a USB cable. How to I setup this printer so I can print to it from my WIndows 7 machine? Will HP be coming out with anything other than the Universal Print Drivers for this printer

  • Why is the refreshing button on iCloud Mail all the way below at the left corner?

    The refreshing button on iCloud Mail service is at the left corner in the bottom. I sometimes click the windows start button instead of refreshing button. They are so close. At all e-mail services, the refreshing button comes at the top and close to

  • Server Startup - log4j:WARN Failure in post-close rollover action

    Hi, Could anyone kindly help me to fix this issue?? We are Migrating Weblogic from 11g 10.3.2 to 10.3.6 After starting the server and checking the log, it keeps on prints "log4j:WARN Failure in post-close rollover action" in the log for several time.

  • Can't see my mac in Find My Mac, even with it enabled.

    I have a C2D Macbook Pro, Late 2006 Model. I have successfully upgraded to the newest version of leopard, and have enabled all the settings of iCloud with no error messages. Problem is, when i go to look at my iCloud account in a browser and look for