MB_BLANK

Add a blank row to a new column

WTSupported in traditional Synergy on Windows
WNSupported in Synergy .NET on Windows
USupported on UNIX
VSupported on OpenVMS
xcall MB_BLANK(control) 

Arguments

control

The menu control structure. (a)

Discussion

MB_BLANK adds a blank row to a new menu column. It is used when building a menu column at runtime. The added blank row is not a blank entry; it’s just a row that contains no text.

On Windows, blank rows can be highlighted, but the user will not be able to select them.

See also

Examples

The following subroutine uses all the “MB_xxx” commands to build a menu at runtime.

main mbdemo 
.include "WND:tools.def" 
.include "WND:inpctl.def" 
record 
  colid      ,i4 
  ctl        ,a12000 
proc 
  xcall u_start 
  xcall mb_column(ctl, "c_general", "General", D_GLOBAL) 
  xcall mb_entry(ctl, "O_HELP", "Help", F1_KEY) 
  xcall mb_entry(ctl, "O_EXIT", "Exit", F4_KEY) 
  xcall mb_entry(ctl, "U_ABOUT", "About") 
  xcall mb_line(ctl) 
  xcall mb_text(ctl, "Hot Entries", 2) 
  xcall mb_blank(ctl) 
  xcall mb_entry(ctl, "U_VIEW", "View", F3_KEY,,,, TRUE) 
  xcall mb_entry(ctl, "U_DIR", "Directory", F2_KEY,,,, TRUE) 
  xcall mb_entry(ctl, "U_EDITREND", "Renditions") 
  xcall mb_entry(ctl, "U_EDITKEYS", "Key mapping") 
  xcall mb_entry(ctl, "U_APP", "Application Keypad",,,"p") 
  xcall mb_list(ctl, "LIBOPEN", 2, "U_VIEW", "U_DIR") 
  xcall mb_end(ctl, colid) 
  xcall m_process 
  xcall u_finish 
endmain