DIALOG TAB標籤控制項,子螢幕的使用

2021-10-03 00:08:45 字數 3111 閱讀 9237

一、dialog 標籤條(含嚮導)控制項

1.啟動,繼續

2.設定標籤條的名稱 

3.設定每乙個tab頁籤的名稱

4. 為每乙個tab頁籤設定功能**,供功能使用

4.分配資料定義,pbo,pai 模組,自己定義的include檔案 (這裡是top ,o01,i01)

5.分配完成

二、 相關資料定義,每乙個tab頁籤的功能碼定義

*&spwizard: function codes for tabstrip 'comp_recruit'

constants: begin of c_comp_recruit,

tab1 like sy-ucomm value 'comp_recruit_fc1',

tab2 like sy-ucomm value 'comp_recruit_fc2',

tab3 like sy-ucomm value 'comp_recruit_fc3',

end of c_comp_recruit.

*&spwizard: data for tabstrip 'comp_recruit'

controls: comp_recruit type tabstrip.

data: begin of g_comp_recruit,

subscreen like sy-dynnr,

prog like sy-repid value 'zgjx_by_company_recruit',

pressed_tab like sy-ucomm value c_comp_recruit-tab1,

end of g_comp_recruit.

三、pbo,call subscreen,傳入引數

variant 1

call subscreen sub_area including prog dynnr.

sub_area:子螢幕名稱

prog :當前程式

dynnr:子螢幕

process before output.

*&spwizard: pbo flow logic for tabstrip 'comp_recruit'

module comp_recruit_active_tab_set.

call subscreen comp_recruit_sca

including g_comp_recruit-prog g_comp_recruit-subscreen.

**&spwizard: output module for ts 'comp_recruit'. do not change this line

*&spwizard: sets active tab

module comp_recruit_active_tab_set output.

comp_recruit-activetab = g_comp_recruit-pressed_tab.

case g_comp_recruit-pressed_tab.

when c_comp_recruit-tab1.

g_comp_recruit-subscreen = '0110'.

when c_comp_recruit-tab2.

g_comp_recruit-subscreen = '0120'.

when c_comp_recruit-tab3.

g_comp_recruit-subscreen = '0130'.

when others.

*&spwizard: do nothing

四、pai ,根據每乙個tab頁籤的功能**,改變 g_comp_recruit-pressed_tab的值,call screen

process after input.

*&spwizard: pai flow logic for tabstrip 'comp_recruit'

call subscreen comp_recruit_sca.

module comp_recruit_active_tab_get.

*&spwizard: input module for ts 'comp_recruit'. do not change this line!

*&spwizard: gets active tab

module comp_recruit_active_tab_get input.

ok_code = sy-ucomm.

case ok_code.

when c_comp_recruit-tab1.

g_comp_recruit-pressed_tab = c_comp_recruit-tab1.

when c_comp_recruit-tab2.

g_comp_recruit-pressed_tab = c_comp_recruit-tab2.

when c_comp_recruit-tab3.

g_comp_recruit-pressed_tab = c_comp_recruit-tab3.

when others.

*&spwizard: do nothing

endcase.

endmodule.

支援在控制項標籤間包含子控制項 WebControl

之前寫過關於usercontrol的文章 但是manager說usercontrol復用性不好,於是改用webcontrol了,改的過程遇到一些問題。其中最主要的問題就是控制項標籤間 包含子控制項,或者asp.net 頁面變數的問題。我希望實現的功能是,在控制項間可以包含子控制項 同時還要滿足 hi...

標籤控制項 CTableCtrl 控制項

前言 區別 ctablectrl和cpropertysheet.乙個是控制項,另乙個是對話方塊屬性類 目錄 0.訊息彙總 1.常用方法總結 0.訊息彙總 1.常用方法總結 定義視窗資源以及和類進行相關繫結物件兩個,標籤控制項新增兩個子項.建立視窗,設定相關區域,移動視窗.原始碼 m tab.inse...

TextView 標籤控制項

常用 android text 顯示文字內容 android textcolor 文字的顏色 android textsize 文字的大小 android textstyle 字型樣式 bold,italic android maxlength 允許的最大字元數 android password 是...