Migration Guide to Allegro

Migration Guide for Allegro Platform Products

Issue link: https://resources.pcb.cadence.com/i/1180190

Contents of this Issue

Navigation

Page 44 of 128

Migration Guide for Allegro Platform Products Core Allegro Platform Back-End Products October 2019 45 Product Version 17.4-2019 © 1999-2019 All Rights Reserved. List Fields axlFormListGetCount(r_form t_field) Description Returns the number of items currently in the list (total items, not number of selected items). If the field is not a list, or if the list has not been initialized, returns nil to indicate error. Arguments Return Value The axlFormListGetCount function is useful when attempting to determine how many items are currently in your list (such as on forms where you have two lists and allow the user to move elements between them), and when querying to get all elements in the list field as a stop index for any loop. This helps to eliminate the need to store a duplicate collection of this data in your own data structures when it is already available in the form. FLEX Modes and Field Rules FLEXMODE and FLEX statements have been available in form files for many years. FLEXMODE defines a set of basic, default rules for the repositioning of fields when the user drags to make the form larger or smaller. With the 17.4 release, the application of these items has been simplified. The FLEXMODE statement is used to indicate whether the form can be resized by the user. Individual FLEX statements indicate to the tool whether this field should be able to expand or contract in response to the size change events. In 17.4, FLEX statements are primarily useful to indicate that a grid, tree, or list field is expandable if not using the zero-size indication described elsewhere in this migration guide. The specification of the *amount* of growth of the field is ignored in the 17.4 release. If three lists are side-by-side, for instance, and all have FLEX statements, then each will get 1/3 of the increased space. Group fields will automatically expand. All other fields will reposition in reaction to the growth of these larger fields. or_form handle to the form object owning the grid field ot_field name of the grid field n_count If successful nil If error

Articles in this issue

view archives of Migration Guide to Allegro - Migration Guide for Allegro Platform Products