01-18-2011 05:01 AM
Hello,
I am a new user of labview and sorry for my english.
I have a two dimensions tab on my front panel. And i want to the user can modify some values but i want some values stay unmodifiable.
Please help me !
01-18-2011 05:12 AM
Can you show us what have you done so far?
01-18-2011 07:41 AM
@Guigs wrote:
Hello,
I am a new user of labview and sorry for my english.
I have a two dimensions tab on my front panel. And i want to the user can modify some values but i want some values stay unmodifiable.
Please help me !
You have tow options (that come to mind quickly but don't require a lot of support code).
1) Use a picture control that has a transparent background to cover all of teh stuff where the use should not click. (old shool solution).
2) Replace the table with an array of clusters and disable those elements in the cluster that should not be edited.
There are other things but they require work.
Ben
01-18-2011 12:00 PM
Hello,
I don't find your solution can you help me please.
It's a 9X9 tab (from the sudoku)
And when i will load a tab, it will have some areas still complete so the user must not change these.
Thank you for your help.
01-18-2011 12:49 PM
Touche pas? Pourquois pas?
A little English correction. "Tableau" in English is an "Array"
I know of no way to make some elements of an array unchangeable. Either the whole array is disabled (user cannot change) or the whole array is enabled. What you might do is to create a 9x9 boolean array and put True where the element is allowed to be changed. Then use a Value Change event to read the boolean array. If the element changed is True in the boolean array, let it happen. If False, overwrite the array with its original value.
This is not an easy project for a beginner.
Bonne Chance.
01-18-2011 12:54 PM
If it will always be a specific, fixed size (9X9 in this case) then possibly you can use a cluster rather than an array and do what is recommended in this thread
01-20-2011 06:04 PM
Hello everybodyI did not really manage to make what I wantedVoila or I am thereWhen I change a value which is in the picture(board) and differente of 0 (a value of origin) one limps with dialogue appears and the picture(board) resumes(takes back) the precedente ca value it is goodBut if we change a zero then one the change there is an error I shall not want any more it (we have to can change a compartment empty of origin as often as we want him(it))
01-20-2011 06:41 PM - edited 01-20-2011 06:41 PM
Here is a quick draft that only allows changing elements that are zero.
Trying to change an element that is already different from zero is rejected.
Maybe you can modify it for your purpose. Good luck! 🙂
01-21-2011 04:05 AM
01-21-2011 10:24 AM - edited 01-21-2011 10:27 AM
You can add as many different cases as you want to the inner case structure of my code. (Your example was way too complicated for such a simple problem!)
(Sorry, your questions are very difficult to understand. Do you use an online translator? Maybe it would be better if you could post in your native language instead.)