How do I make a GUI?

A place for developers to share ideas and assist each other in solving problems.

Moderators: valis, garyb

Post Reply
Immanuel
Posts: 3018
Joined: Thu Oct 25, 2001 4:00 pm
Location: Aalborg, Denmark

Post 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
Immanuel
Posts: 3018
Joined: Thu Oct 25, 2001 4:00 pm
Location: Aalborg, Denmark

Post 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
Shayne White
Posts: 1454
Joined: Tue Dec 11, 2001 4:00 pm
Location: California
Contact:

Post by Shayne White »

Did you drag in the "SurfaceInterface" module and connect the "Show" pad to the "Show" pad on "DefaultPanel"?

<font size=-1>[ This Message was edited by: Shayne White on 2004-10-10 21:41 ]</font>
Immanuel
Posts: 3018
Joined: Thu Oct 25, 2001 4:00 pm
Location: Aalborg, Denmark

Post by Immanuel »

Yes - those are connected in the top layer of the module.
onomat
Posts: 89
Joined: Thu Jul 05, 2001 4:00 pm
Location: De-Vice'-Berlin/Germany
Contact:

Post 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'
Post Reply