Put SearchCtrl into the popup menu of a TaskBarIcon

Hi,

I’m using TaskBarIcon and popup menus, everything works fine.

But I could not found a way to put the SearchCtrl into the menu. Is that possible?

Hi,

···

On Fri, Jun 1, 2012 at 6:39 AM, michael luk <bdt.michael.lu@gmail.com> wrote:

Hi,

I'm using TaskBarIcon and popup menus, everything works fine.

But I could not found a way to put the SearchCtrl into the menu. Is that
possible?

No, you would need to make your own popup window to use instead. A
wxMenu doesn't provide any interface or access to the window object.

Cody

Correct, although it may be possible to do with wx.lib.flatmenu. I
have never tried inserting a SearchCtrl in it, but if you make it work
I'll add it to the sample and/or patch the sources. Beware though, it
is not a native wx.Menu.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

···

On 1 June 2012 19:46, Cody wrote:

Hi,

On Fri, Jun 1, 2012 at 6:39 AM, michael luk <bdt.michael.lu@gmail.com> wrote:

Hi,

I'm using TaskBarIcon and popup menus, everything works fine.

But I could not found a way to put the SearchCtrl into the menu. Is that
possible?

No, you would need to make your own popup window to use instead. A
wxMenu doesn't provide any interface or access to the window object.

Interesting idea. Has anyone done this?

···

On Fri, Jun 1, 2012 at 9:49 AM, Andrea Gavana andrea.gavana@gmail.com wrote:

No, you would need to make your own popup window to use instead. A

wxMenu doesn’t provide any interface or access to the window object.

Josh English
Joshua.R.English@gmail.com
http://www.joshuarenglish.com

Ah. Silly me. I haven’t played with this for a while, so I thought the menu was intrinsic to the taskbaricon. It isn’t.

···

On Fri, Jun 1, 2012 at 6:25 PM, Josh English joshua.r.english@gmail.com wrote:

Interesting idea. Has anyone done this?


Josh English
Joshua.R.English@gmail.com
http://www.joshuarenglish.com