r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Red] Red language group

Kaj
9-Sep-2011
[3241]
Thanks. It makes them backward and forward compatible to some extent
Dockimbel
9-Sep-2011
[3242]
Bug should now be fixed.
Kaj
9-Sep-2011
[3243]
Not for me
Dockimbel
9-Sep-2011
[3244]
I have tested with your code example and GTK debug version. I'm getting:

type: 1005
value: 0
Window: skipping missing widget.
Kaj
9-Sep-2011
[3245]
I'm still getting 1000
Dockimbel
9-Sep-2011
[3246]
I do a quick test on Linux, just in case...
Kaj
9-Sep-2011
[3247]
missing widget

 in itself is already a bug. If it would recognise it as system/alias/gdk-image! 
 it would say "missing icon"
Dockimbel
9-Sep-2011
[3248]
Ok, looking on that.
Kaj
9-Sep-2011
[3249]
In my test program, gdk-image! is alias 1018, so 1005 seems way off
Dockimbel
9-Sep-2011
[3250x2]
Yes, I have located the issue in compiler code, I am now looking 
for a durable fix.
Pushed a temporary new fix for #172, let me know if it works for 
you now.
Kaj
9-Sep-2011
[3252x8]
Yes, thanks!
I've moved the GTK library initialisation into the binding, so that 
the explicit gtk-begin isn't necessary anymore; but it prevents using 
the workaround still needed for #129
I suppose local variables are not initialised?
Implemented attaching an object to a (button) action
Here's an example that gets input from a line entry field:
Red/System [ ]

#include %GTK.reds

button-pushed: function [
	[callback]
	widget				[gtk-widget!]
	data				[handle!]
][

 print ["Input: "  gtk-get-entry-text  as gtk-entry! data  newline]
]

input: field "Here"

gtk-view window [
	170 90  gtk-position-center
	"Red GTK+ Input Field"
	fixed [
		70 10  label "Input:"
		 5 30  input
		60 60  button [50 25  "OK"  :button-pushed input]
	]
]
Added a few more examples
Doc, the examples are now suitable for demonstrations, such as coming 
week
Dockimbel
10-Sep-2011
[3260]
Nice!
jocko
10-Sep-2011
[3261]
adding some actions could be attractive for a demo
Kaj
10-Sep-2011
[3262x3]
Sure, if you can double my hours in a day
Doc, the 0MQ binding still works, so you can use the request/reply 
example, on Linux or Windows
A fairly impressive demo is to start the client before the server
Pavel
10-Sep-2011
[3265x2]
As soon as http://www.raspberrypi.org/will be available, the ARM 
emitter would be strongly necessary, Interresting toy for less than 
expected (if they keep promises)
unfortunatelly raspberrypi website is a mess
Kaj
10-Sep-2011
[3267x8]
Yep, we're living in interesting times
The cURL binding still works, but I don't have a nice example for 
it yet
I've cleaned up my SDL binding; although sound still doesn't work. 
It's now here:
http://red.esperconsultancy.nl/Red-SDL
I've added the PeterPaint example, with some more comments
It demoes mouse events, drawing, program arguments and loading a 
bitmap file
I've added a sample.bmp file from SDL for easy access
SDL can be demoed on Linux. I haven't tested on Windows yet, although 
it should at least almost work
Dockimbel
10-Sep-2011
[3275]
Great, thanks!
Kaj
10-Sep-2011
[3276]
You can put GTK and SDL on the website now, if you want
Dockimbel
10-Sep-2011
[3277]
Sure, I will.
GrahamC
10-Sep-2011
[3278]
Is there an idiots guide for new users and developers?
PeterWood
10-Sep-2011
[3279]
Have you looked at the webiste - http://www.red-lang.org/- ?
GrahamC
10-Sep-2011
[3280x2]
I don't think there's a quide guide on getting started for people 
new to red and/or rebol ...
guide2 = quick guide
jocko
10-Sep-2011
[3282]
Red-SDL , and the PeterPaint example works under Windows XP apart 
from the name of the dll which is SDL.dll instead of libSDL-1.2.dll
Kaj
10-Sep-2011
[3283x2]
Ah, that's a weird transformation. I'll add it. Thanks for testing!
Where did you get the Windows SDL binaries?
GrahamC
10-Sep-2011
[3285]
this isn't it ? http://www.libsdl.org/download-1.2.php
Kaj
10-Sep-2011
[3286x2]
Oh, I thought they didn't have ready made binaries :-)
I don't seem to have an unpacker for Mac disk images. Could somebody 
tell me the SDL library name in the DMG package?
GrahamC
10-Sep-2011
[3288]
http://en.wikipedia.org/wiki/Apple_Disk_Image
Kaj
10-Sep-2011
[3289]
Yes, but I need information out of the SDL DMG
GrahamC
10-Sep-2011
[3290]
The page there refers to a number of "free" utils for unpacking dmg 
files .. though for windows