Adding handling of the wheel on the mouse to allow vertical scrolling.

This commit is contained in:
Frederic Petrot 2004-01-30 12:14:27 +00:00
parent da67e186ad
commit b14592d104
3 changed files with 6 additions and 4 deletions

View File

@ -160,7 +160,7 @@
GraalDialogItem GraalChangeTransistorWidthDialog = GraalDialogItem GraalChangeTransistorWidthDialog =
{ {
"Transistor width", "Transistor length",
GRAAL_DIALOG_PROMPT, GRAAL_DIALOG_PROMPT,
(Widget)NULL, (Widget)NULL,
(void *)CallbackChangeTransistorWidthOk, (void *)CallbackChangeTransistorWidthOk,
@ -487,7 +487,7 @@ void CallbackChangeTransistorWidthOk( MyWidget, ClientData, CallData )
} }
else else
{ {
GraalErrorMessage( GraalMainWindow, "Incorrect transistor width !" ); GraalErrorMessage( GraalMainWindow, "Incorrect transistor length!" );
} }
if ( GraalTransistorWire == GRAAL_FALSE ) if ( GraalTransistorWire == GRAAL_FALSE )

View File

@ -219,7 +219,7 @@
GraalDialogItem GraalModifyTransistorWidthDialog = GraalDialogItem GraalModifyTransistorWidthDialog =
{ {
"Transistor width", "Transistor length",
GRAAL_DIALOG_PROMPT, GRAAL_DIALOG_PROMPT,
(Widget)NULL, (Widget)NULL,
(void *)CallbackModifyTransistorWidthOk, (void *)CallbackModifyTransistorWidthOk,
@ -569,7 +569,7 @@ void CallbackModifyTransistorWidthOk( MyWidget, ClientData, CallData )
} }
else else
{ {
GraalErrorMessage( GraalMainWindow, "Incorrect transistor width !" ); GraalErrorMessage( GraalMainWindow, "Incorrect transistor length!" );
} }
GraalPromptModifyTransistor(); GraalPromptModifyTransistor();

View File

@ -96,7 +96,9 @@
<EnterWindow>: CallbackEvent( 3 )\n\ <EnterWindow>: CallbackEvent( 3 )\n\
<LeaveWindow>: CallbackEvent( 4 )\n\ <LeaveWindow>: CallbackEvent( 4 )\n\
<Key>osfUp: CallbackEvent( 5 )\n\ <Key>osfUp: CallbackEvent( 5 )\n\
<Btn4Down>: CallbackEvent( 5 )\n\
<Key>osfDown: CallbackEvent( 6 )\n\ <Key>osfDown: CallbackEvent( 6 )\n\
<Btn5Down>: CallbackEvent( 6 )\n\
<Key>osfLeft: CallbackEvent( 7 )\n\ <Key>osfLeft: CallbackEvent( 7 )\n\
<Key>osfRight: CallbackEvent( 8 )\n\ <Key>osfRight: CallbackEvent( 8 )\n\
<Key>Z: CallbackEvent( 9 )\n\ <Key>Z: CallbackEvent( 9 )\n\