gtkbasic-0.0.2

Under development: PCMCIA, wireless, etc.
Message
Author
DavidBell
Posts: 132
Joined: Fri 24 Nov 2006, 21:44

#61 Post by DavidBell »

OK Thanks I'll try again probably this weekend. I might look at writing a generic C function handler and send that in if that's usefull. DB

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#62 Post by MU »

that would be really great :-)

Mark

DavidBell
Posts: 132
Joined: Fri 24 Nov 2006, 21:44

#63 Post by DavidBell »

That probably wont happen this weekend ;-) but I reckon the source of wxDllLoader class should have most of the clues I need, and it shouldn't really be that difficult. Ideally you would use it the same as in VB with 'Declare' reserved word...

Declare FunctionX(Y as CString, Z as Long) in LibraryPathA.

DB

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#64 Post by MU »

no need to hurry :)
I develop Gtkbasic on weekends, and beside that I want to discover the new region where I live now.
I think in 1-2 month Gtkbasic is so far, that it could serve for many tasks already (small wizards and such as you already have them in Puppy).
But it will be still far away from being a full featured programming language.
I estimate about a year until it *might* cover most of the full set of Gtk functions.

If I fall in love or leave germany (what I seriously think of), it might take even longer.

Mark

DavidBell
Posts: 132
Joined: Fri 24 Nov 2006, 21:44

#65 Post by DavidBell »

Hi Mark, saw in another post you were thinking about England. I prefer France myself but live in the antipodes like BarryK so they are both a long way off.

Just curious, what do you use for a development environment? I'm still new to linux still trying to find a nice set up ... well two really, a heavy duty one for C++, and another for simple things (which is the reason for my interest in Gtkbasic). A working debugger for both is very desirable.

DB

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#66 Post by MU »

I use leafpad for small stuff, and tuxtexter for long programs (because of the subs/functions/class overview).
For programmers, Geany might be suited better than leafpad. Both are in Puppy already.

Tuxtexter:
http://murga-linux.com/puppy/viewtopic. ... 563&t=2749

For C++ you might like MingwStudio:
http://www.murga-linux.com/puppy/viewtopic.php?t=4413

Or Eclipse if you have a modern computer (1 Gigahertz, 1 Gigabyte Ram):
http://murga-linux.com/puppy/viewtopic. ... 32&t=16881

----------------
Yes, like france too.
But I never was in england, so I'm curious :)
And my english is better than my french.
And I found a good site where you find many job-offers for Perl-coders in GB:
http://www.theitjobboard.com/it-jobs/all/Perl/

Mark

DavidBell
Posts: 132
Joined: Fri 24 Nov 2006, 21:44

#67 Post by DavidBell »

I've tried and quite like Mingw, I found it scrolled much faster than Geany on my machine. Using frugal/live with devx does work very well I think because it's only got 128MB RAM, so I'm gonna wipe clean and restart with 2.16 hard disk install. This time I'm going to write down what I do to get various bits the way I want.

DB

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#68 Post by MU »

The GTK-functionslist:

The IDE now includes a list of the Gtk-functions, that are already implemented.
They are currently in C style, but if you click on one of them,
it will be shown in the upper text-entry in the Basic style.
Like this you can copy & paste it to your code.

This feature is new and not tested well.

Screenshot:

Image

Good night :)
Mark

DavidBell
Posts: 132
Joined: Fri 24 Nov 2006, 21:44

#69 Post by DavidBell »

My HDD died but I got this all working now, so will play the next couple of weeks.

BTW I also tried the latest version of MinGWStudio (2.06). It runs without problems but it's much slower than the dotpup(0.98) on my machine (VIA 600MHz, 256 MB, P 2.16 Frugal) and the fonts are not as easy to read.

David

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#70 Post by MU »

there is something wrong with my shoulder.
Since a week it hurts at night, also sometimes at daytime.
For this reason I actually cannot code, I'm just happy I still can do the stuff required at work.
For this reason no update this weekend.
David, thanks for the info about MingW-Studio.
I will keep the old dotpup in the repository.
Mark

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#71 Post by Lobster »

MU wrote:there is something wrong with my shoulder.
Since a week it hurts at night, also sometimes at daytime.
Qi-ong, Tiger Balm, massage and changing your sleeping arrangements
should help
http://video.google.com/videoplay?docid ... gong&hl=en

Get well
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#72 Post by BarryK »

MU wrote:I use leafpad for small stuff, and tuxtexter for long programs (because of the subs/functions/class overview).
For programmers, Geany might be suited better than leafpad. Both are in Puppy already.
Yes, and the latest Geany in 2.17 has syntax highlighting for Basic. I think if the file has '.bas' extension then Geany will recognise it as Basic code. It is actually FreeBasic highlighting (derived from Quick Basic), but covers all the usual Basic keywords.

DavidBell
Posts: 132
Joined: Fri 24 Nov 2006, 21:44

#73 Post by DavidBell »

Hi Mark, two dumb questions

First, does the problem with GDK_BUTTON_PRESS getting eaten exist in IceWM? If so how do I install it - I couldn't find it in pupget.

Second, what would be involved in getting GTKPlot to work with GTKBasic? I can place a custom widget holder in Glade3, but would GTKPlot need custom bindings written etc?

Still not 100% sure on the details but I think at a minimum GTKBasic will be very useful setting up quick prototypes that can later be converted up to a more powerful language if required - using libglade makes this a lot easier.

DB

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#74 Post by MU »

the problem with the buttons initially did not exist in icewm.
But I had to modify the buttonhandling so that it works in JWM, so now the behaviour is identical in every windowmanager.

I could add a "mode" switch, so that you could choose, if you prefer the (better) original behaviour, or the "runs everywhere" behaviour (that is the only one available at moment).

I had no look at gtkplot yet.
If there is no way to request events from libglade, then you cannot use it, as I did not add the corresponding gtkfunctions yet.

I am very busy the next 3 weekends, so no updates until then.

Mark

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#75 Post by MU »

the version I had compiled in Puppy 2 did not work in Puppy3.
The fileselectors returned empty values.
Re-compiled it in Puppy 301, download:
http://dotpups.de/puppy3/dotpups/Progra ... ic-002.pup

Mark

SSmokinGirl
Posts: 4
Joined: Wed 01 Apr 2009, 23:11

Gtk Basic Code

#76 Post by SSmokinGirl »

Hi,
I just need a hint here I am using GtkBasic002
What or where are the programming commands for this
app.
I have lots of basic programming experience in MS VB
But I learned to hate microsoft.
I know it is the basic lang but i need the syntax if it is just basic.
Thanks
SSmokinGirl
USA
California

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#77 Post by MU »

Hello,
please use the newer version 003e.
It comes with several demo applications.

http://www.murga-linux.com/puppy/viewtopic.php?p=155083

You'll find more, if you search for gtkbasic here:
http://wellminded.com/puppy/pupsearch.html

I might not continue to work on gtkbasic, as there now is "genie", which also has a simple syntax, and some advantages over gtkbasic:

http://www.murga-linux.com/puppy/viewto ... 272#286272

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#78 Post by MU »

to a certain degree it also is possible, to use VB.net programs.
You need Mono, the Linux implementation of .net.
Details:
http://www.murga-linux.com/puppy/viewtopic.php?t=40567

You will find there an iso with it.
It will be good to get a first impression.
Try to open one of your Visual Studio projects in Monodevelop.
Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

Post Reply