moster67 Expert Licensed User Longtime User Aug 18, 2009 #21 It seems that within CF.NET the class System.IO.FileInfo supports getting and settings attributes. Maybe you can use the Door-library somehow to set the attributes although I can't say since I never used it. In addition, I don't know if a "font" is considered a file. Here is some sample code in C# which I found: Code: Copy FileInfo fi = new FileInfo(fileLocation); if((FileAttributes.ReadOnly) == (fi.Attributes & FileAttributes.ReadOnly)) // bitwise comparison { fi.Attributes -= FileAttributes.ReadOnly; // remove the readonly attribute } Maybe you can write your own specific library for this purpose or maybe Erel can give you a helping hand with that. EDIT: - It seems like Filippo's http://www.b4x.com/forum/additional-libraries/1238-fgcontrols-library.html#post6485 supports setting attributes. Good luck. Last edited: Aug 18, 2009
It seems that within CF.NET the class System.IO.FileInfo supports getting and settings attributes. Maybe you can use the Door-library somehow to set the attributes although I can't say since I never used it. In addition, I don't know if a "font" is considered a file. Here is some sample code in C# which I found: Code: Copy FileInfo fi = new FileInfo(fileLocation); if((FileAttributes.ReadOnly) == (fi.Attributes & FileAttributes.ReadOnly)) // bitwise comparison { fi.Attributes -= FileAttributes.ReadOnly; // remove the readonly attribute } Maybe you can write your own specific library for this purpose or maybe Erel can give you a helping hand with that. EDIT: - It seems like Filippo's http://www.b4x.com/forum/additional-libraries/1238-fgcontrols-library.html#post6485 supports setting attributes. Good luck.
agraham Expert Licensed User Longtime User Aug 19, 2009 #22 You should always check http://www.b4x.com/forum/additional-libraries/3314-dll-version-listings.html when you want additional functionality. My http://www.b4x.com/forum/additional...brary-returns-file-information.html#post10051 adds extra directory and file manipulations not present in Basic4ppc.
You should always check http://www.b4x.com/forum/additional-libraries/3314-dll-version-listings.html when you want additional functionality. My http://www.b4x.com/forum/additional...brary-returns-file-information.html#post10051 adds extra directory and file manipulations not present in Basic4ppc.
derez Expert Licensed User Longtime User Aug 19, 2009 #23 Andrew I did use your filesEx : I save the font file to the device in a different name (instead of .TTF) and then I run a small application to rename the file to the correct name. I think I am almost there - the process works, I get an error after the renaming application is copied but for this one I can use errorlabel :sign0060:
Andrew I did use your filesEx : I save the font file to the device in a different name (instead of .TTF) and then I run a small application to rename the file to the correct name. I think I am almost there - the process works, I get an error after the renaming application is copied but for this one I can use errorlabel :sign0060:
IoSonoPiero Active Member Licensed User Longtime User Aug 19, 2009 #24 derez said: Andrew I did use your filesEx : I save the font file to the device in a different name (instead of .TTF) and then I run a small application to rename the file to the correct name. I think I am almost there - the process works, I get an error after the renaming application is copied but for this one I can use errorlabel :sign0060: Click to expand... Good, then. The app is now completely working?
derez said: Andrew I did use your filesEx : I save the font file to the device in a different name (instead of .TTF) and then I run a small application to rename the file to the correct name. I think I am almost there - the process works, I get an error after the renaming application is copied but for this one I can use errorlabel :sign0060: Click to expand... Good, then. The app is now completely working?