How to change MDI ctrl-tab implementation? I want show window with opened child frames - like :)

Hello!

  1. I want write my own Ctrl-tab implementation for MDI application. When user press ctrl-tab shortcut i want show small window with list child frames - like some apps or KDE/GNOME. But standard OnKey event does not catch this event - this is some special event?

Is this possible?
This feature has Firefoc with plugin: https://addons.mozilla.org/pl/firefox/addon/1936

  1. Another question - i want show tips with scrollbar position for THUMBTRACK event - this tip window must show in mouse position - how calculate position where user drags the thumbtrack? I draw my own element with variable (sometimes big) height and this tips can improve my GUI and user comfort. This feature has Microsoft Word, and i read about this
    here: http://www.codeproject.com/miscctrl/CRHTipWnd.asp

w.p.

PS. Sorry for english ;o|

Hi,

1) I want write my own Ctrl-tab implementation for MDI application. When
user press ctrl-tab shortcut i want show small window with list child frames
- like some apps or KDE/GNOME. But standard OnKey event does not catch this
event - this is some special event?
Is this possible?
This feature has Firefoc with plugin:
https://addons.mozilla.org/pl/firefox/addon/1936

You can try with wx.AcceleratorTable.

2) Another question - i want show tips with scrollbar position for
THUMBTRACK event - this tip window must show in mouse position - how
calculate position where user drags the thumbtrack? I draw my own element
with variable (sometimes big) height and this tips can improve my GUI and
user comfort. This feature has Microsoft Word, and i read about this
here: http://www.codeproject.com/miscctrl/CRHTipWnd.asp

Something like that might work (superbly untested, it will probably not work):

self.yourWindow.Bind(wx.EVT_SCROLLWIN_THUMBTRACK, self.OnThumb)
self.tipWindow = None

def OnThumb(self, event):

    position = event.GetPosition()
    toolTip = str(position)
    if self.tipWindow:
        self.tipWindow.Destroy()
        self.tipWindow = None
    self.tipWindow = wx.TipWindow(self.yourWindow, toolTip)
    self.tipWindow.SetPosition(wx.GetMousePosition())

Andrea.

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

ยทยทยท

On 6/6/07, Wojtek P wrote: