postformac Posted January 29, 2010 Report Share Posted January 29, 2010 Hi, I am using a property node to format the row and column headers in my tabe and I can't get the CellJustify property to work properly. The help documentation says the input should be an unsigned word Enum and the allowable values are Left, Center and Right. If I set an enum constant to Left then it works fine, if I change the same constant to Center or Right then I get a broken wire with the error "enumeration conflict". Could anyone please tell me why? Also I have coersion dots on my two ActiveCell inputs to the property node and I don't know why. I have followed the data types set in the help. I notice that the example program provided (linked from the help for the ActiveCell property) also has coersion dots on this input, is this how it should be? Thanks Quote Link to comment
Antoine Chalons Posted January 29, 2010 Report Share Posted January 29, 2010 I am using a property node to format the row and column headers in my tabe and I can't get the CellJustify property to work properly. The help documentation says the input should be an unsigned word Enum and the allowable values are Left, Center and Right. If I set an enum constant to Left then it works fine, if I change the same constant to Center or Right then I get a broken wire with the error "enumeration conflict". Could anyone please tell me why? Hi, Delete the enum you created, place your mouse cursor over the "Justification" property node, right click and select "create > constant", then chose the type of justification you want. Also I have coersion dots on my two ActiveCell inputs to the property node and I don't know why. I have followed the data types set in the help. I notice that the example program provided (linked from the help for the ActiveCell property) also has coersion dots on this input, is this how it should be? Same as before, in fact the cluster containing row index and column index is a typedef so if you link a cluster that you create, even if the type is fine you will see the coercion dot. If you create a constant from the property node then that will constant from the typedef and therefore you won't have the red dot. Hope this helps Quote Link to comment
postformac Posted January 29, 2010 Author Report Share Posted January 29, 2010 Oh I see, I had been creating the inputs manually I didn't realise you could do it like that. Problem solved, thank you very much for your help! Quote Link to comment
postformac Posted January 30, 2010 Author Report Share Posted January 30, 2010 As another question on the same theme - I am basically using my table to display a 2D array of strings opened from an external file. If I want to use the row and column headers to simply number the rows and columns is there an immediate way to do this or do I need to create two 1D arrays that contain all of the necessary numbers? My 2D array of data will vary in size depending on which file is opened so there is not always the same number of rows or columns. I know I can check the dimensions of the array and then create the necessary 1D arrays of numbers using loops but I'm just wondering if there is a more direct way to do it? Thanks Quote Link to comment
Antoine Chalons Posted February 1, 2010 Report Share Posted February 1, 2010 I know I can check the dimensions of the array and then create the necessary 1D arrays of numbers using loops but I'm just wondering if there is a more direct way to do it? I don't think there is another to do that. Quote Link to comment
postformac Posted February 1, 2010 Author Report Share Posted February 1, 2010 Ok thanks. Quote Link to comment
ooth Posted February 2, 2010 Report Share Posted February 2, 2010 On a related note. I usually want to make my table's column or row headers bold and centered. Is there an easy way to select all the column headers and then change their text format to bold? You can do that with the cells inside the table but not with the headers. What I usually do is create a property node and index through each cell and change the font properties. Thanks Quote Link to comment
Antoine Chalons Posted February 2, 2010 Report Share Posted February 2, 2010 On a related note. I usually want to make my table's column or row headers bold and centered. Is there an easy way to select all the column headers and then change their text format to bold? You can do that with the cells inside the table but not with the headers. What I usually do is create a property node and index through each cell and change the font properties. Thanks Sorry again.. this also what I do (index through all visible line/colums) to set cell font. On a side note, you can make this process much faster by setting to 'true' the "Defer Panel Upade" on the front panel that contains the control. hope this helps Quote Link to comment
Francois Normandin Posted February 2, 2010 Report Share Posted February 2, 2010 On a side note, you can make this process much faster by setting to 'true' the "Defer Panel Upade" on the front panel that contains the control. You can select an entire row or columm directly in one shot. With Defer Panel Updates, you'd get a fast execution and leaner code. Active Cell = {-1,-2} selects all column headers. Active Cell = {-2,-1} selects all row headers. 1 Quote Link to comment
Antoine Chalons Posted February 2, 2010 Report Share Posted February 2, 2010 You can select an entire row or columm directly in one shot. With Defer Panel Updates, you'd get a fast execution and leaner code. Active Cell = {-1,-2} selects all column headers. Active Cell = {-2,-1} selects all row headers. I didn't know about that, that's cool! Thanks Quote Link to comment
Rolf Kalbermatter Posted February 14, 2010 Report Share Posted February 14, 2010 I didn't know about that, that's cool! Thanks RTFM or in this case the online documentation. It is written in there for the table control. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.