Anfänger

Ein Forum zum Erfahrungsaustausch und Hilfestellung in deutscher Sprache.

Anfänger

Postby Hannes » Mon Apr 25, 2011 12:58 pm

Hallo,

ich bin blutiger ANFÄNGER und habe mir das Programm unter Linux installiert.

Meine Fragen lauten.

Ich möchte ein "Form" programmieren auf der 3 ICONS sind.
Wenn ich auf das jeweilige Icon klicke, sollen die Programme
"Kate" " Dolphin" und "Firefox" gestartet werden.

Wenn ich das hinbekomme , wie mache ich aus dem Prokjekt eine Datei, die ich unter LINUX starten kann,
( so etwas wie unter Windows eine *.exe Datei )

Gibt es im Internet eine Anleitung, die auch für Einsteiger geeignet ist?


Mfg
Hannes
Hannes
 
Posts: 2
Joined: Mon Apr 25, 2011 12:45 pm

Re: Anfänger

Postby Slowdown » Thu Apr 28, 2011 12:55 pm

Hi Hannes,

Sorry but i can only reply in English.
You must look at the 'Shell' function of KBasic to accomplish this.
look at http://www.kbasic.com/doku.php?id=lrbuiltins#shell

i have made a small setup to get you going.
A form with 3 buttons,
Code: Select all
Private Sub Kate_OnEvent()
  Shell("complete path and filename and extension of Kate", False)
End Sub

Private Sub Dolpin_OnEvent()
  Shell("complete path and filename and extension of Dolphin", False) 
End Sub

Private Sub FireFox_OnEvent()
  Shell("complete path and filename and extension of Firefox", False) 
End Sub

And the complete project.
Start External.zip
example shell
(1.33 KiB) Downloaded 203 times
Regards
Slowdown for now i'm back
Slowdown
 
Posts: 347
Joined: Sat May 02, 2009 6:48 pm
Location: Netherlands

Re: Anfänger

Postby Hannes » Fri Apr 29, 2011 11:34 am

Hi Slowdown,

thanks for your help.
Right now I will try to put with my School-English some questions.

1.) Can I use KBasic only on the PC where the Program is installed, or does KBasic also run on other Linux PC ?

2.) If I can use KBasic also on other Linux PC ( where KBasic is not installed ), how do I begin my self-developed Program?

3.) Where do I find on the Internet code to practicing?

I hope you can help me.
Hannes
 
Posts: 2
Joined: Mon Apr 25, 2011 12:45 pm

Re: Anfänger

Postby Slowdown » Fri Apr 29, 2011 1:12 pm

Hi Hannes,
As you see school-English is becoming handy :D
1.) Can I use KBasic only on the PC where the Program is installed, or does KBasic also run on other Linux PC ?

You can use your own created program on any Linux pc put on the target the Qt libs 4.7.0 must be pressent.
see for more information : http://kbasic.com/download.html (down the page)
2.) If I can use KBasic also on other Linux PC ( where KBasic is not installed ), how do I begin my self-developed Program?

Create the program and in the IDE (KBasic editor) you can test your program.
When you compile your program for Linux KBasic will create a binary file which you can place on a another Linux PC but keep in mind
the things i told above about the Qt Library's.
3.) Where do I find on the Internet code to practicing?

KBasic comes with a lot of examples start with testing, changing, running these examples.
For more information you can use : http://www.kbasic.com/doku.php?id=manuals
I hope you can help me.

Hope i did ;)
If you need more info just ask but keep in mind i'm not running Linux so i can't help you with specific Linux things.
Regards
Slowdown for now i'm back
Slowdown
 
Posts: 347
Joined: Sat May 02, 2009 6:48 pm
Location: Netherlands


Return to Deutsches Forum (in German only)

cron