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
2 answers

What makes deployment successful for some users and unsuccessful for others?

I am trying to deploy a Visual C++ application (developed with Microsoft Visual Studio 2008) using a Setup and Deployment Project. After installation, users on some target computers get the following error message after launching the application…
Julien
  • 101
  • 8
3
votes
3 answers

How Can I create and attach shapes to a window in a loop in C++?

I have made a program that takes a series of commands, e.g. square 150 160 and draws some shapes in a window. I want to do it for an arbitrary number of commands. So, I use a loop to do this. The thing is that when the commands that create the…
Daimba
  • 31
  • 2
3
votes
2 answers

Cannot open include file X11/X.h when compiling

I've copied the FL folder into the project. and it show me this: 1>------ Build started: Project: Client, Configuration: Debug Win32 ------ 1> Main.cpp 1>c:\users\user\documents\visual studio 2012\projects\talktome\talktome\fl\xutf8.h(33): fatal…
2
votes
2 answers

Xcode 4 FLTK 1.3.0 undefined architecture x86_64

Hi, I am using Xcode 4 and trying to set up FLTK 1.3.0 to run Bjarne Stroustrup's Chapter 12 FLTK Demo at the end of the chapter. I keep getting the following error when compiling, and have no idea where to go. I have an idea it…
2
votes
3 answers

FLTK not working with Stroustrup headers

I'm currently learning c++ with the book Programming: Principles and Practice Using C++ from Stroustrup and am in chapter 12. I'm now trying since days to get FLTK with the specific headers working. I have installed FLTK with MacPorts. When i'm…
MCPP
  • 49
  • 2
  • 6
2
votes
1 answer

rust fltk loop callback error use of moved value: `frame` value moved into closure here, in previous iteration of loop

I am having a bit of a problem with constantly updating an fltk frame. I have tried to google a few things but anything that should have worked from other answers (e.g: using & / &mut but it doesnt seem to work) fn main() { println!("{}",…
2
votes
1 answer

How to get image with transparent background from FLTK Fl__Image__Surface?

I want to draw string or char (offscreen) and use it as Fl_Image or Fl_RGB_Image. Based on this link I can do that easily with Fl__Image__Surface. The problem with Fl__Image__Surface is that it does not support transparency when I convert its output…
WailenB
  • 93
  • 7
2
votes
1 answer

How to do gui transplantation in Java?

I have a Qt(c++) and FLTK (lua) GUI running. And i have Java AWT/Swing GUI running, side by side in a Desktop. How can i now inject the Qt/FLTK GUI window A-Z to my JAva Window or JWindow? So that it becomes such tree: JWindow |_ Third party…
user285594
2
votes
1 answer

Why is it showing the warning: field is never read: `group`? Is there some option resolve this warning?

I am a newbie at rust programming. Here I was developing a FLTK app using rust. I am getting the following warning. warning: field is never read: `group` --> src\views\logo.rs:13:5 | 13 | group: fltk::group::Group, | …
Santo K. Thomas
  • 153
  • 2
  • 12
2
votes
1 answer

How can I change button label within its own callback in FLTK?

I want to change button's label when button is pressed. But I got this error message. error[E0505]: cannot move out of `but` because it is borrowed --> src/main.rs:24:22 | 24 | but.set_callback(move || but.set_label("PRESSED")); | …
ratpoison
  • 21
  • 1
2
votes
2 answers

FLTK - can't compile with g++

After installing FLTK 1.4 library on Manjaro Linux I compiled it successfully with "fltk-config -compile hello.cpp" However, it seems I can't compile it with g++: g++ hello.cpp -o hello -I/usr/local/include -L/usr/local/lib -lfltk -lXext -lX11 -lm…
Theodore
  • 179
  • 12
2
votes
2 answers

How to automatically put newline at text's end in FLTK Multiline_Input?

I am using FLTK 1.3.5 and I would like to use the Multiline_Input object. I wonder if there is a way to automatically put a newline when the inserted text reaches the end of the input field, instead of doing it manually (check the uploaded images…
Eddymage
  • 1,008
  • 1
  • 7
  • 22
2
votes
1 answer

FLTK 1.4 widget position w.r.t. X11 root window?

context I am coding with others RefPerSys, a GPLv3+ project in C++17 on gitlab for GNU/Linux/x86-64/Debian/Sid. Its fltk-branch git branch is using FLTK 1.4, compiled from source code, with an Xorg display server. I have C++ classes like (in file…
Basile Starynkevitch
  • 223,805
  • 18
  • 296
  • 547
2
votes
0 answers

How (if possible) can I use FLTK within Visual Studio Code?

I have mostly been using Visual Studio Code for my responses to exercises and drills in Programming: Practices and Principles (2nd Ed.) by Bjarne Stroustrup. I will soon be starting Chapters 12 through 17, a section of the book that involves the use…
KBurchfiel
  • 635
  • 6
  • 15
2
votes
0 answers

Objects phasing inside eachother when colliding with more than one object in custom 2d physics engine

Ok, to start off with, first post (with a large issue that I don't know why it's happening nor which part of the code is getting messed up), so if I do anything wrong, please let me know what it is, and how to fix it for the future. Also, I am…
Pjbomb2
  • 21
  • 3
1 2
3
32 33