Search found 370 matches

by lizard
Aug 01, 2018 18:51
Forum: Linux
Topic: Semi-automatic generation of FB program from glade 2 files
Replies: 4
Views: 437

Re: Semi-automatic generation of FB program from glade 2 files

Hi TJF, i have seen your name many times in threads about gtk. You seem to be one with deeper understanding of gtk together with FB. Yes, i have researched some time about gtk and tried your GladeToBac. But afaik only few of base elements like clist, vbox and hbox are deprecated, so you cant say who...
by lizard
Jul 22, 2018 10:57
Forum: Linux
Topic: Semi-automatic generation of FB program from glade 2 files
Replies: 4
Views: 437

Re: Semi-automatic generation of FB program from glade 2 files

On Win (or Linux) even a complete manual conversion from glade 2 C files to FB is not quite difficult. Much can be done with search/replace. In case of the above example its mainly 4 steps: Including header in c #include <gtk/gtk.h> becomes in FB #include once "gtk/gtk.bi" Alll other "...
by lizard
Jul 20, 2018 22:07
Forum: Linux
Topic: Semi-automatic generation of FB program from glade 2 files
Replies: 4
Views: 437

Semi-automatic generation of FB program from glade 2 files

Here i want to describe a procedure of semi-automatic generation of gtk-gui-forms from glade 2 to FB. To keep things short: 1. Find and install glade 2 (not 3, because the code generation was stopped there) in Windows (10 or whatever). 2. Design your form in glade 2. In Options choose a folder on us...
by lizard
Jul 18, 2018 23:37
Forum: General
Topic: How do I convert TTF fonts to anti-aliased bitmap fonts?
Replies: 4
Views: 344

Re: How do I convert TTF fonts to anti-aliased bitmap fonts?

Muttonhead wrote:https://www.freebasic-portal.de/dlfiles/88/CharSet2FBFont.zip


Works here on Mint if in FileRequester.bas

#include once "SimpleToggle.bas"

the "t" is changed to uppercase. Thanks, nice program, used it before.
by lizard
Jul 12, 2018 10:00
Forum: Beginners
Topic: Converting
Replies: 8
Views: 422

Re: Converting

"If you have to fix something, use fix without becoming a fixer, that fixes all."
by lizard
Jul 12, 2018 8:04
Forum: Beginners
Topic: Converting
Replies: 8
Views: 422

Re: Converting

Why not?
by lizard
Jul 12, 2018 7:25
Forum: Beginners
Topic: Converting
Replies: 8
Views: 422

Re: Converting

TurtleProgrammer wrote:Is there a way to convert say: 1.019 to 1.0 and store the result in a variable? I found PRINT USING, but of course that prints to the screen which I don't want to do.


Code: Select all

dim as single x = 1.019, i
i = fix(x)
'print i


That should be exactly what you want.
by lizard
Jul 01, 2018 21:07
Forum: General
Topic: Random Numbers Using Text
Replies: 5
Views: 272

Re: Random Numbers Using Text

Maybe with 14 he would have learned to use the white keys on piano.
by lizard
Jul 01, 2018 18:13
Forum: Linux
Topic: install_libs.sh for FB and more
Replies: 0
Views: 179

install_libs.sh for FB and more

This script installs many libs needed for FB examples and others on Mint and Ubuntu.. Just make it executable and run with "./install_libs.sh". Tested on Mint Cinnamon 18.2. #!/bin/sh # install_libs.sh # installs many libs needed for FreeBasic 1.05 examples # under Mint 18.3 or other linux...
by lizard
Jul 01, 2018 18:06
Forum: Beginners
Topic: Regular expressions
Replies: 28
Views: 1015

Re: Regular expressions

On Linux Mint the libs often are much easier to find. Just do

Code: Select all

sudo apt-get install libtre-dev


I have posted a script for many libs in the linux forum.
viewtopic.php?f=5&t=26838&p=249012#p249012
by lizard
Jul 01, 2018 17:59
Forum: General
Topic: Random Numbers Using Text
Replies: 5
Views: 272

Re: Random Numbers Using Text

Really? Who was that?
by lizard
Jun 30, 2018 17:23
Forum: Beginners
Topic: How to work with Excel and Word documents
Replies: 6
Views: 360

Re: How to work with Excel and Word documents

It would depend what exactly you want to work with excel. For only a few tables it is maybe easier to transform them into FB arrays. With gtk or other gui you can create gridboxes.
by lizard
Jun 29, 2018 3:45
Forum: Beginners
Topic: How to work with Excel and Word documents
Replies: 6
Views: 360

Re: How to work with Excel and Word documents

Sometimes better use google with "freebasic excel" or similar

https://www.google.de/search?q=freebasi ... e&ie=UTF-8
by lizard
Jun 29, 2018 1:19
Forum: General
Topic: Random Numbers Using Text
Replies: 5
Views: 272

Re: Random Numbers Using Text

We could combine your program with mine and make music out of it. ' color_demo.bas dim as long rgb_colors(256) = { &h000000, &h0000aa, &h00aa00, &h00aaaa, &haa0000, _ &haa00aa, &haa5500, &haaaaaa, &h555555, &h5555ff, &h55ff55, &h55ffff, &hff5555, &...
by lizard
Jun 25, 2018 18:17
Forum: Community Discussion
Topic: Tutorials?
Replies: 38
Views: 1764

Re: Tutorials?

It all depends on the reason why you are programming. If your intention is to bring a light in the darkness for the lost souls, then it is devotional service for god. If not it is nothing but a waste of time.

Go to advanced search