skip to main content

Controls Reference : GRID : Properties : Heading-Menu-Popup

Heading-Menu-Popup
This property allows to set or retrieve the status of the context menu shown on grid columns headings. The context menu allows you to choose between hiding or showing a column, exporting data to xls/xlsx spreadsheets and copying data to the clipboard.
The possible values for this property, defined in isgui.def, are:
The above values can be combined in order to obtain the desired effect. Setting the property to the value 63 makes all the items available in the menu shown by right clicking as well as in the menu shown by clicking on the top left corner of the gird.
When the ‘Export’ option is selected, a Save As dialog is shown to allow the user to choose where to save the exported data. The fields of this dialog are preset according to the properties Export-File-Name and Export-File-Format. Font and colors are replicated in the exported file, while bitmaps and embedded controls are not.
When the ‘Copy to Clipboard’ option is selected, the Grid content is copied to the clipboard. If you’re using Java 7 or greater, the text style (font and colors) is copied as well. If Selection-Mode is set to a value greater than 0, then only selected cells are copied to the clipboard.
Example - Define a Grid where the list of columns is shown in the menu that appears by right clicking on the heading, while the export option appears by clicking on the top left corner of the grid, and where the ‘Copy to clipboard’ option is not available.
screen section.
  03 screen-1-gr-1 Grid
     line 15.5
     column 2.6
     size 28.4 cells 
     lines 18.6 cells 
     heading-menu-popup 9
     column-headings
     row-dividers 1
     heading-color 133
     heading-font Default-Font
     cursor-frame-width 3
     num-rows 5

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left