1. Strange Edita behaviour...

Hi everybody!

Nowadays I only use Euphoria from time to time, but I keep my setup on the hard
disk.
This time I needed to write a short program and I found a strange behaviour on
Edita: At any time I try to insert a rigth bracket (']'), the cursor goes to
column 1 on that line and the insertion happens there.
I've downloaded the 0.3.1 version from Pete's site, and replaced the one I had
(probably was the 0.3.0), and the problem does persist.
Has anyone else experienced this?. I run WinXP pro. 

On the other hand, if I look at the version number in the about box, it does
tell it's 0.3.0 (even runnin edita stright from the downloaded .zip file).
Is this right?

Thanks in advance.
Jes.

new topic     » topic index » view message » categorize

2. Re: Strange Edita behaviour...

Jesus Consuegra wrote:
> 
> Hi everybody!
> 
> Nowadays I only use Euphoria from time to time, but I keep my setup on the
> hard
> disk.
> This time I needed to write a short program and I found a strange behaviour
> on Edita: At any time I try to insert a rigth bracket (']'), the cursor goes
> to column 1 on that line and the insertion happens there.
> I've downloaded the 0.3.1 version from Pete's site, and replaced the one I had
> (probably was the 0.3.0), and the problem does persist.
> Has anyone else experienced this?. I run WinXP pro. 
Can't say I've seen this.
Open Edita, close all files (to keep the ex.err small and readable) and start
with a new one. As soon as it goes wrong, use Tools/Crash and send me the ex.err,
which should have all the keystokes and cursor info etc I need, and I'll take a
look at it.

> On the other hand, if I look at the version number in the about box, it does
> tell it's 0.3.0 (even runnin edita stright from the downloaded .zip file).
> Is this right?
Yep, my bad.

Regards,
Pete

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

3. Re: Strange Edita behaviour...

Pete Lomax wrote:

> Can't say I've seen this.
> Open Edita, close all files (to keep the ex.err small and readable) and start
> with a new one. As soon as it goes wrong, use Tools/Crash and send me the
> ex.err,
> which should have all the keystokes and cursor info etc I need, and I'll take
> a look at it.

Ok, already done!.
 
> Yep, my bad.

No problem!, just to be sure I was running the latest.
Thanks a lot!.

Best regards,
Jes.

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

4. Re: Strange Edita behaviour...

Jesus Consuegra wrote:
> 
> Pete Lomax wrote:
> 
> > Can't say I've seen this.
> > Open Edita, close all files (to keep the ex.err small and readable) and
> > start
> > with a new one. As soon as it goes wrong, use Tools/Crash and send me the
> > ex.err,
> > which should have all the keystokes and cursor info etc I need, and I'll
> > take
> > a look at it.
> 
> Ok, already done!.

Ah, got that thanks, but nothing apparent where I expected it.
Can you try much the same thing, this time in the new file type Ctrl F8, then
"here -->]" followed by Tools/Crash.

Thanks,
Pete

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

5. Re: Strange Edita behaviour...

Hi Pete, 
sent!.
Thanks.
Jes.

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

6. Re: Strange Edita behaviour...

Still no joy.

Can you try running the following program and detail what happens:
include arwen.ew

constant DEMO = create(Window,	"Can you get two OK to appear?", 0, 0,
50,50,400,100,0)
constant LBL = create(Label,"press X",0,DEMO,10,10,200,25,0)
constant LBL2 = create(Label,"",	0,DEMO,10,40,200,25,0)

integer stage
	stage=1

sequence kset
	 kset={}

function handler_DEMO(integer id, integer msg, atom wParam, object lParam)

    if msg = WM_CHAR then
	kset=append(kset,{msg,stage,wParam,lParam})
	if stage = 1 and find(wParam,"xX") then
	    setText(LBL,"OK")
	    stage = 2
	    setText(LBL2,"press ]")
	elsif stage = 2 and wParam = ']' then
	    setText(LBL2,"OK")
	    stage = 3
	else
	    if find(wParam,"qQ") then ?9/0 end if
	    id = 0
	end if
    elsif msg = WM_KEYDOWN then
	kset=append(kset,{msg,stage,wParam,lParam})
	if not(stage=1 and find(wParam,"xX"))
	and not(stage=2 and find(wParam,{']'+128})) then
	    id = 0
	end if
    elsif msg = WM_SYSKEYDOWN then
	if not(stage=3 and find(wParam,{VK_MENU,VK_F4,' '})) then
	    kset=append(kset,{msg,stage,wParam,lParam})
	    id = 0
	end if
    elsif msg = WM_SYSCHAR and wParam!=' ' then
	kset=append(kset,{msg,stage,wParam,lParam})
	id = 0
    end if
    if id=0 then
	setText(LBL2,"Error: press Q for error report")
	stage = 3
    end if
    return 0
end function
setHandler(DEMO, routine_id("handler_DEMO"))

WinMain(DEMO, SW_NORMAL)


Regards,
Pete

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

7. Re: Strange Edita behaviour...

Hi Pete,
I've installed Euphoria/Edita in another machine, and the behaviour is the same.
Maybe something related to the spanish locals maybe.
Running your test program, there is a small dialog window that first asks for
pressing a "X" and afterwards to press "]". After hitting "]" says there is an
error and asks to press Q to generate error file.
(Sent ex.err to ypu via email),
Thanks!.
Jes.

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

8. Re: Strange Edita behaviour...

Jesus Consuegra wrote:
> 
> Hi Pete,
> Running your test program, 
> (Sent ex.err to you via email),
Ah, thanks, finally I think we're getting somewhere!

> Maybe something related to the spanish locals maybe.
Seems so. Three questions:
1) do you have to ctrl-alt-something to get a ']'?
2) (to the list) Does anyone know what a
  WM_KEYDOWN, wParam=187, lParam=#201B0001 actually is?
  None of my guesses, being VK_F12+64, or 59';'+128, or 91'['+64+32
  seem to make any sense. Maybe the answer to 1) will clarify this.
  Also, according to my docs, bit 29 is always 0 for WM_KEYDOWN,
  but it seems m$ changed that for windows CE only?
3) can you try changing line 5013(ish) of edita.exw from
elsif control then

to
elsif not getKeyState(VK_MENU) and control then

and see if it fixes the problem.

Regards,
Pete

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

9. Re: Strange Edita behaviour...

Pete Lomax wrote:
> 
> Jesus Consuegra wrote:
> > 
> > Hi Pete,
> > Running your test program, 
> > (Sent ex.err to you via email),
> Ah, thanks, finally I think we're getting somewhere!
> 
> > Maybe something related to the spanish locals maybe.
> Seems so. Three questions:
> 1) do you have to ctrl-alt-something to get a ']'?

On the spanish keyboard, the ] character is gotten through ctrl-alt-+, the "+"
being two keys right from the P key, like on US keyboards.
On french keyboards, it is ctrl-alt-), the ) being on the right of the 0 (zero)
key ( - on the US keyboard).
AltGr (right alt key on continental keyboards) automatically translates to
ctrl-alt, so that we use this single shift rather than ctrl-alt.

More info on these topics here:
http://en.wikipedia.org/wiki/Keyboard_layout

> 2) (to the list) Does anyone know what a
>   WM_KEYDOWN, wParam=187, lParam=#201B0001 actually is?
>   None of my guesses, being VK_F12+64, or 59';'+128, or 91'['+64+32
>   seem to make any sense. Maybe the answer to 1) will clarify this.
>   Also, according to my docs, bit 29 is always 0 for WM_KEYDOWN,

Actually, WM_SYSKEYDOWN is emitted, and there are cases where bit 29 is 1,
namely when there is no active window to get the keystroke.

CChris

>   but it seems m$ changed that for windows CE only?
> 3) can you try changing line 5013(ish) of edita.exw from
> }}}
<eucode>
> 	elsif control then
> </eucode>
{{{

> to
> }}}
<eucode>
> 	elsif not getKeyState(VK_MENU) and control then
> </eucode>
{{{

> and see if it fixes the problem.
> 
> Regards,
> Pete

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

10. Re: Strange Edita behaviour...

To your question:
In the spanish keyboard, to get a "]" you have to press [ALT GR][+].
The Plus key is located differently than in english keyboards, next to the top
of the big return key.
Best regards,
Jes.

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

11. Re: Strange Edita behaviour...

Hi Pete,
The workaround fixes the problem!
Thanks a lot!!!!
Best regards,
Jes.

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

12. Re: Strange Edita behaviour...

Jesus Consuegra wrote:
> 
> Hi Pete,
> The workaround fixes the problem!
> Thanks a lot!!!!
Great, that mod (slightly tweaked, see below) will be in the next release,
whenever that is.

CChris wrote:

More info on these topics here:
http://en.wikipedia.org/wiki/Keyboard_layout

Thanks, that helped me realise a few things. I can now see that Edita
potentially has similar problems with ><+-CXMULIW keys, just need to make sure
that not both ctrl and alt are down in virtualKey() and sysKey(), and certainly
avoid mapping alt keys to ctrl keys since that just confuses everyone, including
me smile

Regards,
Pete

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

Search



Quick Links

User menu

Not signed in.

Misc Menu