LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to edit top-left corner of multicolumn listbox?

Solved!
Go to solution

TopLeft Corner.jpg

 

I can change properties of the cell (-1, -1) but I don't know how to edit text.

Is it too simple or impossible?

 

Regards, 

Ljubo.

0 Kudos
Message 1 of 7
(5,396 Views)

You can make the row headers visible by properties (right-click), and select show row headers.Once you make them visible you should be able to edit text in headers.

Thanks
uday
0 Kudos
Message 2 of 7
(5,374 Views)

Row headers and column headers are already visible. Top left corner is not a row header.

 

Ljubo.

0 Kudos
Message 3 of 7
(5,370 Views)

The first question is why do you need that when you can select Rows and columns..!

Then I realize in Excel as well you can't change the 'Header Junction'. Its great that you programatically changed the color of the same.

Now if you are really interested to change the text of the cell (which is not a part of Column or a row header), you can disable rows and column headers and shift them to 1st row and 1st column of items as a column and row header then you can actually modify the left top corner cell (0,0)

Otherwise you can try finding the solution!

0 Kudos
Message 4 of 7
(5,347 Views)
Solution
Accepted by Ben

In Excel you can't change column headers (A, B, C ...) and row headers (1, 2, 3, ...).

I have a 2D array of Y data an 1D array of X data. X data is the same for all Y columns. The first idea was to use X values as Row Headers to give it special attention. There should be a header above the X data (name, quantity, unit ...). See example below.

SH_ 2016-08-09_0002.jpg

The solution is very simple: I created a Label and put over the top-left corner of the listbox.

 

Have a nice day, 

Ljubo.

Message 5 of 7
(5,339 Views)

I have a similar issue. My top left cell is too large and spoils aesthetics if left empty. I tried your great idea with the label. But what happens if you scale the table up/down (e.g. go into full screen)? Table resizes and label looses its correct position. Grouping the label with table does not seem helping.

0 Kudos
Message 6 of 7
(3,304 Views)

@KazimirK wrote:

But what happens if you scale the table up/down (e.g. go into full screen)?


You could add an event structure with a pane resize event for the pane the control is in and then use that to get the position and size of the cell and update the size of the overlay.


___________________
Try to take over the world!
0 Kudos
Message 7 of 7
(3,289 Views)