| Author |
Message |
DavidBell
Joined: 24 Nov 2006 Posts: 132
|
Posted: Tue 26 Jun 2007, 15:38 Post subject:
|
|
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
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Tue 26 Jun 2007, 15:45 Post subject:
|
|
that would be really great
Mark
|
|
Back to top
|
|
 |
DavidBell
Joined: 24 Nov 2006 Posts: 132
|
Posted: Wed 27 Jun 2007, 03:47 Post subject:
|
|
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
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Wed 27 Jun 2007, 13:25 Post subject:
|
|
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
|
|
Back to top
|
|
 |
DavidBell
Joined: 24 Nov 2006 Posts: 132
|
Posted: Sat 30 Jun 2007, 04:18 Post subject:
|
|
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
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Sat 30 Jun 2007, 20:08 Post subject:
|
|
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.php?search_id=1097242563&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.php?search_id=273249332&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
|
|
Back to top
|
|
 |
DavidBell
Joined: 24 Nov 2006 Posts: 132
|
Posted: Sat 30 Jun 2007, 21:34 Post subject:
|
|
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
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Sun 01 Jul 2007, 19:33 Post subject:
|
|
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:
Good night
Mark
|
|
Back to top
|
|
 |
DavidBell
Joined: 24 Nov 2006 Posts: 132
|
Posted: Sat 07 Jul 2007, 19:52 Post subject:
|
|
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.9 on my machine (VIA 600MHz, 256 MB, P 2.16 Frugal) and the fonts are not as easy to read.
David
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Sat 07 Jul 2007, 20:06 Post subject:
|
|
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
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Sat 07 Jul 2007, 22:54 Post subject:
|
|
| 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=-5941928815527121512&q=Qigong&hl=en
Get well
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 6866 Location: Perth, Western Australia
|
Posted: Sun 08 Jul 2007, 07:41 Post subject:
|
|
| 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.
|
|
Back to top
|
|
 |
DavidBell
Joined: 24 Nov 2006 Posts: 132
|
Posted: Sat 21 Jul 2007, 03:09 Post subject:
|
|
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
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Sat 21 Jul 2007, 05:15 Post subject:
|
|
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
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Fri 09 Nov 2007, 14:36 Post subject:
|
|
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/Programming/Gtkbasic-002.pup
Mark
|
|
Back to top
|
|
 |
|