Skip to main content

Accuterm Whole Hog

  • January 25, 2023
  • 1 reply
  • 0 views

Dale Kelley
I've reached the point of presenting a list of maintenance schedule
option check boxes for constructing a work order for a vehicle. I would
like to present the user with a window sized to the number of scheduled
items for the vehicle which may range up to 20. The only way I see to
do this is to ATGUICREATEFORM or ATGUICREATEFRAME2 within the program to
control HEIGHT. Does it make any difference which or is there a way to
do this from a GUI created form?
Dale

1 reply

Brian Speirs
  • Participating Frequently
  • 81 replies
  • January 25, 2023
I've reached the point of presenting a list of maintenance schedule
option check boxes for constructing a work order for a vehicle. I would
like to present the user with a window sized to the number of scheduled
items for the vehicle which may range up to 20. The only way I see to
do this is to ATGUICREATEFORM or ATGUICREATEFRAME2 within the program to
control HEIGHT. Does it make any difference which or is there a way to
do this from a GUI created form?
Dale
Hi Dale,
You can do virtually anything at runtime - you just have to use your imagination a bit. For example, I allow users to resize forms (including a maximise option). So, that runs the resize event, and then you need to resize all the controls within the form so the form doesn't look silly.

In this case, I think the best way to present a variable number of checkboxes is either within a grid (2 columns - name and checkbox); or within a list control (where AccuTerm provides the checkbox alongside each list item). Both of those allow scrolling of the active area - or you can resize the form and stretch the controls to match.

Hope that helps.

Brian

------------------------------
Brian Speirs
Senior Analyst - Information Systems
Self Registered
Wellington NZ
------------------------------