Disable Maximize Box in OCX

By | January 25, 2021

Sage 300 provides us the feature to disable the maximize box on the top right corner which is present in between the close and minimize option. There are situations or requirements when we need that user should not have the power to use the maximize feature of the screen i.e. user should not be able to resize the screen and must use the way it is provided. Programmatically it is very simple to achieve by just changing the Boolean value of the variable.

New Stuff:  Adding current fiscal year to avoid unwanted errors

We have demonstrated below, the disabled maximize box on the customized Order Entry UI. Also, when a user right clicks on the title bar of the screen, the maximize option is disabled. It also restricts the user to stretch the screen from its borders.

OE Order entry

Below is the Code snippet:

  1. Open “ACCPACUIGlobals.bas” file
  2. Change the value of constant variable “ACCPACUIResizable” from True to False.
AccpacUIGlobals

So, developer can use the above code snippet to disable the maximize behavior of the screen.

About Us

Greytrix – a globally recognized and one of the oldest Sage Development Partner is a one-stop solution provider for Sage ERP and Sage CRM organizational needs. Being acknowledged and rewarded for multi-man years of experience, we bring complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third party add-on development and implementation competence.

Greytrix offers unique GUMU™ integrated solutions of  Sage 300 with Sage CRM, Salesforce.com, Dynamics 365 CRM and Magento eCommerce along with Sage 300 Migration from Sage 50 US, Sage 50 CA, Sage PRO, QuickBooks, Sage Business Vision and Sage Business Works. We also offer best-in-class Sage 300 customization and development services and integration services for applications such as POS | WMS | Payroll | Shipping System | Business Intelligence | eCommerce for Sage 300 ERP and for Sage 300c development services we offer, upgrades of older codes and screens to new web screens, latest integrations using sData and web services  to Sage business partners, end users and Sage PSG worldwide. Greytrix offers 20+ addons for Sage 300 to enhance productivity such as GreyMatrixDocument AttachmentDocument NumberingAuto-Bank ReconciliationPurchase Approval SystemThree way PO matchingBill of Lading and VAT for Middle East. The GUMU™ integration for Dynamics 365 CRM – Sage ERP is listed on Microsoft Appsource with easy implementation package.

For more details on Sage 300 and Sage 300c Services, please contact us at accpac@greytrix.com, We will like to hear from you.