## How do I make a GUI?

Scope and XITE Development

Original topic on PlanetZ: https://forums.scopeusers.com/viewtopic.php?t=14041

####

Posted: Sun Oct 10, 2004 12:36 pm
by Immanuel
I have made a module with three submodules. Each of the submodules can be controlled with only one knob, and I have exported the pad, so all three pads are awailable in the first level of the mother module. But I can not figure out how to make a GUI. I do not need anything special - just a box with three knobs and three coresponding text boxes. I can make those three knobs and text boxes in the first level, and they work fine. But that is just "on the table". How do I make it fit in a box?
I tried loading a

####

Posted: Sun Oct 10, 2004 6:10 pm
by Immanuel
Ok, I found out ... except, that it does really work :/ (meaning I did something, but not the right thing)
In surface mode, I had to be in edit mode too. Then I could draw pots and texts from the file browser to the default panel. Then I connected them to the controlls in the children panels by using "store -> connect to". It works now, but I can not open the surface from "surface -> open surfaceinterface". I get an error:
Nil reference on left side of "." as a result of expression "o".
When I do a "tools -> check performance", I get:
10 ViewTree Groups
15 Non Customize Groups

####

Posted: Sun Oct 10, 2004 8:41 pm
by Shayne White
Did you drag in the "SurfaceInterface" module and connect the "Show" pad to the "Show" pad on "DefaultPanel"?

####

Posted: Sun Oct 10, 2004 8:56 pm
by Immanuel
Yes - those are connected in the top layer of the module.

####

Posted: Fri Feb 11, 2005 5:50 am
by onomat
firstly,
when dragging graphic objects in the graphic window onto your surface, the last mode you need is edit...Use M mode (press m) and drag them onto the surface. Edit mode will cause nightmares. Make sure that the new graphic object you dragged is listed under the 'Panel' sub folder in the project explorer. This does not always seem to be the case. If it is in the main list, first open the 'dimensions' dialog, click on the new object you have dragged and take note of it's vertical and horizontal position and WRITE IT DOWN!
now just drag this graphic object into the 'panel' folder in the project explorer list. If it dissappears, that means it is still there but it's position on screen has moved and you will have to use the 'dimension' dialog box again, click once more on the object in the project explorer list and type in a new value for it's horizontal and vertical position into the 'dimensions' dialog. Phewww!
If you have problems when you try to open a surface of your device, it usually means you have more than one 'surface interface' module in your 'project explorer' list. There should be just one at this stage but at the end of the device cxreating process, you will have another one for the preset list dialog. That makes two in total. If you have 2 already, just look at the 'connections' dialog to see which one is actually connected to something and delete the one that is not...
good luck
sayton
De-Vice'