Skip to main content

I have a GUI app that loads a delimited file into the AccuTerm GUI data grid. In the grid designer I only have one column and that one column is resizeable.  When I load multiple  columns by sending it a multi-valued header with multi-sub-valued data lines, the column widths all default to the same size. I notice that I can resize each individual by double clicking the separator on the header line.

My question is, can I send a command to tell the GUI runtime to resize all the columns based on the data?  Some of these files have 50+ columns so having to double click each one is tedious. I'd rather just have them automatically all set to fit.

I have a GUI app that loads a delimited file into the AccuTerm GUI data grid. In the grid designer I only have one column and that one column is resizeable.  When I load multiple  columns by sending it a multi-valued header with multi-sub-valued data lines, the column widths all default to the same size. I notice that I can resize each individual by double clicking the separator on the header line.

My question is, can I send a command to tell the GUI runtime to resize all the columns based on the data?  Some of these files have 50+ columns so having to double click each one is tedious. I'd rather just have them automatically all set to fit.

Hi Joe - 

AccuTerm GUI grid does not have an "auto-size" function. I think the best you can do is calculate approximate size in your program on the server and call ATGUISETPROP( ... GPCOLWIDTH, ...) with a multi-valued list of column widths.

Thanks, Pete


I have a GUI app that loads a delimited file into the AccuTerm GUI data grid. In the grid designer I only have one column and that one column is resizeable.  When I load multiple  columns by sending it a multi-valued header with multi-sub-valued data lines, the column widths all default to the same size. I notice that I can resize each individual by double clicking the separator on the header line.

My question is, can I send a command to tell the GUI runtime to resize all the columns based on the data?  Some of these files have 50+ columns so having to double click each one is tedious. I'd rather just have them automatically all set to fit.

That's too bad. I was hoping it would be something easier. You might want to put it on a list of things to add. Since there's already code to do it for individual columns it seems like it would be pretty easy to add a property to the grid that when set would loop through that code for all columns. I bet it's more complicated now that you've ported it to the web though.

While I'm requesting features, how about a way to tell if the user has entered Ctrl+ or Ctrl-?. I played with increasing the font size with buttons but most programs now have settled on those two as kind of a standard.


I have a GUI app that loads a delimited file into the AccuTerm GUI data grid. In the grid designer I only have one column and that one column is resizeable.  When I load multiple  columns by sending it a multi-valued header with multi-sub-valued data lines, the column widths all default to the same size. I notice that I can resize each individual by double clicking the separator on the header line.

My question is, can I send a command to tell the GUI runtime to resize all the columns based on the data?  Some of these files have 50+ columns so having to double click each one is tedious. I'd rather just have them automatically all set to fit.

Hi Joe,
To get AccuTerm to respond to any given key combination, you need to create an action in the MENU and then assign that key combination to that action. In other words, when you press your key combination, you are actually running a menu action.

Cheers,

Brian


I have a GUI app that loads a delimited file into the AccuTerm GUI data grid. In the grid designer I only have one column and that one column is resizeable.  When I load multiple  columns by sending it a multi-valued header with multi-sub-valued data lines, the column widths all default to the same size. I notice that I can resize each individual by double clicking the separator on the header line.

My question is, can I send a command to tell the GUI runtime to resize all the columns based on the data?  Some of these files have 50+ columns so having to double click each one is tedious. I'd rather just have them automatically all set to fit.

 Hi Brian,

I don't have a menu on this application. It seems like I tried to play with menus a while back by creating a menu that wasn't visible but it didn't seem to respond to characters unless it was and active menu. Can you create a  hidden menu somewhere that would allow it to process the characters without an otherwise useless menu visible?


I have a GUI app that loads a delimited file into the AccuTerm GUI data grid. In the grid designer I only have one column and that one column is resizeable.  When I load multiple  columns by sending it a multi-valued header with multi-sub-valued data lines, the column widths all default to the same size. I notice that I can resize each individual by double clicking the separator on the header line.

My question is, can I send a command to tell the GUI runtime to resize all the columns based on the data?  Some of these files have 50+ columns so having to double click each one is tedious. I'd rather just have them automatically all set to fit.

If the app has a (keyboard) prompt _ some special pre-defined character strings (defined by Joe) _ could adjust (trim) column widths _ via UniBasic.   A slick enhancement would be to buzz through all of the data (rows) to determine the max string length of each column _ including column headers. 


I have a GUI app that loads a delimited file into the AccuTerm GUI data grid. In the grid designer I only have one column and that one column is resizeable.  When I load multiple  columns by sending it a multi-valued header with multi-sub-valued data lines, the column widths all default to the same size. I notice that I can resize each individual by double clicking the separator on the header line.

My question is, can I send a command to tell the GUI runtime to resize all the columns based on the data?  Some of these files have 50+ columns so having to double click each one is tedious. I'd rather just have them automatically all set to fit.

Your experience matches mine - a menu won't respond unless it is visible. I have checked the old Asent forum and came up with this post:

https://forum.asent.com/function-keys_topic773_post2851.html?KW=shortcut#2851

AccuTerm is a great product but it is a subset of what can be done in a full GUI development environment.

Brian