Log in

View Full Version : TuT on making a GUI??



laakerules
01-14-2012, 03:38 PM
Is there one anywhere. Ive been trying to do with c# but thats not working out to well. so is there one anywhere.

Brandon
01-14-2012, 03:41 PM
Is there one anywhere. Ive been trying to do with c# but thats not working out to well. so is there one anywhere.

What part are you stuck on? Meh I hate C# as I like C++ better but I can write almost anything in both so.. yeah. Sure a lot of ppl around here can as well.. Let us know what ur stuck on.

C# GUI is most likely .Net framework so your prob just dragging buttons from the ToolBox and writing code for them no?

laakerules
01-14-2012, 03:47 PM
Ya, but idk when i try to implement it into the simba code.

Brandon
01-14-2012, 03:49 PM
Ya, but idk when i try to implement it into the simba code.

Implement C# GUI in Simba? That cannot be done.. Simba doesn't use .Net its full on Pascal. Simba has forms that you can use though but they're not threaded meaning that you'd have to wait for the form to close before your script runs..

What exactly is your GUI trying to accomplish? Why put a C# GUI in simba?

P.S. You can always write a plugin in Lazarus FreePascal that has GUI's and call the DLL in simba and hopefully it would work as it SHOULD.

laakerules
01-14-2012, 03:51 PM
Oh, idk someone just told me thats how you make gui's so i started using and trying it out. I thought maybe the new simba had implemented .net framework. I need it to pop up and have uptions for peeople to choose and then once they click start it reruns the script, alot of people get confused with the first 7 options in my script.

Edit:Why wont C# work off of java, i know that c++ Can be used to edit some java files if you have a seperate compiler.

Brandon
01-14-2012, 03:54 PM
Oh, idk someone just told me thats how you make gui's so i started using and trying it out. I thought maybe the new simba had implemented .net framework. I need it to pop up and have uptions for peeople to choose and then once they click start it reruns the script, alot of people get confused with the first 7 options in my script.

Ahh it's for a script then the form Tutorial is exactly what you need.
http://villavu.com/forum/showthread.php?t=41418

Bit out dated so if you do have problems with it, just post here.. and anyone can answer them. The concepts are the exact same though.. Same with the syntax.

An easy way to do it is to use Scar to make the forms as it's just drag and drop.. then just copy paste it all into simba and debug.