Search found 1594 matches

by Sisophon2001
Feb 25, 2011 14:10
Forum: Linux
Topic: FBSound on Ubuntu 10.4.1
Replies: 15
Views: 5571

Why would I get this error when compiling the tests? garvan@dell-desktop:~/programming/fbsound0.10$ ./buildalltests.sh please wait build all 31 tests ! ld: skipping incompatible lib/libfbsoundlin.a when searching for -lfbsoundlin ld: cannot find -lfbsoundlin I have been using fbsound0.03 and thought...
by Sisophon2001
Feb 22, 2011 5:48
Forum: Community Discussion
Topic: Custom FB Fonts
Replies: 13
Views: 2330

I have one program using a custom draw string font you can use. The full source is here. http://weekendcode.phatcode.net/files/fbskb_1.5.zip if the direct link does not work you might have to follow the links on the website. http://weekendcode.phatcode.net Garvan
by Sisophon2001
Feb 22, 2011 5:41
Forum: General
Topic: Screeninfo command use
Replies: 6
Views: 1952

1) This is what I expected. You did not load any driver (using screen or screenres) so only information related to your desktop is returned. 2) FB emulates 24 bid mode in 32 bit. The documentation says that "Values of 15 and 24 are also allowed as aliases for 16 and 32, respectively." The help file ...
by Sisophon2001
Feb 21, 2011 13:27
Forum: Projects
Topic: Glade to FreeBASIC Generator "glade2bas" Reloaded
Replies: 14
Views: 3369

Thanks. Garvan
by Sisophon2001
Feb 18, 2011 6:12
Forum: Libraries
Topic: GTK Callback question
Replies: 35
Views: 6871

Thank you for your help. I found the definition of an expose-event user function for a GtkWidget and it has three parameters, which implies scribble-simple.bas is wrong. But maybe it does not make a difference. The callback is cdecl, so the stack clean-up would be performed by code calling the funct...
by Sisophon2001
Feb 18, 2011 2:37
Forum: Libraries
Topic: GTK Callback question
Replies: 35
Views: 6871

GTK Callback question

How do we know the correct parameters for a GTK callback? I find different number of parameters in different examples, both of which appear to compile and work. In the FB example gdk_image.bas the on_expose callback is coded like this. dim as GtkWidget ptr win, drawarea declare function on_darea_exp...
by Sisophon2001
Feb 18, 2011 1:23
Forum: Linux
Topic: Cross-compile to Windows HOWTO
Replies: 4
Views: 2353

Cross-compiling is a recurring question and I think an example of how to get it working from Linux should be in the wiki. I personally keep an old laptop with XP to compile window programs on, and my second choice would be to use VirtualBox, so I have not actually tried following the instructions. I...
by Sisophon2001
Feb 04, 2011 5:59
Forum: Beginners
Topic: Open a website
Replies: 10
Views: 2433

Could you add some comments to your linux code? On Ubuntu the first path is taken, and the xdg-open script is run, so I am wondering about the need for the rest of the code. This sub is supposed to open any file / url / address. If xdg-open is present, it will automatically redirect to the proper a...
by Sisophon2001
Feb 03, 2011 12:43
Forum: Beginners
Topic: Open a website
Replies: 10
Views: 2433

on Linux you could try x-www-browser or just www-browser (works on debian based systems, maybe others, none to test) xdg-open is the universal way. Could you add some comments to your linux code? On Ubuntu the first path is taken, and the xdg-open script is run, so I am wondering about the need for...
by Sisophon2001
Feb 01, 2011 13:09
Forum: Tips and Tricks
Topic: Using FbEdit as Linux IDE with wine
Replies: 4
Views: 1515

TJF wrote:<snip>
Anyway: I feel better installing Geany on win, adding UnxUtils and then using the same IDE on both systems.


Why do you need UnxUtils for running Geany in windows?

Garvan
by Sisophon2001
Jan 17, 2011 13:11
Forum: General
Topic: Struggling with Gtk layout - bitmaped buttons
Replies: 4
Views: 858

Thank you, I have a working example to study now.

Garvan
by Sisophon2001
Jan 17, 2011 5:54
Forum: General
Topic: Struggling with Gtk layout - bitmaped buttons
Replies: 4
Views: 858

I have glade 3 and I tried laying out the buttons in a button box, but I could not get the spacing correct. I am sure it is possible, but I must setting the wrong properties. And I think gtk_button_new_from_stock() shows TEXT only in Ubuntu, with the exact behaviour determined by the buttons_have_ic...
by Sisophon2001
Jan 16, 2011 14:18
Forum: General
Topic: Struggling with Gtk layout - bitmaped buttons
Replies: 4
Views: 858

Struggling with Gtk layout - bitmaped buttons

I want to make a series of buttons with the typical media player graphics - first, previous, pay, pause, next, last - small square buttons, all close together. When I try to do this the buttons are spread out across the available space, instead of compacted together in a bar. I want to keep the butt...
by Sisophon2001
Jan 16, 2011 10:54
Forum: General
Topic: Crosscompile from Windows to Linux
Replies: 3
Views: 887

Re: Crosscompile from Windows to Linux

Today I tried to compile a Linux version of my game on a WinXP. But it says "Invalid command line option" The help file says: "Only available in versions fbc that have had cross compilation support enabled at configure time before building the compiler." Which versions are built with cross compilat...
by Sisophon2001
Dec 23, 2010 13:17
Forum: General
Topic: Squares
Replies: 6833
Views: 391889

You might also consider using GFX_NULL to create an in memory version of a FB screen, so that you could use all the FB graphic commands commands for drawing, and then copy different sections of the hidden screen to different display windows in which ever GUI system you are using. For example in GTK ...

Go to advanced search