Search found 79 matches

by Kwabbernoot
Dec 22, 2022 19:45
Forum: Documentation
Topic: Wiki improvements
Replies: 764
Views: 287526

Re: Wiki improvements

FileSetEof and FileFlush is missing in the File I/O Functions.
Can it be added?
https://www.freebasic.net/wiki/CatPgFile
by Kwabbernoot
Jan 13, 2022 18:29
Forum: Windows
Topic: Lutz Ifers WinAPI Tutorial
Replies: 10
Views: 2750

Re: Lutz Ifers WinAPI Tutorial

There is an other tutorial "FreeBASIC and API" on https://users.freebasic-portal.de/freebasicru/api.html in russian language, but there is a button to "Google Translate" in nearly any language of the world, also english, of course. A lot of examples written in FreeBASIC and expl...
by Kwabbernoot
Aug 27, 2021 11:57
Forum: Libraries & Headers
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 433
Views: 197878

Re: FLTK-C-1.3.3 for FreeBASIC

I've written a FLTK program for printing. Some remarks. 1) After a Fl_PrinterSetCurrent you can't write anything to the screen anymore. For instance: Fl-WidgetCopyLabel won't work. After executing Fl_PrinterEndJob you can write to the screen again. 2) You can't write empty lines to the printer, you ...
by Kwabbernoot
Jun 12, 2021 13:42
Forum: Community Discussion
Topic: FreeBASIC 1.08.0 Release Discussion (June 2021)
Replies: 74
Views: 11865

Re: FreeBASIC 1.08.0 Release Discussion (June 2021)

Dear badidea; Thanks for your quick reply. I tried "XFont" version 12.0.0, but unfortunately it failed to compile with the same error below. I presume that "libxfont.a" is not compatible with FreeBASIC 1.08.0. c:\tool\freebasic\bin\win32\ld.exe: c:\tool\freebasic\lib\win32/libxf...
by Kwabbernoot
May 21, 2020 19:28
Forum: Libraries & Headers
Topic: FLTK-C-1.3.3 for FreeBASIC
Replies: 433
Views: 197878

Re: FLTK-C-1.3.3 for FreeBASIC

The following functions exist:
Fl_WindowNew
Fl_WindowExNew
Fl_BoxNew
Fl_BoxExNew
Fl_ButtonNew
Fl_ButtonExNew

What is the difference between the functions with "Ex" and without "Ex"?
by Kwabbernoot
Mar 06, 2020 11:13
Forum: Community Discussion
Topic: FreeBASIC IDEs/Editors
Replies: 44
Views: 35391

Re: FreeBASIC IDEs/Editors

I also never liked Geany.
I use CSED_FB
https://www.freebasic-portal.de/downloa ... c-259.html
by Kwabbernoot
Feb 05, 2019 10:33
Forum: Beginners
Topic: FBeginner Preview
Replies: 132
Views: 61558

Re: FBeginner Preview

Maybe it is already changed, but in 2012 I've found the following errors:
An error in the example of the EQV function (page 63) line 31: myInt1 > 5 should be: myInt > 3. The same error on the next page showing the results of the example.
by Kwabbernoot
Sep 01, 2018 19:24
Forum: Beginners
Topic: Simple example: Subclassing of an edit control
Replies: 17
Views: 5213

Re: Simple example: Subclassing of an edit control

Instead of SetWindowLongPtr you can use the more modern: SetWindowSubclass
by Kwabbernoot
Mar 24, 2018 20:19
Forum: Beginners
Topic: Set EOF
Replies: 26
Views: 3929

Re: Set EOF

Very useful information. I had exactly the same problem, after rewriting a file, there was still a leftover of old data at the end of the file. I have a serie of programs and each program updates its record in a session logfile. The file is just a simple textfile. I read the whole file into a buffer...
by Kwabbernoot
Nov 11, 2016 15:54
Forum: General
Topic: Bug in multiply and assign
Replies: 6
Views: 1521

Re: Bug in multiply and assign

No bug? In that case "lhs *= rhs" is not the same as "lhs = lhs * rhs" The documentation says: lhs *= rhs This operator multiplies and assigns a value to a variable. It is functionally equivalent to: lhs = lhs * rhs http://www.freebasic.net/wiki/wikka.php?wakka=KeyPgOpCombineMult...
by Kwabbernoot
Nov 11, 2016 15:24
Forum: General
Topic: Bug in multiply and assign
Replies: 6
Views: 1521

Bug in multiply and assign

Code: Select all

   DIM AS INTEGER Value, Digit
   
   Value = 0
   Digit = 3
   Value *= 10 + Digit
   PRINT Value
   Value = 0
   Value = Value * 10 + Digit
   PRINT Value
   SLEEP


Result:
0 <--- wrong
3

Value *=10 + Digit returns a wrong result.
It only happens if the start value of Value is zero.
by Kwabbernoot
Oct 26, 2016 18:35
Forum: General
Topic: FB doesn't like fixed length strings
Replies: 2
Views: 878

FB doesn't like fixed length strings

Again a problem with fixed length strings. It probably has to do (as always) with a terminating null character somewhere in the middle of the string. Although it's strange that the PRINT statement prints the correct value. But after the assignment to another fixed length string the last part of the ...
by Kwabbernoot
Oct 12, 2016 17:40
Forum: Beginners
Topic: Windows GUI
Replies: 145
Views: 32164

Re: Windows GUI

Provoni, There is a tutorial for Windows API. The examples are written in C. But even if you don't know C, the examples are not difficult to understand. http://zetcode.com/gui/winapi/ Also a lot of examples on this forum and examples in the FreeBasic directory: C:\Program Files (x86)\FreeBASIC\examp...
by Kwabbernoot
Oct 03, 2016 19:51
Forum: Libraries & Headers
Topic: FBTrueType static Win/Lin 32/64-bit
Replies: 70
Views: 60430

Re: FBTrueType Windows and Linux (32/64-bit)

This looks great. I can use any font I like by taking a font in: C:\Windows\Fonts.
The letters look beautiful.
This is very much better than the Xfont routines.
http://www.freebasic.net/forum/viewtopi ... =8&t=12078
Good job.