generic test of the irritating seek bug

7 messages Options
Embed this post
Permalink
Ed Musgrove-2

generic test of the irritating seek bug

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

Hi Vidyashankar!

 

I’ve attached the source and header files. If you can get it to compile it should open a small window with a list control containing ~10 items. This is to test “native” behavior of keypresses when the list is “focused”. The IDE I used (wxDev-C++) is totally unfamiliar to me so I do not know what the linking instructions should be but I included the auto-generated makefile. After you get it running we can discuss tests and changes!

 

--Ed

 

From: Vidyashankar Vellal [mailto:[hidden email]]
Sent: Monday, October 19, 2009 12:15 AM
To: [hidden email]
Subject: Re: [Audacity-devel] Problem with hidden second project window on Windows WAS: Re: wxGetClientDisplayRect

 

Hi Ed

 

I can work on Linux (Ubuntu 9.04). Tell me what you need.

 

Vidyashankar

 

On Mon, Oct 19, 2009 at 12:17 PM, Ed Musgrove <[hidden email]> wrote:


Tonight I created a tiny little wxWidgets application which allows testing
of that "irritating seek bug". Now I need to find two developers who are
familiar with creating new projects -- one on Mac and one on Linux.

--Ed



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
audacity-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/audacity-devel

listTest.zip (5K) Download Attachment
Vidyashankar Vellal

Re: generic test of the irritating seek bug

Reply Threaded More More options
Print post
Permalink
Hi Ed!

I have got it running.

There was a small problem in listTest1Frm.cpp which prevented successful compilation. In the lines 60 to 80, the text must be put inside a wxT() or _() macro. For example, listItem.SetText("New...") must be listItem.SetText(_("New...")). I have corrected those lines and attached the new cpp file.

As you said, a dialog opens with a list control. As soon as the dialog opens, I dont see the list control having focus. Pressing <tab> is also not giving it focus. So basically nothing happens no matter what key is pressed. However, after I select a list item from the mouse, I can use the up and down arrows to scroll through the items.

Tell me if I have to check anything else.

Vidyashankar

On Mon, Oct 19, 2009 at 12:59 PM, Ed Musgrove <[hidden email]> wrote:

Hi Vidyashankar!

 

I’ve attached the source and header files. If you can get it to compile it should open a small window with a list control containing ~10 items. This is to test “native” behavior of keypresses when the list is “focused”. The IDE I used (wxDev-C++) is totally unfamiliar to me so I do not know what the linking instructions should be but I included the auto-generated makefile. After you get it running we can discuss tests and changes!

 

--Ed

 

From: Vidyashankar Vellal [mailto:[hidden email]]
Sent: Monday, October 19, 2009 12:15 AM
To: [hidden email]
Subject: Re: [Audacity-devel] Problem with hidden second project window on Windows WAS: Re: wxGetClientDisplayRect

 

Hi Ed

 

I can work on Linux (Ubuntu 9.04). Tell me what you need.

 

Vidyashankar

 

On Mon, Oct 19, 2009 at 12:17 PM, Ed Musgrove <[hidden email]> wrote:


Tonight I created a tiny little wxWidgets application which allows testing
of that "irritating seek bug". Now I need to find two developers who are
familiar with creating new projects -- one on Mac and one on Linux.

--Ed


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
audacity-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/audacity-devel



[listTest1Frm.cpp]

//---------------------------------------------------------------------------
//
// Name:        listTest1Frm.cpp
// Author:      Edgar
// Created:     10/18/2009 10:32:34 PM
// Description: listTest1Frm class implementation
//
//---------------------------------------------------------------------------

#include "listTest1Frm.h"

//Do not add custom headers between
//Header Include Start and Header Include End
//wxDev-C++ designer will remove them
////Header Include Start
////Header Include End

//----------------------------------------------------------------------------
// listTest1Frm
//----------------------------------------------------------------------------
//Add Custom Events only in the appropriate block.
//Code added in other places will be removed by wxDev-C++
////Event Table Start
BEGIN_EVENT_TABLE(listTest1Frm,wxFrame)
        ////Manual Code Start
        ////Manual Code End
       
        EVT_CLOSE(listTest1Frm::OnClose)
END_EVENT_TABLE()
////Event Table End

listTest1Frm::listTest1Frm(wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &position, const wxSize& size, long style)
: wxFrame(parent, id, title, position, size, style)
{
        CreateGUIControls();
}

listTest1Frm::~listTest1Frm()
{
}

void listTest1Frm::CreateGUIControls()
{
        //Do not add custom code between
        //GUI Items Creation Start and GUI Items Creation End
        //wxDev-C++ designer will remove them.
        //Add the custom code before or after the blocks
        ////GUI Items Creation Start

        WxPanel1 = new wxPanel(this, ID_WXPANEL1, wxPoint(47, 35), wxSize(522, 616));

        WxListCtrl1 = new wxListCtrl(WxPanel1, ID_WXLISTCTRL1, wxPoint(39, 35), wxSize(154, 556), wxLC_REPORT, wxDefaultValidator, wxT("WxListCtrl1"));
        WxListCtrl1->InsertColumn(0,wxT("Commands"),wxLIST_FORMAT_LEFT,150 );

        SetTitle(wxT("listTest1"));
        SetIcon(wxNullIcon);
        SetSize(8,8,649,743);
        Center();
       
        ////GUI Items Creation End
        wxListItem listItem;
   listItem.SetText (_("last item on list"));
   WxListCtrl1->InsertItem (listItem);
   listItem.SetText(_("New..."));
   WxListCtrl1->InsertItem (listItem);
   listItem.SetText(_("Open..."));
   WxListCtrl1->InsertItem (listItem);
   listItem.SetText(_("Next"));
   WxListCtrl1->InsertItem (listItem);
   listItem.SetText (_("Neutral"));
   WxListCtrl1->InsertItem (listItem);
   listItem.SetText (_("Oregano"));
   WxListCtrl1->InsertItem (listItem);
   listItem.SetText (_("naturally"));
   WxListCtrl1->InsertItem (listItem);
   listItem.SetText(_("Orange"));
   WxListCtrl1->InsertItem (listItem);
   listItem.SetText (_("operator"));
   WxListCtrl1->InsertItem (listItem);
   listItem.SetText (_("first item on list"));
   WxListCtrl1->InsertItem (listItem);
}

void listTest1Frm::OnClose(wxCloseEvent& event)
{
        Destroy();
}


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
audacity-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/audacity-devel
Ed Musgrove-2

Re: generic test of the irritating seek bug

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

That is interesting that you are being forced on the Mac to use the wxT() .

 

Here’s the interesting test –select the first item (by the way what is it, on Windows InsertItem adds to the beginning of the list). Now press the o key; the item “operator” should be chosen; press n, the “naturally” item should be chosen.

 

Could you take a screenshot with the app running and mail it to me off list?

 

--Ed

 

From: Vidyashankar Vellal [mailto:[hidden email]]
Sent: Monday, October 19, 2009 1:04 AM
To: [hidden email]
Subject: Re: [Audacity-devel] generic test of the irritating seek bug

 

Hi Ed!

I have got it running.

There was a small problem in listTest1Frm.cpp which prevented successful compilation. In the lines 60 to 80, the text must be put inside a wxT() or _() macro. For example, listItem.SetText("New...") must be listItem.SetText(_("New...")). I have corrected those lines and attached the new cpp file.

As you said, a dialog opens with a list control. As soon as the dialog opens, I dont see the list control having focus. Pressing <tab> is also not giving it focus. So basically nothing happens no matter what key is pressed. However, after I select a list item from the mouse, I can use the up and down arrows to scroll through the items.

Tell me if I have to check anything else.

Vidyashankar

On Mon, Oct 19, 2009 at 12:59 PM, Ed Musgrove <[hidden email]> wrote:

Hi Vidyashankar!

 

I’ve attached the source and header files. If you can get it to compile it should open a small window with a list control containing ~10 items. This is to test “native” behavior of keypresses when the list is “focused”. The IDE I used (wxDev-C++) is totally unfamiliar to me so I do not know what the linking instructions should be but I included the auto-generated makefile. After you get it running we can discuss tests and changes!

 

--Ed

 

From: Vidyashankar Vellal [mailto:[hidden email]]
Sent: Monday, October 19, 2009 12:15 AM
To: [hidden email]
Subject: Re: [Audacity-devel] Problem with hidden second project window on Windows WAS: Re: wxGetClientDisplayRect

 

Hi Ed

 

I can work on Linux (Ubuntu 9.04). Tell me what you need.

 

Vidyashankar

 

On Mon, Oct 19, 2009 at 12:17 PM, Ed Musgrove <[hidden email]> wrote:


Tonight I created a tiny little wxWidgets application which allows testing
of that "irritating seek bug". Now I need to find two developers who are
familiar with creating new projects -- one on Mac and one on Linux.

--Ed


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
audacity-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/audacity-devel

 


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
audacity-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/audacity-devel
Vidyashankar Vellal

Re: generic test of the irritating seek bug

Reply Threaded More More options
Print post
Permalink

On Mon, Oct 19, 2009 at 10:35 PM, Ed Musgrove <[hidden email]> wrote:

That is interesting that you are being forced on the Mac to use the wxT() .

I am using Linux (Ubuntu 9.04). But, yes it is forcing me to using wxT().

Here’s the interesting test –select the first item (by the way what is it, on Windows InsertItem adds to the beginning of the list). Now press the o key; the item “operator” should be chosen; press n, the “naturally” item should be chosen.

The first item on the list is "first item on list".
Surprisingly, pressing the letters does not choose any item. First of all, I need to click on an item using the mouse to give it focus. (As I said before <tab> is not giving it focus). Then pressing arrow keys works, but letters does not. So when I click on first item and press the o key, I am still at "first item on list"

I looked at the audacity behaviour (the list control in keyboard preferences) in linux and it works as expected. I mean, pressing letters takes me to list items beginning with those letters. I will try and see why it is not working as expected in listTest program.

 

Could you take a screenshot with the app running and mail it to me off list?

Sure.

Vidyashankar

 

--Ed

 

From: Vidyashankar Vellal [mailto:[hidden email]]
Sent: Monday, October 19, 2009 1:04 AM

Subject: Re: [Audacity-devel] generic test of the irritating seek bug

 

Hi Ed!

I have got it running.

There was a small problem in listTest1Frm.cpp which prevented successful compilation. In the lines 60 to 80, the text must be put inside a wxT() or _() macro. For example, listItem.SetText("New...") must be listItem.SetText(_("New...")). I have corrected those lines and attached the new cpp file.

As you said, a dialog opens with a list control. As soon as the dialog opens, I dont see the list control having focus. Pressing <tab> is also not giving it focus. So basically nothing happens no matter what key is pressed. However, after I select a list item from the mouse, I can use the up and down arrows to scroll through the items.

Tell me if I have to check anything else.

Vidyashankar

On Mon, Oct 19, 2009 at 12:59 PM, Ed Musgrove <[hidden email]> wrote:

Hi Vidyashankar!

 

I’ve attached the source and header files. If you can get it to compile it should open a small window with a list control containing ~10 items. This is to test “native” behavior of keypresses when the list is “focused”. The IDE I used (wxDev-C++) is totally unfamiliar to me so I do not know what the linking instructions should be but I included the auto-generated makefile. After you get it running we can discuss tests and changes!

 

--Ed

 

From: Vidyashankar Vellal [mailto:[hidden email]]
Sent: Monday, October 19, 2009 12:15 AM
To: [hidden email]
Subject: Re: [Audacity-devel] Problem with hidden second project window on Windows WAS: Re: wxGetClientDisplayRect

 

Hi Ed

 

I can work on Linux (Ubuntu 9.04). Tell me what you need.

 

Vidyashankar

 

On Mon, Oct 19, 2009 at 12:17 PM, Ed Musgrove <[hidden email]> wrote:


Tonight I created a tiny little wxWidgets application which allows testing
of that "irritating seek bug". Now I need to find two developers who are
familiar with creating new projects -- one on Mac and one on Linux.

--Ed


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
audacity-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/audacity-devel

 


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
audacity-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/audacity-devel



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
audacity-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/audacity-devel
Ed Musgrove-2

Re: generic test of the irritating seek bug

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

Audacity has code added which makes pressing the letters work for Linux, but causes it to be broken on Windows. This is what I’m working on right now.

 

--Ed

 

From: Vidyashankar Vellal [mailto:[hidden email]]


I looked at the audacity behaviour (the list control in keyboard preferences) in linux and it works as expected. I mean, pressing letters takes me to list items beginning with those letters. I will try and see why it is not working as expected in listTest program.


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
audacity-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/audacity-devel
Martyn Shaw-2

Re: generic test of the irritating seek bug

Reply Threaded More More options
Print post
Permalink
In reply to this post by Ed Musgrove-2


Ed Musgrove wrote:
> That is interesting that you are being forced on the Mac to use the wxT() .

I'm pretty sure that you need that for unicode compiles, not ANSI.

HTH
Martyn

...
> There was a small problem in listTest1Frm.cpp which prevented successful
> compilation. In the lines 60 to 80, the text must be put inside a wxT()
> or _() macro. For example, listItem.SetText("New...") must be
> listItem.SetText(_("New...")). I have corrected those lines and attached
> the new cpp file.
...

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
audacity-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/audacity-devel
Ed Musgrove-2

Re: generic test of the irritating seek bug

Reply Threaded More More options
Print post
Permalink
Now that Vidyashankar has this tiny little test program running on Linux I
need someone willing to test it on the Mac. We should take this off-line as
well.

Martyn, thank you for pointing out the  Unicode/ANSI difference.

--Ed


> -----Original Message-----
> From: Martyn Shaw [mailto:[hidden email]]
> Sent: Tuesday, October 20, 2009 2:26 PM
> To: [hidden email]
> Subject: Re: [Audacity-devel] generic test of the irritating seek bug
>
>
>
> Ed Musgrove wrote:
> > That is interesting that you are being forced on the Mac to use the
wxT() .

>
> I'm pretty sure that you need that for unicode compiles, not ANSI.
>
> HTH
> Martyn
>
> ...
> > There was a small problem in listTest1Frm.cpp which prevented
> > successful compilation. In the lines 60 to 80, the text must be put
> > inside a wxT() or _() macro. For example, listItem.SetText("New...")
> > must be listItem.SetText(_("New...")). I have corrected those lines
> > and attached the new cpp file.
> ...
>
>
----------------------------------------------------------------------------
--
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA is
the
> only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> audacity-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/audacity-devel



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
audacity-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/audacity-devel