1. Edita and Win8

Hallo

I mostly use Edita for editing Euphoria files. To make sure my little programs work also under more modern Operating Systems ,i have a Win8 Release Preview Build 8400 64bit installed.

Now i tried to use Edita (3.5.0) with Win8, the Editor works fine except if i like to open an existing file. It seems that the File OpenDialog in Win8 does not return the full Filename, if the File extension is associateed to a program. Like .exw to euiw.exe. I was able to work around this when i changed an Option for Displaying Filenames in a Folder. Mean i enabled the Option of Displaying the extension of a Filename, if the extension is known by the system and normally would be hidden.

It's a little hard for me to explain as i use a German Windows Version ;)

My tinEWG Filedialog seems to not have this problem, so i think it is in 'arwen' the underlying wrapper for Edita.

Win32lib seems to work with Win8 (only a few tests), but he IDE seems to have some problems, where a precompiled Version (compiled under WinXP and Watcom) seems to work.

If someone knows a little more about Win8 it would be nice to tell me.

BTW all tests are with OpenEuphoria 4.0.4 32 bit (partly with 4.0.5 32 bit and 4.1.0 64bit) the second (64bit) is not really tested.

Thank you Andreas

new topic     » topic index » view message » categorize

2. Re: Edita and Win8

andi49 said...

It seems that the File OpenDialog in Win8 does not return the full Filename, if the File extension is associateed to a program. Like .exw to euiw.exe. I was able to work around this when i changed an Option for Displaying Filenames in a Folder. Mean i enabled the Option of Displaying the extension of a Filename, if the extension is known by the system and normally would be hidden.

I disable extension hiding whenever I get on a new machine (which I do at least 30 times a year at work).
I just tested turning it back on (Win7) and it seemed fine here.
At home I have Win7, at work mainly 2008R2, no sign of me getting anywhere near a Win8 box any time soon.

Can you try this test (I put it in Program Files (x86)\Edita).
Note this is Phix, apologies if you have problems getting this to run on Eu4 (you may need to create a test directory and bung copies of all the include files needed into it).

include arwen/arwen.ew 
include builtins/ppp.e 
constant filter= 
{"All Files", "*.*", "None files", {}, "bat files (*.bat)", "*.bat", 
 "C files (*.c;*.h;*.cpp)", "*.c;*.h;*.cpp", "Delphi files (*.pas)", 
 "*.pas", 
 "Euphoria files (*.e;*.ex;*.ew;*.exw;*.exwc;*.eu;*.exu;*.exh;*.pro;*.ewx;*.eui)", 
 "*.e;*.ex;*.ew;*.exw;*.exwc;*.eu;*.exu;*.exh;*.pro;*.ewx;*.eui", 
 "FASM files (*.asm;*.inc)", "*.asm;*.inc", 
 "Html files (*.htm;*.html;*.php;*.hhc;*.hhk;*.clr)", 
 "*.htm;*.html;*.php;*.hhc;*.hhk;*.clr", "perl files (*.pl)", "*.pl", 
 "Python files (*.py)", "*.py", "Ruby files (*.rb;*.rbw)", "*.rb;*.rbw", 
 "SQL files (*.sql)", "*.sql"} 
constant path=current_dir() 
constant Main=0 
sequence name 
    name = getOpenFileName(Main,path&"*.*",filter,OFN_HIDEREADONLY) 
 
pp(name) 
if getc(0) then end if 

The question is whether the returned string ends with .exw or whatever, with & without hidden extensions.

Pete

new topic     » goto parent     » topic index » view message » categorize

3. Re: Edita and Win8

Hallo

Thanks for you reply

I tried your testprogram (with phix and eu4.0.4) with the same result. The program returns the fullname including the extension. But there is one thing, i had to change the empty Sequence for the "None files". I choose "*.". See Code sippet below. If i use the empty Sequence, all the filters after "None files" disappear. The same happens in Edita.

include arwen/arwen.ew 
include builtins/ppp.e 
constant filter= 
{"All Files", "*.*", "None files", {}, "bat files (*.bat)", "*.bat",  
... 

changed to ...

{"All Files", "*.*", "None files", "*.", "bat files (*.bat)", "*.bat",  
petelomax said...

The question is whether the returned string ends with .exw or whatever, with & without hidden extensions.

Pete

Yes, your Code returns the full name including the extension.No difference with or without hidden extensions. Also, i still use a Preview release of Win8. Maybe someone with a final release can tell if this is still an issue.

Thanks Andreas

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu