Hello, NUG!
As much as I'm digging having cross-platform toolbars, I think I've just run across another issue with using on Windows. In a lot of my apps, I store settings and prefs in a dictionary, including window sizes. I typically use code like this:

In the Window.Open Event:
  If Prefs.Dict.HasKey("StudentListWindowH") Then
    Self.Height=Prefs.Dict.Value("StudentListWindowH")
  End If
  If Prefs.Dict.HasKey("StudentListWindowL") Then
    Self.Left=Prefs.Dict.Value("StudentListWindowL")
  End If
  If Prefs.Dict.HasKey("StudentListWindowT") Then
    Self.Top=Prefs.Dict.Value("StudentListWindowT")
  End If
  If Prefs.Dict.HasKey("StudentListWindowW") Then
    Self.Width=Prefs.Dict.Value("StudentListWindowW")
  End If

In the Window.Close Event:
  Prefs.Dict.Value("StudentListWindowH")=Self.Height
  Prefs.Dict.Value("StudentListWindowL")=Self.Left
  Prefs.Dict.Value("StudentListWindowT")=Self.top
  Prefs.Dict.Value("StudentListWindowW")=Self.Width

(Prefs is a module.)

This works great until I add a toolbar to the window. On the Mac, it works great, but on Windows, it really screws around with the window height. Sometimes the window will show up with practically zero height, and other times it will show up waaaay too tall. I'll be filing a bug report later today, but I was wondering if anything was seeing something similar, or if anyone could offer a workaround for saving and restoring the window settings with a toolbar present.

Thanks in advance!

--
Brad Rhine
[EMAIL PROTECTED]
http://bradrhine.com
Tangelo: Web Publishing... With A Twist!
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to