ScriptBasic
May 22, 2012, 03:04:05 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: The ScriptBasic User, Developer and extension module guides are available at the WIKI.
 
   Home   Wiki Help Search Login Register  
Pages: [1]
  Print  
Author Topic: GTK demo  (Read 3183 times)
Pjot
Newbie
*
Posts: 2


WWW
« on: May 25, 2006, 03:02:09 AM »

All,

The GTK module contains easy wrapper functions to create a graphical user interface. To see how easy it is to create such a GUI, I've put the dictionary demo online:

Dictionary Program Code

This is the screenshot:




Regards
Peter
Logged
support
Administrator
*****
Posts: 409


« Reply #1 on: May 25, 2006, 10:02:35 PM »

Thanks Peter !

As soon as I get the 2.1 version released, I will help out with more examples.

John
Logged
support
Administrator
*****
Posts: 409


« Reply #2 on: November 25, 2007, 12:29:04 AM »

I was able to get the GTK-Server ScriptBasic extension module running under CentOS 5 (Red Hat recompile) and it works great. If you convert your application to a standalone executable with the scriba -K option, there is no console interaction and the program runs just like any other binary executable. I was also successful at getting GTK-server to work with ScriptBasic under Windows as well. (same scripts run on both OS's)

I'm still confused why others are are not using ScriptBasic for their application development. Maybe it's a job security thing and the more code they write the more valuable the application must be. Smiley

I'm available for conversions of old legacy applications to either a browser or desktop environment. The result is that it won't cost you an arm and a leg and you will be able to maintain and enhance your application with in-house resources.  

John Spikowski
support@scriptbasic.org
Logged
support
Administrator
*****
Posts: 409


« Reply #3 on: December 04, 2007, 04:04:20 AM »

Peter (GTK-server author) extended the GTK.bas include file by wrapping common used GTK-server command strings in ScriptBasic functions. The Dictionary program is an example of using these wrapper functions.

Function Wrapper Matrix

The GTK-server started off as a TCP/named pipe interface and then Peter created a ScriptBasic extension module (DLL / Share Object). All commands are sent as one string. You may have noticed my GUI() wrapper around the GTK::gtk(gtk_cmd) function call to the GTK-server in the "Hello World" example.  This allows me to pass normal function like arguments and the GUI() function builds the command string.

I just wanted to clear this up as it might be confusing for someone not familiar with the GTK-server software.

John
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!