Hello.
Thank you for your answer which corresponds exactly to my question.It works perfectly.
The problem is, my question was wrong.
The correct question is: how do you know if the user clicked on "Load" or "Cancel".
Another question: can you explain how the parameters work: "stFilter" and "bTouch".
When I put '.ini' or 'ini' in stFilter I expect to only view "ini" files.
This is not the case.
thank you so much
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thats a good question. I made it in this way that is looked on the error code. If user canceled the error code will show an error. if he user "load" it will give you a done.
that was for me the only way to handle this problem.
Where do you get this parameters?: "stFilter" and "bTouch"
what error code are you talking about?
What returns this error code ?
The parameters "stFilter" and "bTouch" are 2 inputs of the Visu_FbFileListProvider.Iniatialize() method.
It's ok for "stFilter";i saw how does it work in the VisuDialogSt example. But i don't understand what is "bTouch".
It make sense if you enter a file/dir name (for example, you create new directory)
bTouch := TRUE ---> using "virtual" keyboard (Keypad from VisuDialogs)
bTouch := FALSE ---> using hardware keyboard (you got just text input field with blinking cursor)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey,
ah sorry i see, i muddled up with file transfering. There is also an dialog for opening files, but a different one.
Hmm i tried to have a look if i can find something for "btouch" but it seems that this is absolutely undocumented.
I think it has something to do with the buttons of this dialog?!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi. I try to use the visu Dialog "VisuDialogs.FileOpenSave;"
When i open this dailog, all is display correctly.
When the Dialog is closed, the file name selected by the user is available by calling the GetSelectedFileName method.
My question is : how to know when this Dialogs windows is closed.
Thank you
more posts ...
Hello.
Thank you for your answer which corresponds exactly to my question.It works perfectly.
The problem is, my question was wrong.
The correct question is: how do you know if the user clicked on "Load" or "Cancel".
Another question: can you explain how the parameters work: "stFilter" and "bTouch".
When I put '.ini' or 'ini' in stFilter I expect to only view "ini" files.
This is not the case.
thank you so much
Thats a good question. I made it in this way that is looked on the error code. If user canceled the error code will show an error. if he user "load" it will give you a done.
that was for me the only way to handle this problem.
Where do you get this parameters?: "stFilter" and "bTouch"
Do you used this example?
https://store.codesys.com/alle-produkte/visu-file-transfer-example.html
Hi sedoeer.
what error code are you talking about?
What returns this error code ?
The parameters "stFilter" and "bTouch" are 2 inputs of the Visu_FbFileListProvider.Iniatialize() method.
It's ok for "stFilter";i saw how does it work in the VisuDialogSt example. But i don't understand what is "bTouch".
This link doesn't work
https://store.codesys.com/alle-produkte/visu-file-transfer-example.html
On CoDeSys store, the "Visu File Transfer Example" can't be downloaded. An error msg is send back "Error 403
Admin access required"
Thank you
About bTouch.
It make sense if you enter a file/dir name (for example, you create new directory)
bTouch := TRUE ---> using "virtual" keyboard (Keypad from VisuDialogs)
bTouch := FALSE ---> using hardware keyboard (you got just text input field with blinking cursor)
Ok Thank you very much.
Hey,
ah sorry i see, i muddled up with file transfering. There is also an dialog for opening files, but a different one.
Hmm i tried to have a look if i can find something for "btouch" but it seems that this is absolutely undocumented.
I think it has something to do with the buttons of this dialog?!
Yes of course the solution is into the Button code or in the Function block.
Is the source code of its librairy is available ?