Sign in to follow this  
EOlsen

Table Component

Recommended Posts

When working with a table component add a variable or a function call that will indicate which array values in a large, scrolling table are currently being displayed.

 

Provide an option to allow numbers to be displayed in hex.

Share this post


Link to post
Share on other sites

As I believe I mentioned, you can display numbers as hex using the format() function.  For tables, you'd probably have to create a string array with the converted values.  Making hex an option on the table itself is probably not going to happen.  Its a bit of a fringe case, can be achieved using other, relatively simple means, and as soon as we add it, someone will request a different format.  We try and make the parts of DAQFactory cover common cases, but when you need to do something unique, the script is there to achieve what you want.  To make the higher level parts cover every case would very quickly get unwieldy.

 

The first request, however, we can do. 

Share this post


Link to post
Share on other sites

OK, we've done the first request.  It was quite easy.  There are two new parameters, "TopRow" and "LeftCol".  TopRow is the row number of the top displayed row.  This is a writable variable, so you can change the row from script.  LeftCol is the table column # of the left most visible column.  It is not, at present writable.  As usual, we number from 0.  This will be in 5.90.9+, or email us directly for a patch so you can use it now.

Share this post


Link to post
Share on other sites

Thanks for the update. Very nice.

 

Just one question. Isn't LeftCol always going to be 0 since the table doesn't scroll horizontally? How would display the table where LeftCol wasn't 0?

Share this post


Link to post
Share on other sites

The table will scroll horizontally if needed.  If all your columns fit inside the component, then no horizontal scroll bar is shown, and yes, LeftCol is always 0.  The same really goes if you only have a few rows and they all fit vertically.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this