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
2
votes
1 answer

How to fix the FLTK header files from 'Programmin principles and practice Using C++' book?

I Am following the "Programming principles and practice using C++" and got to chapter 12 where GUI gets introduced. However I can't get the custom header files from the book to work. After trying several guides of installing fltk specifically for…
Ruud14
  • 117
  • 7
2
votes
1 answer

Link FLTK with g++

In order to try out FLTK, I have the following file structure: project |--main.cc |--include | |--FL | | |--all FLTK header files |--lib | |--libfltk.a | |--other fltk libraries With the following content in main.cc: #include…
Romain
  • 23
  • 6
2
votes
3 answers

FL_Input into a string

Hello I am new to FLTK and right now I have a very simple program, if you run the program, click create then robot part you will see several options choose one. A new window will open with several FL_Input boxes and one enter button I want to make a…
Xavier
  • 21
  • 2
2
votes
2 answers

Undefined reference using FLTK with g++

So I have been trying to set up the FLTK library for use with g++. I have installed FLTK and I can compile the test example in its documentation without error. I am following Bjarne Stroustrups Programming: Principles and Practice, 2nd edition, and…
Xploit
  • 23
  • 4
2
votes
1 answer

C++ FLTK's Fl_Input data with update/validate loop

FLTK is a callback based GUI system but there are times that I need a user to input an acceptable answer into a Fl_Input widget before a function can return. This seems to require updating the widget, collecting the answer then returning the answer…
2
votes
1 answer

FLTK fl_line and fl_point don't work

I want to place a pixel on the window in accordance to the result of a calculation. The calculation works, but no part of the graph I want to generate ever shows up. Compiler and linker both find no error and I have no idea why no pixels are put on…
Neko
  • 45
  • 5
2
votes
1 answer

FLTK button callback gives c3867

I was trying to assigna function to a button with a method I have tried before, that also worked before, but for some reason I am getting this from my compiler now: error C3867: 'WindowReq::calc_cb': non-standard syntax; use '&' to create a…
Neko
  • 45
  • 5
2
votes
1 answer

Store Fl:Button value from callback (FLTK)

I am trying to write a program that simulates a chess game with the FLTK library. My problem is that I want to do two callbacks on an two dimension array of buttons, I want to click a button, then click another button and when the second button is…
2
votes
0 answers

Fltk win.show() not showing

I can't get the fltk window yourhand to show. Does the Fl.show() have to be outside the function? This is a part of my card game program. def makecards(Fl_Return_Button): global c yourhand=Fl_Window(100,100,1300,145,'Your Cards') …
Ruochan Liu
  • 167
  • 6
2
votes
2 answers

Why can I deadlock in a single-threaded FLTK application?

I have a supposedly single-threaded FLTK application with a popup menu, created with Fluid. I have a class that sub-classes Fl_Gl_Window and implements a handle() method. The handle() method calls a function that creates a popup window on…
cape1232
  • 999
  • 6
  • 21
2
votes
0 answers

Using FLTK with Dev-C++

I have been working on several programming languages like Java and Python and recently I came to C++. I want to build a GUI program and eventually I was suggested to use FLTK, which is claimed to be lightweight and user-friendly. However, what I was…
tony_chow
  • 41
  • 4
2
votes
1 answer

Octave plotting with FLTK: Subplots getting smaller and smaller..?

I'm using Octave 3.8.1. Consider the following code: I=4; J=6; for j=1:J for i=1:I g=subplot(I,J,(i-1)*J+j); imagesc(rand(20,20)); end end This produces the following plot: Why aren't the subplots equally sized? What do I…
theV0ID
  • 4,172
  • 9
  • 35
  • 56
2
votes
1 answer

Using FLTK & C++: Making a function that fits an image within a defined frame

I am writing a program in which the user can type the name of an image, for example "image.jpg". I am trying to devise a function that gets that image, and without cropping it, resizes it in a manner that allows it to fit in a Rectangle shape of 470…
user11892
  • 103
  • 5
2
votes
2 answers

Compiling FLTK program on Mac

I am trying to compile an FLTK program (http://www.fltk.org/index.php) on Mac OSX Mavericks. All the .h packages compile just fine, but I receive the following error: ld: symbol(s) not found for architecture x86_64 clang: error: linker command…
warship
  • 2,924
  • 6
  • 39
  • 65
2
votes
1 answer

c++ FLTK Image redraw

I am making a simple FLTK application (in linux) that needs to display PNG images in FL_Window. The next code: Fl_PNG_Image* pngImg; Fl_Box* boxImage; boxImage = new Fl_Box(500, 470, 0, 0); pngImg = new…
Xaver
  • 991
  • 2
  • 19
  • 37