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"?
Search found 75 matches
- May 21, 2020 19:28
- Forum: Libraries
- Topic: FLTK-C-1.3.3 for FreeBASIC
- Replies: 393
- Views: 97694
- Mar 06, 2020 11:13
- Forum: Community Discussion
- Topic: FreeBASIC IDEs/Editors
- Replies: 25
- Views: 5791
- Feb 05, 2019 10:33
- Forum: Beginners
- Topic: FBeginner Preview
- Replies: 132
- Views: 52506
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.
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.
- Sep 01, 2018 19:24
- Forum: Beginners
- Topic: Simple example: Subclassing of an edit control
- Replies: 17
- Views: 3145
Re: Simple example: Subclassing of an edit control
Instead of SetWindowLongPtr you can use the more modern: SetWindowSubclass
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...
- Nov 11, 2016 15:54
- Forum: General
- Topic: Bug in multiply and assign
- Replies: 6
- Views: 946
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...
- Nov 11, 2016 15:24
- Forum: General
- Topic: Bug in multiply and assign
- Replies: 6
- Views: 946
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.
- Oct 26, 2016 18:35
- Forum: General
- Topic: FB doesn't like fixed length strings
- Replies: 2
- Views: 489
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 ...
- Oct 12, 2016 17:40
- Forum: Beginners
- Topic: Windows GUI
- Replies: 145
- Views: 22540
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...
- Oct 03, 2016 19:51
- Forum: Libraries
- Topic: FBTrueType static Win/Lin 32/64-bit
- Replies: 65
- Views: 41925
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.
viewtopic.php?f=8&t=12078
Good job.
The letters look beautiful.
This is very much better than the Xfont routines.
viewtopic.php?f=8&t=12078
Good job.
- Nov 18, 2015 12:27
- Forum: Beginners
- Topic: Is there any real Basic implementation for GTK+ ?
- Replies: 32
- Views: 3747
Re: Is there any real Basic implementation for GTK+ ?
There is a FreeBASIC GTK+ tutorial.
http://zetcode.com/gui/fbgtk/
http://zetcode.com/gui/fbgtk/
- Oct 31, 2015 16:28
- Forum: Beginners
- Topic: text color for SetWindowText
- Replies: 1
- Views: 1014
Re: text color for SetWindowText
Via WM_CTLCOLORSTATIC MSDN #DEFINE Win_Backgr &HD0D0D0 #DEFINE Win_Text 0 #DEFINE Win_Red &H0000FF '*** Red DIM AS HDC HwinDC CASE WM_CTLCOLORSTATIC HwinDC = CAST(HDC, wParam) IF CAST(HWND, lParam) = warn1 THEN SetTextColor(HwinDC, Win_Red) ELSE SetTextColor(HwinDC, Win_Text) END IF SetBkCol...
- Aug 31, 2015 9:39
- Forum: Beginners
- Topic: Display desktop activities in a window
- Replies: 4
- Views: 1024
- May 15, 2015 7:37
- Forum: Windows
- Topic: What happened to the GradientFill function?
- Replies: 2
- Views: 1089
Re: What happened to the GradientFill function?
Thank you, DKL.
- May 14, 2015 17:54
- Forum: Windows
- Topic: What happened to the GradientFill function?
- Replies: 2
- Views: 1089
What happened to the GradientFill function?
What happened to the GradientFill function? I've seen that there are now declarations for SetWindowSubclass, DefSubclassProc and so on. So I removed those declarations from my program. But GradientFill still does not work. The compiler complains: Duplicated definition. If I remove the declaration fo...