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
3
votes
4 answers

FLTK Closing window

I am using FLTK. I have a window with a variety of buttons the user can click to perform some action. In my int main() i have a switch statement to handle all of these. When the user clicks exit the switch statement is setup like so: case…
Richard
  • 5,840
  • 36
  • 123
  • 208
3
votes
0 answers

FLTK's Fl_Scroll - run code in reaction to scrolling happening?

I am using FLTK 1.3, displaying a single Flex column with a number of Flex rows inside a Fl_Scroll. I want to do something to rows that were outside of the visible area when they scroll into view. But I cannot figure out how to do that. There is no…
Jakub Holý
  • 6,019
  • 3
  • 33
  • 33
3
votes
2 answers

Elegant way to push all declarations with a particular pattern-match into vector?

I'm refactoring some code and curious if there is a modern C++ feature that allows me to dynamically push all matching declarations into a vector without having to manually type out every parameter name. For example; I have the following…
jparanich
  • 8,372
  • 4
  • 26
  • 34
3
votes
0 answers

fltk make error on Ubuntu. bits/statx-generic.h: No such file or directory

I am trying to install the fltk library: ./configure --enable-shared --enable-threads --enable-debug make The make command gives the following errors: === making src === Compiling Fl.cxx... In file included from…
physics20
  • 31
  • 2
3
votes
1 answer

How to get drop-down menu in FLTK?

I am making a GUI with FLTK and I am wondering if there is a widget for something resembling a drop-down menu. I want one value to be shown, then have the user click the value (or something else associated with it), then a list of values be shown…
Sterling
  • 3,835
  • 14
  • 48
  • 73
3
votes
1 answer

FLTK box element not visible in window

I'm a beginner in C++ and working through Stroustrup's - Programming Principles and Practice using C++. In chapter 12, the display model is introduced with the task to install and run FLTK on the system. I installed FLTK and can compile the two…
Juri
  • 604
  • 9
  • 19
3
votes
2 answers

Stroustrup: For C++, how do I install FLTK library?

Question: Can someone give me instructions on how to install FLTK for Microsoft Visual Studio 2015, so that I can use FLTK for C++? Extra Information: the Chapter 12 drill, in Bjarne Stroustrup's Programming: Principle and Pracice using C++ wants me…
3
votes
1 answer

Stroustrup's Header error working with FLTK

I have successfully installed FLTK in VS 2015 Community Edition. I am dealing with other headers, part of Stroustrup's book, to build graphs and to create custom windows where to attach them. My problem is that when I am trying to compile I receive…
3
votes
2 answers

octave cannot find fltk XGetUtf8FontAndGlyph symbol

octave 3.8.2 produces this error on loading: error: /usr/lib64/octave/3.8.2/oct/x86_64-pc-linux-gnu/PKG_ADD: /usr/lib64/octave/3.8.2/oct/x86_64-pc-linux-gnu/__init_fltk__.oct: failed to load: /usr/lib64/fltk/libfltk_gl.so.1.3: undefined symbol:…
Rolf
  • 139
  • 1
  • 9
3
votes
1 answer

How can I make a window transparent in Windows, Mac OS X, and Linux using FLTK?

I'm writing an application in C++ using FLTK 1.3.2. This is the code I use to make the main window transparent on Windows 7 or 8: // Given: // Fl_Window *my_fltk_window; // bool is_transparent; HWND hwnd = fl_xid(my_fltk_window); LONG_PTR exstyle =…
Remy
  • 401
  • 2
  • 19
3
votes
1 answer

adding/removing widgets at runtime in FLTK in c++

I'm making an application that deals with floorplans and so wish to have a Layer dialogue which allows the user to turn on/off the different layers in the floorplan. I would like to have a pop up window which therefore has a checkbox for every layer…
user3353819
  • 911
  • 2
  • 8
  • 21
3
votes
2 answers

How to load FLTK graphics toolkit in GNU Octave 3.8?

I have installed GNU Octave 3.6.4 and 3.8.1 versions on one machine (OpenSUSE Linux 13.1, x86-64). Version 3.6.4 was out of the box, version 3.8.1 I build by myself from sources (configure-make-make install). In octave-3.6.4 I have such…
northewind
  • 33
  • 1
  • 7
3
votes
1 answer

FLTK - Compile Multiple .cpp's - Linux

For simplicity, I have reduced my problem to a minimal working example. I begin with a file, blah.cpp, that is very simple. #include #include int main(int argc, char **argv) { Fl_Window* win = new…
Arturo don Juan
  • 249
  • 2
  • 8
3
votes
0 answers

Plotting in Octave on MaxOS X

I'm trying to work with Octave on Mac OS X 10.9.2 and I'm having problems plotting. I found that running setenv('GNUTERM','qt') solves the problem momentarily, but I get the following error when I try to plot after running some code: warning:…
user3600441
  • 151
  • 1
  • 5
3
votes
3 answers

Problems plotting with Octave

I've just started using Octave. When I start octave and try to plot something, the plot works but I get the following warnings repeated many times: warning: ft_render: unable to load appropriate font warning: ft_render: invalid bounding box, cannot…
1
2
3
32 33