Questions tagged [fltk]

FLTK (pronounced "fulltick") is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and Mac OS X.

FLTK provides modern GUI functionality without the bloat and supports 3D graphics via OpenGL and its built-in GLUT emulation.

FLTK is designed to be small and modular enough to be statically linked, but works fine as a shared library. FLTK also includes an excellent UI builder called FLUID that can be used to create applications in minutes.

FLTK is provided under the terms of the GNU Library Public License, Version 2 with exceptions that allow for static linking, a fact that makes it attractive to anyone who wants to use it in proprietary applications.

NOTE:The platforms listed in the excerpt are not the only platforms FLTK works on, but you may see them as the only supported platforms (by the FLTK development team). FLTK is known to work on eComStation, QNX, AIX, IRIX, OpenVMS, and literally any platform with X Window System.

483 questions
14
votes
1 answer

C++ to C Wrapper using SWIG (for FLTK)

I need to generate wrapper to FLTK C++ classes to use it in pure C. I know, that SWIG can do that, and I know how to generate wrapper for C#, Python etc. But I do not know how to wrap C++ to C using SWIG. It's simple task, but I can't find the…
Artem
  • 225
  • 2
  • 6
10
votes
2 answers

Compile FLTK with g++

I am working through Stroustrup's Principles and Practices using C++. I am trying to get the following program to compile. #include #include #include int main() { Fl_Window window(200, 200, "Window…
Effective_cellist
  • 1,098
  • 1
  • 19
  • 39
9
votes
2 answers

Run a project in Visual Studio 2015 in C++98 mode

I currently have a project which I programmed in Visual Studio 2015 with the most up to date compiler (i.e. the default). Unfortunately, I require my project to compile and execute in a C++98 environment - is there a way for me to do this in Visual…
sjrowlinson
  • 3,297
  • 1
  • 18
  • 35
8
votes
6 answers

Stroustrup's Simple_window.h

I am trying to get the graphics examples to work from Stroustrup's Principles and Practices ...C++, to no avail (yet). I have installed the fltk stuff, and know that is working fine as I managed to get a window to display using with a program…
Nathan Hutton
  • 190
  • 2
  • 10
8
votes
2 answers

How to store preferences (and user settings) in a cross-platform application?

I'm working on a GUI desktop application that should run natively on Windows, Mac OS X and Linux. What is the preferred way to store preferences in a cross-platform application? I'm using C++, but the question (and its answers) should be valid for…
z80crew
  • 1,150
  • 1
  • 11
  • 20
7
votes
4 answers

error C1083: Cannot open include file: 'FL/Fl.h': No such file or directory

First of all I'm still new here and therefore have no idea how to format the code so it looks neat in this question, I hope this is acceptable. I am following the programming principles and practice from Stroustrup. You might guess what the problem…
Pablo
  • 1,571
  • 3
  • 11
  • 11
6
votes
1 answer

FLTK in MSVC needs x11 headers?

I'm trying to learn how to use FLTK right now (In MSVC 2008). I got all the the libraries compiled correctly, but when I tried to run this program: #include "FL/Fl.H" #include "FL/Fl_Window.H" #include "FL/Fl_Box.H" int main(int…
Benjamin
  • 1,223
  • 1
  • 13
  • 22
6
votes
1 answer

Implementing a progress bar class

I am learning c++ using the book Programming Principles and Practice Using C++. Chapter 16 covers techniques using the gui part of FLTK library via an interface library. One of the exercises in this chapter is to animate movement of a picture,…
NorwE
  • 79
  • 1
  • 4
6
votes
1 answer

How to display Unicode with FLTK?

According to the FLTK 1.3.2 documentation: Unicode support was only recently added to FLTK and is still incomplete. However, the following are supposedly implemented: It is important to note that the initial implementation of Unicode and …
JBentley
  • 6,099
  • 5
  • 37
  • 72
5
votes
2 answers

fltk complains about gcc on windows

I've been trying for almost a to build fltk on windows in so many different ways but I always end up with: configure: error: C compiler cannot create executable (msys fltk/configure) or Check for working C compiler: C:/MinGW/bin/gcc.exe --…
ducklin5
  • 95
  • 1
  • 11
5
votes
2 answers

Font anomaly in FLTK Hello World

I am trying to start learning how to use the FLTK GUI tool kit to make a basic text editor and I'm having a problem with this simple Hello World from the documentation tutorial. #include #include #include…
alexandre
  • 93
  • 1
  • 7
5
votes
1 answer

FLTK 1.3 Linking errors

I update my FLTK from 1.1 to 1.3, then I can't compile my code which is worked well before update. ... [100%] Building CXX object CMakeFiles/PROSTVIEW.dir/include/nifti/vtkznzlib.cxx.o Linking CXX executable PROSTVIEW …
Yao
  • 127
  • 3
  • 13
4
votes
1 answer

How to get macOS keyboard shortcuts set in System Preferences programmatically?

On macOS the key combination CMD+Backtick is used to cycle through the open windows of an application when using an english keyboard. On German keyboards for example the combination is CMD+<. This shortcut can even be configured using System…
z80crew
  • 1,150
  • 1
  • 11
  • 20
4
votes
4 answers

How do I install FLTK for VS2010?

I'm doing a project for school have to incorporate a form of GUI. Sadly, I have no experience with GUIs whatsoever so I just spend the last few hours comparing the various toolkits and settled on FLTK for it's lightweightness. I also spent the time…
Tony
  • 41
  • 1
  • 3
4
votes
4 answers

cmath Errors when using FLTK

For some reason, whenever I add the FLTK directory to my include path, I get a bunch of errors from cmath. I am using GCC version 4.2. Here is a sample program and the build output: main.cpp #include int main() { return 0; } ****…
Scott
1
2 3
32 33