[quote=197438:@Eli Ott]Just tested a sheet window in Xojo too. It does work it slides down when called from a PopupMenu.
[code]Class Window1 Inherits Window
Control PopupMenu1:
Sub Change()
Dim win As New SheetWindow()
win.ShowModalWithin(Self)
End Sub
End Class[/code][/quote]
Sorry, Eli,
In 2015R2.2 under Yosemite 10.10.3 this code does not slide down. The window just pops.
Would you care to post your test project ?
[quote=197450:@Axel Schneider]curious,
I put a Label on the sheet window
in Popup Menu Change I only write
sheetwin.Label1.Text = “”
and it works[/quote]
You are right. Implicit instantiation that way shows the sheet window sliding in. I also verified that simply getting the value of of any property of the sheet window is enough.
dim h as integer = SheetWindow1.Height
It works with implicit instance false as well :
dim w as new SheetWindow1
dim h as integer = w.Height
Thank you for finding this, Axel.
Richard : this is much simpler than what I had posted. You may want to use this instead of show and you will be set.
Not sure what exactly I need to do?
What do I put in my PopupMenus change.event?
I currently have this:
If me.ListIndex = 0 Then
mySheetWindow.Show()
End If
replace
mySheetWindow.Show()
with
dim w as new SheetWindow
dim h as integer = w.Height
Thanks everyone - that works fine!