On Wed, 17 Jul 2002 00:24:40 +0200 (Romance Daylight Time) Vadim Zeitlin <[EMAIL PROTECTED]> wrote:
> On Wed, 17 Jul 2002 00:14:41 +0200 (CEST) Thomas Finneid > <[EMAIL PROTECTED]> wrote: > > TF> Can anybody explain to me, how M tells the preview pane to show the > TF> selected message. I was looing at the m_FolderCtrl->UpdateFocus() in > TF> wxFolderView and it doesn't work as I thought it would. > > The message is previewed from wxFolderListCtrl::PreviewItem(). It, in > turn, is called from 2 or 3 places with the main complication being that > we > support a "preview delay" option -- the message is not previewed > immediately but only if the cursor stays on it for some time. Ok, I see. Unfortunately it is a protected method, so it can't be called from a wxFolderView::OnOptionChange. What I am looking for is when the preview pane is turned on again, the currently selected message is shown in that pane. If not then it shows the message selected when the preview pane was last active. If not it would make the preview pane out of sync with the current selection. Not that its a big problem, it just makes it look like M has a bug. I could probably send a fake OnSelected event to force it to display the current message, but I am not sure if that is a good idea. -- Thomas Finneid email: [EMAIL PROTECTED] ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Mahogany-Developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mahogany-developers