Sriram wrote:
Yes What I am trying to say in my previous mail is this:
L1 L2 L3 L4
TF1 TF2 TF3 TF4 Add
When "Add" is clicked, becomes this:
(No label here the above label remains for this....)
TF5 TF6 TF7 TF8 Add
TF9 TF10 TF11 TF12 Add
and so on....
i.e.
Initial state
+-------------------------+
| L1 L2 L3 L4 |
| TF01 TF02 TF03 TF04 Add |
+-------------------------+
After Add clicked
+-------------------------+
| L1 L2 L3 L4 |
| TF01 TF02 TF03 TF04 |
| TF05 TF06 TF07 TF08 Add |
+-------------------------+
After Add clicked again
+-------------------------+
| L1 L2 L3 L4 |
| TF01 TF02 TF03 TF04 |
| TF05 TF06 TF07 TF08 |
| TF09 TF10 TF11 TF12 Add |
+-------------------------+
You should be able to work out how to change my example that added
columns and make it add rows instead.
- * -
Your requirements are very odd. Are you sure you have not misunderstood
what your professor wanted?
Maybe he wanted something like ...
+---------------------------------+
| Name Age Kg $$$ |
| [ ] [ ] [ ] [ ] (Add) |
| +-----------------------------+ |
| | | |
| | | |
| | | |
| +-----------------------------+ |
+---------------------------------+
Enter some data
+---------------------------------+
| Name Age Kg Pts |
| [Mary] [ 18] [65] [987] (Add) |
| +-----------------------------+ |
| | | |
| | | |
| | | |
| +-----------------------------+ |
+---------------------------------+
Click "Add"
+---------------------------------+
| Name Age Kg Pts |
| [ ] [ ] [ ] [ ] (Add) |
| +-----------------------------+ |
| | 1: Mary 18 65 987 | |
| | | |
| | | |
| +-----------------------------+ |
+---------------------------------+
Enter some data
+---------------------------------+
| Name Age Kg Pts |
| [Eric] [ 22] [80] [233] (Add) |
| +-----------------------------+ |
| | 1: Mary 18 65 987 | |
| | | |
| | | |
| +-----------------------------+ |
+---------------------------------+
Click "Add"
+---------------------------------+
| Name Age Kg Pts |
| [ ] [ ] [ ] [ ] (Add) |
| +-----------------------------+ |
| | 1: Mary 18 65 987 | |
| | 2: Eric 22 80 233 | |
| | | |
| +-----------------------------+ |
+---------------------------------+
Which would be more conventional.
more desirable ... However I tried experimenting with your program to
clicks ..