Search found 1596 matches

by Sisophon2001
Feb 27, 2011 5:10
Forum: General
Topic: Screeninfo command use
Replies: 6
Views: 2009

This is from the wiki Syntax Screen mode [, [ depth ] [, [ num_pages ] [, [ flags ] [, [ refresh_rate ]]]]] Parameters mode is a QB style graphics screen mode number (see below). If mode is 0, then any currently set graphics mode is closed, and all functions resume their normal console-mode function...
by Sisophon2001
Feb 26, 2011 1:04
Forum: Linux
Topic: FBSound on Ubuntu 10.4.1
Replies: 15
Views: 5685

Still no luck. I have Ubuntu 10.10 32-bit, and rebuilt the libraries without issue. I changed the names of three old versions of the lib that I have, just to be sure, but they were not on the path anyway. Garvan EDIT 1: The original build of the libraries in the download zip file work properly, so s...
by Sisophon2001
Feb 25, 2011 14:10
Forum: Linux
Topic: FBSound on Ubuntu 10.4.1
Replies: 15
Views: 5685

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: 2438

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: 2009

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: 3447

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

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: 7070

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: 2384

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: 2569

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: 2569

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: 1595

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: 911

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: 911

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: 911

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...

Go to advanced search