簡體   English   中英

Eclipse Form Base Editor插件中的Tab鍵順序

[英]Tabbing order in eclipse form base editor plugin

我正在Eclipse中基於表單的插件編輯器上工作。 我的表單包含3個文本字段,一個表查看器和4個按相同順序排列的按鈕。

我想通過鍵盤的“ Tab”按鈕添加支持。 當用戶從1文本字段移至第二個和下一個時,選項卡的順序確定。 但是,當用戶移至表查看器或從表查看器移出時,選項卡按鈕將無法正常工作。

但是直到現在我還沒有編寫任何代碼來處理Tab排序,任何人都可以告訴我如何為表單實現此行為。

提前致謝..

看看下面關於Composite方法

    public void setTabList (Control [] tabList)

ex: 
   Composite comp = new Composite(parent,SWT.NONE);
   comp.setLayout(new GridLayout(4,false));
   Button b1 = new Button(comp,SWT.NONE);
   b1.setText("button1");
   Button b2 = new Button(comp,SWT.NONE);
   b2.setText("button2");
   Button b3 = new Button(comp,SWT.NONE);
   b3.setText("button3");
   Button b4 = new Button(comp,SWT.NONE);
   b4.setText("button4");
   comp.setTabList(new Control[]{b1,b3,b4,b2});

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM