Print Page | Close Window

Performance for Grids and Moves

Printed From: Rocket Software
Category: AccuTerm Knowledge Base (read only)
Forum Name: Code Samples
Forum Description: Share your code samples and discuss the bundled sample programs
Printed Date: February 05 2023 at 1:29am
Software Version: Web Wiz Forums 12.03 -

Topic: Performance for Grids and Moves
Posted By: SeanC
Subject: Performance for Grids and Moves
Date Posted: October 08 2021 at 2:52pm
TLDR: Formatted like an included AT feature, A subroutine to set Grid properties and set values in the same subroutine call and another to move or resize multiple controls in one call.

For a complicated form, the performance difference is significant. These are modified versions of the built in functions

ATGUISETGRIDPROPS - the ATGUISETPROPS subroutine with col and row optional parameters added; able to set grid colors and values with the same call for example; brings the same capability as ATGUISETPROP to a multi property call.

ATGUIMOVES - the ATGUISETMOVE subroutine with multi property call ability added.

Demo of the above:
GRID.TUTOR.MULTI - the GRID.TUTOR demo modified to support form and control resizing/reposition via a single ATGUIMOVES call; All values and properties (color etc) set with a single call to ATGUISETGRIDPROPS; middle grid (GRID2) inverts the grid row if clicked as an example of a way to indicate the selected row to a user (I use that as an indicator when one grid controls another)

DEMOBP -> DEMOMENU and DEMOMENU.GUI - The demo menu with the above grid demo added

uploads/1657/" rel="nofollow - uploads/1657/

Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.03 -
Copyright ©2001-2019 Web Wiz Ltd. -