# HPDLGMODE System Variable [GstarCAD 2027](Help%20System/GSTARCAD/2027/Index.md) → [System Variables](Help%20System/GSTARCAD/2027/System%20Variables/(System%20Variables).md) → [H](Help%20System/GSTARCAD/2027/System%20Variables/H/(H).md) ## Function Description: The HPDLGMODE system variable is used to control the display of the Hatch and Gradient dialog box and the Hatch Edit dialog box. | | | | --- | --- | | Type | Integer | | Saved in | User-settings | | Initial value | 2 | | Range | 0,1,2 | ## System Variable Value: **0:** does not display the Hatch and Gradient dialog box for HATCH and GRADIENT unless prompts to enter settings **1:** display the Hatch and Gradient dialog box **2:** if the ribbon is active(RIBBONSTATE=1), does not display the Hatch and Gradient dialog box for HATCH and GRADIENT; if the ribbon is not active(RIBBONSTATE=0), display the Hatch and Gradient dialog box --- [Original help](https://www.gstarcad.net/help/GstarCAD_2027_en-US/detail/systemVariables_Hgsv/HPDLGMODE.html) · © Gstarsoft Co., Ltd.