# HPDLGMODE System Variable
[GstarCAD 2026](Help%20System/GSTARCAD/2026/Index.md) → [System Variables](Help%20System/GSTARCAD/2026/System%20Variables/(System%20Variables).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_2026_en-US/detail/systemVariables/HPDLGMODE.html) · © Gstarsoft Co., Ltd.