Hello,
I want use ShowPanel Built-in Function in my PcApp project to show or hide the panels from button on the main panel.
I can't found example or information in the Wiki.
I created "Id" in the Properties of the panel and I call Panel.ShowPanel(1,1) Built-in Function in the macro of the button, but it don't work.
EDIT: With this properties, I have the same Id for all Panels. Created properties is for the Panel Component. I can't create a new properties in the Panel Properties (Master Panel) section.
How to create Id properties per Panel Name ?
Thank you for your advices.
How to use ShowPanel to show a panel with a button ?
- Nico595
- Posts: 95
- http://meble-kuchenne.info.pl
- Joined: Tue Jul 04, 2023 4:17 pm
- Has thanked: 18 times
- Been thanked: 4 times
-
- Matrix Staff
- Posts: 1954
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 626 times
- Been thanked: 656 times
Re: How to use ShowPanel to show a panel with a button ?
Hello.
You need to get the ID of the panel.
The first panel added will be 0, the second panel added will be 1 and so on.
If you are not sure the order, then first make sure your panel has a suitable name.
After saving the app project, look at the fcsx file with a text editor.
The panel id will be shown before its name e.g. You then can use the ShowPanel API just like you did to show the panel using 1 within the Show parameter or hide the panel using using 0 within the Show parameter.
You need to get the ID of the panel.
The first panel added will be 0, the second panel added will be 1 and so on.
If you are not sure the order, then first make sure your panel has a suitable name.
After saving the app project, look at the fcsx file with a text editor.
The panel id will be shown before its name e.g. You then can use the ShowPanel API just like you did to show the panel using 1 within the Show parameter or hide the panel using using 0 within the Show parameter.
Martin