螢幕控制示例程式
*&---------------------------------------------------------------------*
*& Report ZTEST_RAY *
*& *
*&---------------------------------------------------------------------*
*& *
*& *
*&---------------------------------------------------------------------*
REPORT ZTEST_RAY .
*REPORT dynamic_selscreen.
**DECLARATIONS FOR SELECTION SCREEN STATUS
DATA IT_UCOMM TYPE TABLE OF SY-UCOMM.
SELECTION-SCREEN BEGIN OF BLOCK B01 WITH FRAME.
PARAMETERS : PA RADIOBUTTON GROUP RAD USER-COMMAND COM,
PB RADIOBUTTON GROUP RAD.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT (10) TEXT001 MODIF ID R01.
SELECTION-SCREEN POSITION 15.
PARAMETERS P_UP(10) TYPE C MODIF ID R01.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT (10) TEXT002 MODIF ID R02.
SELECTION-SCREEN POSITION 15.
PARAMETERS P_DOWN(10) TYPE C MODIF ID R02.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT (10) TEXT003 MODIF ID R02.
SELECTION-SCREEN POSITION 15.
PARAMETERS P_CHE AS CHECKBOX MODIF ID R02.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK B01.
INITIALIZATION.
TEXT001 = '??????'.
TEXT002 = '??????'.
TEXT003 = '?????'.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'R01'.
SCREEN-INTENSIFIED = '1'.
SCREEN-ACTIVE = 1.
SCREEN-DISPLAY_3D = '1'.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'R02'.
SCREEN-INTENSIFIED = '0'.
SCREEN-ACTIVE = 0.
SCREEN-DISPLAY_3D = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
AT SELECTION-SCREEN OUTPUT.
IF PA = 'X'.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'R01'.
SCREEN-INTENSIFIED = '1'.
SCREEN-ACTIVE = 1.
SCREEN-DISPLAY_3D = '1'.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'R02'.
SCREEN-INTENSIFIED = '0'.
SCREEN-ACTIVE = 0.
SCREEN-DISPLAY_3D = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSEIF PB = 'X'.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'R02'.
SCREEN-INTENSIFIED = '1'.
SCREEN-ACTIVE = 1.
SCREEN-DISPLAY_3D = '1'.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 = 'R01'.
SCREEN-INTENSIFIED = '0'.
SCREEN-ACTIVE = 0.
SCREEN-DISPLAY_3D = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
**CUSTOMISING THE TOOLBARS OF THE SELECTION SCREEN
**WITH F8 BUTTON DISABLED
APPEND : 'PRIN' TO IT_UCOMM,
'SPOS' TO IT_UCOMM,
'ONLI' TO IT_UCOMM.
CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
EXPORTING
P_STATUS = SY-PFKEY
TABLES
P_EXCLUDE = IT_UCOMM.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8356764/viewspace-1023155/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- SAP螢幕增強示例
- mui 控制旋轉螢幕方向UI
- 透過終端控制螢幕亮度
- 螢幕保護控制工具:ScreenSaverNow for MacMac
- Android動態控制手機螢幕方向Android
- WebRTC本地分享螢幕,錄製螢幕Web
- 在螢幕上多項選擇示例(More on selection screens)
- 遠端控制篇:抓取遠端螢幕影像 (轉)
- 自己寫遠端控制軟體之捕捉螢幕
- 關於螢幕程式設計(轉)程式設計
- 控制皮膚找不到調螢幕亮度win10 怎麼把電腦螢幕亮度調暗Win10
- css新手教程之背景圖充滿整個螢幕的示例程式碼介紹CSS
- Android獲取螢幕和控制元件座標Android控制元件
- abap screnn螢幕程式設計,對螢幕中的欄位追加多選search help程式設計
- Aerial for Mac鳥瞰螢幕保護程式Mac
- 金鋒螢幕保護程式2.0破解
- win10怎麼把控制皮膚固定到開始螢幕上 win10控制皮膚固定到開始螢幕的方法Win10
- VB 螢幕融化超級惡搞程式程式碼
- 把selection screen當子螢幕放到普通螢幕上
- Mac簡單時鐘螢幕保護程式Mac
- 判斷螢幕旋轉的事件程式碼事件
- 螢幕擷取程式Ashampoo SnapYa! v1.53
- 用VB製作螢幕保護程式 (轉)
- 利用VB編寫螢幕保護程式 (轉)
- 螢幕取詞核心內幕 (轉)
- 如何在macOS中控制螢幕快照快捷方式的行為Mac
- iPhone X螢幕體驗測試:iPhone X螢幕史上最佳!iPhone
- Flutter螢幕適配Flutter
- 螢幕影像渲染原理
- UIWebView 適配螢幕UIWebView
- 多螢幕切換
- ubuntu螢幕旋轉Ubuntu
- 如何將 MacBook 的外接螢幕設定為主螢幕的方法Mac
- ios一句程式碼搞定螢幕旋轉iOS
- 讓應用程式禁止Windows螢幕保護 (轉)Windows
- 迴歸小螢幕手機 蘋果下代新品或配4寸螢幕蘋果
- Android判斷螢幕狀態與螢幕解鎖和鎖定Android
- android 喚醒螢幕Android