Nerijus Baliunas | 4 Mar 2006 01:33
Picon

ignore spacebar to select/unselect messages?

Hello,

how can I make M to ignore spacebar to select/unselect messages?
I searched for WXK_SPACE and found it only in 2 places in wxFolderView.cpp.

Regards,
Nerijus

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
Vadim Zeitlin | 5 Mar 2006 01:15
Favicon

Re: ignore spacebar to select/unselect messages?

On Sat, 4 Mar 2006 02:33:35 +0200 Nerijus Baliunas <nerijus <at> users.sourceforge.net> wrote:

NB> how can I make M to ignore spacebar to select/unselect messages?
NB> I searched for WXK_SPACE and found it only in 2 places in wxFolderView.cpp.

 This is the standard key of wxListCtrl so to prevent it from working like
it does now you'd need to catch WXK_SPACE in wxFolderView and ignore it
(instead of calling event.Skip()).

 Regards,
VZ

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
Nerijus Baliunas | 5 Mar 2006 23:53
Picon

Re: ignore spacebar to select/unselect messages?

On Sun, 5 Mar 2006 01:15:57 +0100 Vadim Zeitlin <vadim <at> wxwindows.org> wrote:

VZ> NB> how can I make M to ignore spacebar to select/unselect messages?
VZ> NB> I searched for WXK_SPACE and found it only in 2 places in wxFolderView.cpp.
VZ> 
VZ>  This is the standard key of wxListCtrl so to prevent it from working like
VZ> it does now you'd need to catch WXK_SPACE in wxFolderView and ignore it
VZ> (instead of calling event.Skip()).

Thanks. What I want to do is to make spacebar act as Enter, i.e. scroll message
by line (as I usually read messages by pressing D repeatedly and then X, so I
could scroll with the same hand by using spacebar). So I changed code like this
(sorry, sf.net cvs ssh is down now, so I cannot give a diff):
line 4323:
      switch ( event.GetKeyCode() )
      {
         case WXK_SPACE:
#if !defined DEBUG_nerijus 
            m_MessagePreview->PageDown();
            return true;
#endif 
         case WXK_RETURN:
            m_MessagePreview->LineDown();
            return true;
      }

line 4613:
      case WXK_RETURN:
#if !defined DEBUG_nerijus 
      case WXK_SPACE:
(Continue reading)

Vadim Zeitlin | 6 Mar 2006 01:26
Favicon

Re[2]: ignore spacebar to select/unselect messages?

On Mon, 6 Mar 2006 00:53:04 +0200 Nerijus Baliunas <nerijus <at> users.sourceforge.net> wrote:

NB> Thanks. What I want to do is to make spacebar act as Enter, i.e. scroll
NB> message by line (as I usually read messages by pressing D repeatedly
NB> and then X, so I could scroll with the same hand by using spacebar).

 Hmm, I don't understand how does it imply that you need to scroll by line
because IMHO scrolling by page is more convenient but well.

NB> (sorry, sf.net cvs ssh is down now, so I cannot give a diff):

[it just came back online, finally, I was trying to commit changes for
 several hours already]

NB> line 4323:
NB>       switch ( event.GetKeyCode() )
NB>       {
NB>          case WXK_SPACE:
NB> #if !defined DEBUG_nerijus 
NB>             m_MessagePreview->PageDown();
NB>             return true;
NB> #endif 
NB>          case WXK_RETURN:
NB>             m_MessagePreview->LineDown();
NB>             return true;
NB>       }

 If you want space act as enter why didn't you call LineDown() above?

NB> line 4613:
(Continue reading)

Nerijus Baliunas | 6 Mar 2006 01:27
Picon

Re: ignore spacebar to select/unselect messages?

On Mon, 6 Mar 2006 00:53:04 +0200 Nerijus Baliunas <nerijus <at> users.sourceforge.net> wrote:

NB> (sorry, sf.net cvs ssh is down now, so I cannot give a diff):

It's up, so here's the diff:

--- wxFolderView.cpp	13 Feb 2006 16:45:43 -0000	1.675
+++ wxFolderView.cpp	6 Mar 2006 00:25:44 -0000
 <at>  <at>  -4321,9 +4321,10  <at>  <at> 
       switch ( event.GetKeyCode() )
       {
          case WXK_SPACE:
+#if !defined DEBUG_nerijus
             m_MessagePreview->PageDown();
             return true;
-
+#endif
          case WXK_RETURN:
             m_MessagePreview->LineDown();
             return true;
 <at>  <at>  -4610,7 +4611,9  <at>  <at> 
       case WXK_HOME:
       case WXK_END:
       case WXK_RETURN:
-      case ' ':
+#if !defined DEBUG_nerijus
+      case WXK_SPACE:
+#endif
          // let the control process these keys as they're used for navigation
          event.Skip();
(Continue reading)

Nerijus Baliunas | 6 Mar 2006 01:35
Picon

Re: ignore spacebar to select/unselect messages?

On Mon, 6 Mar 2006 01:26:44 +0100 Vadim Zeitlin <vadim <at> wxwindows.org> wrote:

VZ> NB>          case WXK_SPACE:
VZ> NB> #if !defined DEBUG_nerijus 
VZ> NB>             m_MessagePreview->PageDown();
VZ> NB>             return true;
VZ> NB> #endif 
VZ> NB>          case WXK_RETURN:
VZ> NB>             m_MessagePreview->LineDown();
VZ> NB>             return true;
VZ> NB>       }
VZ> 
VZ>  If you want space act as enter why didn't you call LineDown() above?

I did. If DEBUG_nerijus is defined (as in my case), WXK_SPACE is the same
as WXK_RETURN. And this part works, what doesn't work is it doesn't scroll
when focus is not in the message preview window.

Regards,
Nerijus

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
Vadim Zeitlin | 6 Mar 2006 01:41
Favicon

Re[2]: ignore spacebar to select/unselect messages?

On Mon, 6 Mar 2006 02:35:12 +0200 Nerijus Baliunas <nerijus <at> users.sourceforge.net> wrote:

NB> On Mon, 6 Mar 2006 01:26:44 +0100 Vadim Zeitlin <vadim <at> wxwindows.org> wrote:
NB> 
NB> VZ> NB>          case WXK_SPACE:
NB> VZ> NB> #if !defined DEBUG_nerijus 
NB> VZ> NB>             m_MessagePreview->PageDown();
NB> VZ> NB>             return true;
NB> VZ> NB> #endif 
NB> VZ> NB>          case WXK_RETURN:
NB> VZ> NB>             m_MessagePreview->LineDown();
NB> VZ> NB>             return true;
NB> VZ> NB>       }
NB> VZ> 
NB> VZ>  If you want space act as enter why didn't you call LineDown() above?
NB> 
NB> I did. If DEBUG_nerijus is defined (as in my case), WXK_SPACE is the same
NB> as WXK_RETURN.

 Oops, sorry, I misread the code.

NB> And this part works, what doesn't work is it doesn't scroll when focus
NB> is not in the message preview window.

 Hmm, weird, I don't see LineDown() being called from anywhere else, it
should happen from here. Where is exactly the focus when it doesn't work
and what happens, i.e. does it still select/unselect the list control items
or not?

VZ
(Continue reading)

Nerijus Baliunas | 6 Mar 2006 01:55
Picon

Re: ignore spacebar to select/unselect messages?

On Mon, 6 Mar 2006 01:41:17 +0100 Vadim Zeitlin <vadim <at> wxwindows.org> wrote:

VZ> NB> And this part works, what doesn't work is it doesn't scroll when focus
VZ> NB> is not in the message preview window.
VZ> 
VZ>  Hmm, weird, I don't see LineDown() being called from anywhere else, it
VZ> should happen from here. Where is exactly the focus when it doesn't work
VZ> and what happens, i.e. does it still select/unselect the list control items
VZ> or not?

No, it doesn't unselect anymore. If I press left mouse button in the message text,
spacebar works as Enter, but if I press left mouse button in message list (folder view),
Enter key works, but spacebar does nothing. The same with both gtk1 and 2.

Regards,
Nerijus

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
Nerijus Baliunas | 9 Mar 2006 18:47
Picon

selected text disappears when losing focus

Hi,

When I go to another app with Alt+Tab, selected text in Mahogany
text only viewer or editor disappears. It happens only with gtk2.
I cannot reproduce it with textctrl sample.

Regards,
Nerijus

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
Nerijus Baliunas | 9 Mar 2006 18:45
Picon

Error: can't seek on file descriptor

Hi,

After updating to latest wx 2.6 cvs, I get the following message quite often
(when starting M, when pressing Compose, etc):

19:43:17: Warning: No handler found for image type.
19:43:17: Error: can't seek on file descriptor 12 (error 22: Invalid argument)

Regards,
Nerijus

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

Gmane