<tfoot id='0lF7h'></tfoot>
  • <small id='0lF7h'></small><noframes id='0lF7h'>

        <legend id='0lF7h'><style id='0lF7h'><dir id='0lF7h'><q id='0lF7h'></q></dir></style></legend>

        <i id='0lF7h'><tr id='0lF7h'><dt id='0lF7h'><q id='0lF7h'><span id='0lF7h'><b id='0lF7h'><form id='0lF7h'><ins id='0lF7h'></ins><ul id='0lF7h'></ul><sub id='0lF7h'></sub></form><legend id='0lF7h'></legend><bdo id='0lF7h'><pre id='0lF7h'><center id='0lF7h'></center></pre></bdo></b><th id='0lF7h'></th></span></q></dt></tr></i><div id='0lF7h'><tfoot id='0lF7h'></tfoot><dl id='0lF7h'><fieldset id='0lF7h'></fieldset></dl></div>
          <bdo id='0lF7h'></bdo><ul id='0lF7h'></ul>
      1. 如何在 Eclipse RCP 应用程序中使视图可滚动?

        How do I make a view scrollable in an Eclipse RCP application?(如何在 Eclipse RCP 应用程序中使视图可滚动?)

        <legend id='Hj4RB'><style id='Hj4RB'><dir id='Hj4RB'><q id='Hj4RB'></q></dir></style></legend>
        • <bdo id='Hj4RB'></bdo><ul id='Hj4RB'></ul>

            <tbody id='Hj4RB'></tbody>

                <i id='Hj4RB'><tr id='Hj4RB'><dt id='Hj4RB'><q id='Hj4RB'><span id='Hj4RB'><b id='Hj4RB'><form id='Hj4RB'><ins id='Hj4RB'></ins><ul id='Hj4RB'></ul><sub id='Hj4RB'></sub></form><legend id='Hj4RB'></legend><bdo id='Hj4RB'><pre id='Hj4RB'><center id='Hj4RB'></center></pre></bdo></b><th id='Hj4RB'></th></span></q></dt></tr></i><div id='Hj4RB'><tfoot id='Hj4RB'></tfoot><dl id='Hj4RB'><fieldset id='Hj4RB'></fieldset></dl></div>
                • <tfoot id='Hj4RB'></tfoot>

                  <small id='Hj4RB'></small><noframes id='Hj4RB'>

                • 本文介绍了如何在 Eclipse RCP 应用程序中使视图可滚动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  到目前为止我尝试了什么:

                  What I tried so far:

                  在 createPartControl 中:

                  In createPartControl:

                  ScrolledComposite sc = new ScrolledComposite(parent, SWT.V_SCROLL | SWT.H_SCROLL);
                          sc.setLayoutData(new GridData(GridData.FILL_BOTH));
                          sc.setExpandVertical(true);
                          sc.setExpandHorizontal(true);
                          sc.setSize(ApplicationWorkbenchWindowAdvisor.WIDTH, ApplicationWorkbenchWindowAdvisor.HEIGHT);
                          final TabFolder tabFolder = new TabFolder(sc, SWT.TOP);
                  

                  但这不起作用.我的问题是,如果我调整程序窗口的大小,滚动条不会出现在我的视图中.有什么想法吗?

                  but this does not work. My problem is that if I resize my program window the scrollbars does not appear in my view. Any ideas?

                  推荐答案

                  ScrolledComposite的Javadoc描述了两种使用方式,包括示例代码.总结一下:

                  The Javadoc of ScrolledComposite describes the two ways to use it, including example code. To sum them up:

                  1. 您可以在控件/复合体本身上设置 ScrolledComposite 中包含的控件/复合体的大小
                  2. 或者您告诉 ScrolledComposite 用于其内容的最小尺寸.
                  1. You either set the size of the control/composite contained in your ScrolledComposite on the control/composite itself
                  2. Or you tell your ScrolledComposite the minimum size to use for its content.

                  目前,您两者都不做.您在 ScrolledComposite 上设置大小,但除非您不使用布局管理器,否则这没有多大意义.无论如何,请参阅上面的链接以获取一些官方示例代码.

                  Currently, you're doing neither. You're setting the size on the ScrolledComposite, but unless you don't use a layout manager, that doesn't make much sense. In any case, see the above link for some official example code.

                  这篇关于如何在 Eclipse RCP 应用程序中使视图可滚动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Bytecode features not available in the Java language(Java 语言中不可用的字节码功能)
                  ClassCastException because of classloaders?(ClassCastException 因为类加载器?)
                  How can I add a Javaagent to a JVM without stopping the JVM?(如何在不停止 JVM 的情况下将 Javaagent 添加到 JVM?)
                  Cannot load 64-bit SWT libraries on 32-bit JVM ( replacing SWT file )(无法在 32 位 JVM 上加载 64 位 SWT 库(替换 SWT 文件))
                  Encourage the JVM to GC rather than grow the heap?(鼓励 JVM 进行 GC 而不是增加堆?)
                  Why a sawtooth shaped graph?(为什么是锯齿形图形?)

                      • <bdo id='4VxHf'></bdo><ul id='4VxHf'></ul>

                        <small id='4VxHf'></small><noframes id='4VxHf'>

                          <tbody id='4VxHf'></tbody>

                        1. <legend id='4VxHf'><style id='4VxHf'><dir id='4VxHf'><q id='4VxHf'></q></dir></style></legend>

                          1. <i id='4VxHf'><tr id='4VxHf'><dt id='4VxHf'><q id='4VxHf'><span id='4VxHf'><b id='4VxHf'><form id='4VxHf'><ins id='4VxHf'></ins><ul id='4VxHf'></ul><sub id='4VxHf'></sub></form><legend id='4VxHf'></legend><bdo id='4VxHf'><pre id='4VxHf'><center id='4VxHf'></center></pre></bdo></b><th id='4VxHf'></th></span></q></dt></tr></i><div id='4VxHf'><tfoot id='4VxHf'></tfoot><dl id='4VxHf'><fieldset id='4VxHf'></fieldset></dl></div>
                          2. <tfoot id='4VxHf'></tfoot>