Re: Antwort: Re: Antwort: Re: downgrade a 5-button- to a 3-button-mouse

2005-04-19 Thread Alexander Gottwald
On Tue, 19 Apr 2005, Igor Pechtchanski wrote:

> > NB. I had a problem in using msgtest.exe from a bash prompt.
> > The X server was active, but no window appeared and msgtest.exe
> > didn't spew any messages. I had to start a xterm from the bash
> > prompt and then start msgtest.exe.
> 
> In bash, you needed to say
> 
> "DISPLAY=127.0.0.1:0.0 msgtest"
> 
> In an xterm, the DISPLAY is already set.

I doubt this is the problem since this is a pure win32 application.
Not even linked to libX11.

I think I accidently linked it with -mwindows.

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723


Re: Antwort: Re: Antwort: Re: downgrade a 5-button- to a 3-button-mouse

2005-04-19 Thread Igor Pechtchanski
On Tue, 19 Apr 2005, Hermann-Josef Beckers wrote:

> cygwin-xfree-ownercygwincom schrieb am 18.04.2005 18:54:11:

.  Thanks.

> > I've placed a small program on
> > http://www.tu-chemnitz.de/~goal/xfree/msgtest.exe which will dump the
> > messages to the console. Please run it and report what it prints when
> > pressing the onscreen keys and what it reports when pressing the
> > physical key.
>
> Attached two files:
>
> keyboard.out contains the messages, when entering F6 via the attached
> keyboard.
> menu.out contains the messages generated by clicking the button
> labeled F6 in the panel.
>
> NB. I had a problem in using msgtest.exe from a bash prompt.
> The X server was active, but no window appeared and msgtest.exe
> didn't spew any messages. I had to start a xterm from the bash
> prompt and then start msgtest.exe.

In bash, you needed to say

"DISPLAY=127.0.0.1:0.0 msgtest"

In an xterm, the DISPLAY is already set.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT


Re: Antwort: Re: Antwort: Re: downgrade a 5-button- to a 3-button-mouse

2005-04-19 Thread Alexander Gottwald
On Tue, 19 Apr 2005, Hermann-Josef Beckers wrote:

> keyboard.out contains the messages, when entering F6 via the attached 
> keyboard.
> menu.out contains the messages generated by clicking the button 
> labeled F6 in the panel.

The log from keyboard.out shows the keypress

WindowProc: HWND 0075 0041 WM_KEYDOWN
WindowProc: HWND 0075 c041 WM_KEYUP

The menu.out log has no indication that anything happend. Unless I get
more information on the type of display and how the on screen keys work
I can not provide a solution.

> NB. I had a problem in using msgtest.exe from a bash prompt. 
> The X server was active, but no window appeared and msgtest.exe
> didn't spew any messages. I had to start a xterm from the bash
> prompt and then start msgtest.exe.

I only tested it with xterm, so I did notice this before.

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723


Antwort: Re: Antwort: Re: downgrade a 5-button- to a 3-button-mouse

2005-04-19 Thread Hermann-Josef Beckers
[EMAIL PROTECTED] schrieb am 18.04.2005 18:54:11:


> 
> I've placed a small program on http://www.tu-chemnitz.
> de/~goal/xfree/msgtest.exe
> which will dump the messages to the console. Please run it and report 
> what it prints when pressing the onscreen keys and what it reports 
> when pressing the physical key.
> 

Attached two files:



keyboard.out contains the messages, when entering F6 via the attached 
keyboard.
menu.out contains the messages generated by clicking the button 
labeled F6 in the panel.

NB. I had a problem in using msgtest.exe from a bash prompt. 
The X server was active, but no window appeared and msgtest.exe
didn't spew any messages. I had to start a xterm from the bash
prompt and then start msgtest.exe.

Yours
hjb

keyboard.out
Description: Binary data


menu.out
Description: Binary data


Re: Antwort: Re: downgrade a 5-button- to a 3-button-mouse

2005-04-18 Thread Alexander Gottwald
On Mon, 18 Apr 2005, Hermann-Josef Beckers wrote:

> Problem is there is no real mouse, only the pen/stylus acting
> as a mouse. The mailinglist has a short thread (2 messages) from
> march 2003; Harold suggestesd using -multiwindow: it is activated,
> no chance.

For windows there are basicly two input devices. Keyboards and mice. 
Keyboards will generate keypress and release events (WM_KEYDOWN). 
Mice produce button press and relese events (WM_[LMRX]BUTTONDOWN) 
for the left, middle, right and extra buttons. 

The WM_KEYUP has two kind of key information attached. The raw keyboard
scancodes and the codes after applying the keyboard layout. Cygwin/X 
only uses the raw scancodes. If they don't match the real key it is very 
likely the key is not recognized.

I've placed a small program on http://www.tu-chemnitz.de/~goal/xfree/msgtest.exe
which will dump the messages to the console. Please run it and report 
what it prints when pressing the onscreen keys and what it reports 
when pressing the physical key.

> KeyRelease event, serial 13, synthetic NO, window 0x80051f,
> root 0x3a, subw 0x0, time 1481218, (90,39), root:(176,413),
> state 0x0, keycode 8 (keysym 0x0, NoSymbol), same_screen YES,
> XLookupString gives 0 bytes: 

This is just the release. There was no keypress event. Either some flags
are wrong or the scancode was not right.

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723


Antwort: Re: downgrade a 5-button- to a 3-button-mouse

2005-04-18 Thread Hermann-Josef Beckers
[EMAIL PROTECTED] schrieb am 18.04.2005 15:39:43:

> 
> Cygwin/X will use a 3button mouse by default and ask windows how 
> many additional
> buttons the mouse supports. I'm have no idea how these special 
> function keys are 
> supposed to work, but functions keys which depend on a mouse settingare 
broken
> in my opinion. 
> 
Problem is there is no real mouse, only the pen/stylus acting
as a mouse. The mailinglist has a short thread (2 messages) from
march 2003; Harold suggestesd using -multiwindow: it is activated,
no chance.

> You may check with xev if the keys are somehow recognized in 
> Cygwin/X nevertheless.

Following are three xev-traces from entering the panel, 
clicking the button labeled F6 and leaving.


Run 1:

EnterNotify event, serial 13, synthetic NO, window 0x80051f,
root 0x3a, subw 0x800533, time 1469359, (55,0), root:(141,374),
mode NotifyNormal, detail NotifyNonlinearVirtual, same_screen YES,
focus YES, state 0

KeymapNotify event, serial 13, synthetic NO, window 0x0,
keys:  58  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0 
   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0 

VisibilityNotify event, serial 13, synthetic NO, window 0x80051f,
state VisibilityPartiallyObscured

VisibilityNotify event, serial 13, synthetic NO, window 0x80051f,
state VisibilityUnobscured

ConfigureNotify event, serial 13, synthetic NO, window 0x80051f,
event 0x80051f, window 0x80051f, (86,374), width 202, height 173,
border_width 0, above 0x800427, override NO

ConfigureNotify event, serial 13, synthetic NO, window 0x80051f,
event 0x80051f, window 0x80051f, (86,374), width 202, height 173,
border_width 0, above 0xa1, override NO

ConfigureNotify event, serial 13, synthetic NO, window 0x80051f,
event 0x80051f, window 0x80051f, (86,374), width 202, height 173,
border_width 0, above 0x800427, override NO

VisibilityNotify event, serial 13, synthetic NO, window 0x80051f,
state VisibilityPartiallyObscured

VisibilityNotify event, serial 13, synthetic NO, window 0x80051f,
state VisibilityUnobscured

KeyRelease event, serial 13, synthetic NO, window 0x80051f,
root 0x3a, subw 0x0, time 1481218, (90,39), root:(176,413),
state 0x0, keycode 8 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes: 

VisibilityNotify event, serial 16, synthetic NO, window 0x80051f,
state VisibilityPartiallyObscured

VisibilityNotify event, serial 16, synthetic NO, window 0x80051f,
state VisibilityUnobscured

VisibilityNotify event, serial 16, synthetic NO, window 0x80051f,
state VisibilityPartiallyObscured

VisibilityNotify event, serial 16, synthetic NO, window 0x80051f,
state VisibilityUnobscured

LeaveNotify event, seria

Second try:


EnterNotify event, serial 13, synthetic NO, window 0x80051f,
root 0x3a, subw 0x800533, time 1569578, (159,14), root:(245,388),
mode NotifyNormal, detail NotifyNonlinearVirtual, same_screen YES,
focus YES, state 0

KeymapNotify event, serial 13, synthetic NO, window 0x0,
keys:  58  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0 
   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0 

LeaveNotify event, serial 13, synthetic NO, window 0x80051f,
root 0x3a, subw 0x800533, time 1570375, (83,-12), root:(169,362),
mode NotifyNormal, detail NotifyVirtual, same_screen YES,
focus YES, state 0

ConfigureNotify event, serial 13, synthetic NO, window 0x80051f,
event 0x80051f, window 0x80051f, (86,374), width 202, height 173,
border_width 0, above 0xa1, override NO

ConfigureNotify event, serial 13, synthetic NO, window 0x80051f,
event 0x80051f, window 0x80051f, (86,374), width 202, height 173,
border_width 0, above 0xa1, override NO

EnterNotify event, serial 13, synthetic NO, window 0x80051f,
root 0x3a, subw 0x800533, time 1571937, (112,13), root:(198,387),
mode NotifyNormal, detail NotifyVirtual, same_screen YES,
focus YES, state 0

KeymapNotify event, serial 13, synthetic NO, window 0x0,
keys:  58  0   0   0   0   0   0   0   0   0   0   0   0   0   0   0 
   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0 

LeaveNotify event, serial 13, synthetic NO, window 0x80051f,
root 0x3a, subw 0x800533, time 1572000, (222,81), root:(308,455),
mode NotifyNormal, detail NotifyNonlinearVirtual, same_screen YES,
focus YES, state 0

EnterNotify event, serial 13, synthetic NO, window 0x80051f,
root 0x3a, subw 0x800533, time 1581203, (185,18), root:(271,392),
mode NotifyNormal, detail NotifyNonlinearVirtual, same_screen YES,
focus YES, state 0


Third try:

EnterNotify event, serial 13, synthetic NO, window 0x80051f,
root 0x3a, subw 0x800533, time 3836140, (162,1), root:(248,375),
mode NotifyNormal, detail NotifyNonlinearVirtual, same_screen YES,
focus YES, state 0

KeymapNotify event, serial 13, synthetic NO, window 0x0,
keys:  58  0

Re: downgrade a 5-button- to a 3-button-mouse

2005-04-18 Thread Alexander Gottwald
On Mon, 18 Apr 2005, Hermann-Josef Beckers wrote:

> We are running a propietary application on a tablet pc  (windows XP 
> Tablet-PC-Edition).. Most
> everything works, but there is a small glitch: For handling reasons some 
> (function-)keys
> are combined into a small panel. Clicking the keys with the pen has no 
> effect. Entering these
> keys with the virtual keyboard or a real attached keyboard works.
> 
> From the support-line:
> "This application DGK5 supports the configuration of a 3-button-mouse 
> only. In Cygwin is a
> 5-button-mouse configured. You have to configure the Cygwin-X-server in 
> such a way,
> that a 3-button-mouse is recognized."
> 
> HOW? 
> A Xfree-conf-file isn't used in Cygwin (AFAIK). "-emulate3buttons" has no 
> effect, as it works 
> the other way up (3 buttons on a 2-button-mouse). 

Cygwin/X will use a 3button mouse by default and ask windows how many additional
buttons the mouse supports. I'm have no idea how these special function keys 
are 
supposed to work, but functions keys which depend on a mouse setting are broken
in my opinion. 

You may check with xev if the keys are somehow recognized in Cygwin/X 
nevertheless.

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723


downgrade a 5-button- to a 3-button-mouse

2005-04-18 Thread Hermann-Josef Beckers
We are running a propietary application on a tablet pc  (windows XP 
Tablet-PC-Edition).. Most
everything works, but there is a small glitch: For handling reasons some 
(function-)keys
are combined into a small panel. Clicking the keys with the pen has no 
effect. Entering these
keys with the virtual keyboard or a real attached keyboard works.

>From the support-line:
"This application DGK5 supports the configuration of a 3-button-mouse 
only. In Cygwin is a
5-button-mouse configured. You have to configure the Cygwin-X-server in 
such a way,
that a 3-button-mouse is recognized."

HOW? 
A Xfree-conf-file isn't used in Cygwin (AFAIK). "-emulate3buttons" has no 
effect, as it works 
the other way up (3 buttons on a 2-button-mouse). 

Any hints?

Yours 
hjb