PagePanel broken?

Just tried a simple project with PagePanel and it seems PagePanel is broken in 2018 R1.1 on my Mac trying both 32bit and 64bit:

https://www.dropbox.com/s/qzk3s42rxvax3j4/PagePanelTest.zip?dl=0

The following code correctly changes the PanelIndex property in the debugger but PagePanel does not update, even when I use Refresh (and yes, the PagePanel has two pages)

Sub Action() PagePanel1.PanelIndex = 1 PagePanel1.Refresh End Sub

Could anyone confirm before I file feedback?

[quote=398456:@Markus Winter]Sub Action()
PagePanel1.PanelIndex = 1
PagePanel1.Refresh
End Sub[/quote]

i usually use .value to set to the correct page

Sub Action()
  PagePanel1.Value = 1
  PagePanel1.Refresh
End Sub

The property name is unfortunate but that’s not what .panelIndex does. https://documentation.xojo.com/index.php/Control.PanelIndex

You need to use the .value property.

Thanks guys, feeling dumb again … :slight_smile:

[quote=398458:@Gavin Smith]The property name is unfortunate but that’s not what .panelIndex does. https://documentation.xojo.com/index.php/Control.PanelIndex

You need to use the .value property.[/quote]

Yup, “If you are looking to change the currently selected panel (page/tab), use PagePanel.Value.” should have been clear enough even for me. Assumptions and all that …