Questions tagged [fltk]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
31 views

FLTK GUI not working in eclipse-cdt ide for compiling code

Hi i am a beginner to c++ and i use eclipse ide and i need to use FLTK(1.3.2) in a project and i used a installer to install FLTK( downloaded from here) on my PC and the location it installed it is: C:...
-1 votes
0 answers
67 views
+50

MacOS: "expected unqualified-id @class NSString, Protocol" when building application with FLTK

I am trying to build butt for MacOS, but when I run 'make', I get a number of errors all related to the header files inside /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/...
  • 542
0 votes
0 answers
35 views

Missing library when building an FLTK application on Eclipse

I have installed FLTK using home-brew on my Intel 64 MacBook and Mac OS. In have made a C++ project in Eclipse and copy/pasted the Hellow World example from the FLTK documentation. I can compile the ...
  • 1
1 vote
1 answer
54 views

What is the Rust way of spreading events throughout the application

I'm using ftlk UI library to show window and bind some actins on it. But this question isn't ftlk specific. What would be the right way of triggering actions on other structs from the UI Window? ...
  • 381
0 votes
1 answer
55 views

Global application state with FLTK library

I'm writing an application using the fltk library. The architecture of the application involves a global state that stores which page to display now (viewer) and store the viewer data. There are ...
0 votes
2 answers
88 views

Display ImageBuffer on application window with Rust

what is Rust's best way to display and dynamically generated image? I have let image : ImageBuffer<Rgb<u8>, Vec<u8>> = ... How do I show it in a GUI? I tried with fltk, but didn't ...
  • 381
1 vote
2 answers
80 views

Create a closable tab in FLTK

So I'm new to using FLTK in C++ and I'm learning the widgets. There is a class called Fl_Tabs that creates a new tab, using the label of the widget inserted into it. However this tab label is not able ...
  • 35
0 votes
0 answers
51 views

FLTK Fl_Button doesn't work when adding a handle(event) override

I try to implement a "clickable grid" in FLTK. I have two Fl_Input to give the dimensions of the grid and a Fl_Button to draw the grid. So far, no problem, everything is working. But when I ...
0 votes
1 answer
50 views

Text not displaying in FLTK Text Display when inside a Wizard

I'm writing a GUI program with fltk-rs, and I hit something I can't understand. The text::TextDisplay widget works perfectly well until I put it inside a group::Wizard, which I'm doing so I can swap ...
  • 65
0 votes
0 answers
47 views

Regarding fltk installation

I am new to c++ and overall programming. I tried reading one book by Bjarne Stroustrup he mentioned in the very first chapter to first install fltk and write the code. Should I install fltk or use ...
0 votes
2 answers
172 views

FLTK in Rust: Resize image along with its frame

I'm trying to write a program that loads up an image, and as the user resizes the window, the image resizes as well, as if it had "height: 100%" in CSS terms, using FLTK in the Rust lang. ...
  • 178
0 votes
2 answers
59 views

Linker cant find FLTK functions definitions

Im new to C++ and making project using FLTK and cURL. Currently Im trying to compile my app for Windows using MinGW g++. Ive put files from FLTK and cURL include and lib folders into my own include ...
0 votes
0 answers
124 views

How to install FLTK on MacOS

I'm learning to use the FLTK in Bjarne's Stroustrup's Programming Principles and Practice. However, I'm stuck trying to install fltk-1.1.10 on my macOS (Monterrey 12.4). When I run the make command, I ...
0 votes
0 answers
96 views

RUST + fltk-rs || Problem with calling method from Button callback

I am currently working on University project in Rust. Goal is to build a game with GUI. Therefore I am trying to implement simple board game using fltk library. I've created struct called Grid to ...
3 votes
0 answers
32 views

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 ...
  • 5,981
1 vote
1 answer
242 views

Error when building FLTK: Configure could not find required X11 libraries

I am having trouble getting FLTK set up. I am currently using windows and trying to built it with msys2. Whenever I try to configure it with ./configure I get this error: configure: error: Configure ...
  • 58
1 vote
1 answer
144 views

How to display databases values with fltk widgets

I'm developing an application - written in rust, that registers items in a database, but I'm having trouble showing the data in a way that is visually good, I tried to use the Browser widget but it's ...
  • 23
1 vote
1 answer
64 views

FLTK - Why fl_width function returns -1 for the length of a char array on a Linux machine?

I am using the fl_width function to create widgets whose size depends on their label (e.g., some Fl_Box). In the documentation for this function one reads FL_EXPORT double fl_width (const char *txt) ...
  • 983
-1 votes
1 answer
156 views

Building FLTK Project with CMAKE/CONAN

I'm fairly new to C++ / CMake, but I'd like to create a project with FLTK using CMAKE and CONAN as package manager. I'm using Windows 11, but trying to get it to run under WSL (Ubuntu 20.04). My WSL-...
0 votes
1 answer
103 views

Rust fltk compile Err

I'm trying to build a small application from GitHub on Windows 10 but it fails even though I have MingW(codeblocks) in Path: error: failed to run custom build command for `fltk-sys v1.3.7` curl: (22) ...
0 votes
0 answers
117 views

Compile Vulkan witth FLTK

I'm trying to build with vulkan using the Windowing stack called FLTK. I am using this as my template: https://vulkan-tutorial.com/Drawing_a_triangle/Setup/Base_code https://pastebin.com/qY2Rc9zc The ...
1 vote
1 answer
703 views

How can I remove the title bar / undecorate the window in FLTK on Linux?

I have been doing some things with FLTK on Linux lately, and now I've wondered how I can remove the title bar / undecorate the window. The target Operating System is Linux, but it would be preferrable ...
  • 25
0 votes
0 answers
77 views

How can i attach images in a loop ? (FLTK)

I'm writing a program that reads image inputs and labels (and their coordinates ), saves them on vectors, and places them on an empty canvas in the end. So I made this loop to attach all the images on ...
0 votes
0 answers
102 views

FLTK Cannot open "image.jpg"

I'm making a program on fltk for a uni cpp project and I need to be able to attach an image to an open window. However when the window opens I get the text of "cannot open "(respective image ...
2 votes
1 answer
138 views

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 ...
1 vote
0 answers
67 views

Has Anyone Successfully Embedded a Matplotlib Graph Inside An FLTKHS GUI?

I am new to both FLTKHS and the Haskell matplotlib library, so please forgive if question is dumb. FLTK is C++ under the hood. matlplotlib is Python under the hood. It seems to me that passing a ...
1 vote
1 answer
577 views

How to raise a window using fltk-rs

I am trying to "raise" (draw "on top" of other overlapping windows and possibly make "active") a specific window in response to an event. The official FLTK documentation ...
  • 145
0 votes
1 answer
293 views

How does one use FLTK library using Bjarne's GUI's header file in his book Programming principles and practices?

#include "Simple_window.h" #include "Graph.h" int main() { using namespace Graph_lib; Point tl(100, 100); Simple_window win(tl, 600, 400, "Canvas"); ...
0 votes
2 answers
119 views

C++ FLTK How to redraw a box from inside an timerfunction

How do I call a box.redraw from a routine? I have a timer callback from which I a have to assign a new picture to box1. My programm crashes at this point. ... Fl_Window *win = NULL; Fl_Box *box1 = ...
0 votes
2 answers
179 views

How to change the label positioning in a Fl_Box?

I want to customize the label position inside a Fl_Box. Looking at the documentation I saw the draw_label() function here: this is a protected member of Fl_Widget, hence I derived a custom class for ...
  • 983
0 votes
1 answer
85 views

How to draw a little square with a pic on it with fltk

i wanna create a board with little squares , and put a picture on every square , how can I do it using fltk on c++ ?
1 vote
1 answer
196 views

How to handle the lifetimes of two fltk buttons that toggle eachother?

I'm trying to create two buttons (btn1, btn2) handling events (simple 'push' aka 'onclick'), they should disable each other let mut btn1 = button::Button::new(100, 100, 100, 50, "BTN1"); let ...
  • 310
0 votes
1 answer
224 views

RUST + FLTK: accessing another widget from widget on_push() function

I used FLTK to create a window and two buttons inside, the btn_A has a callback and should change the btn_B label, but I dont see any non-monstrous approach do to this, ples halp? =''[ fn main() { ...
  • 310
-1 votes
1 answer
687 views

How to use fltk graphic library with visual studio (community) 2022 for C++ project on Windows 11 PC [closed]

I have tried downloading the files from the website and try using it directing it but it needs to be compile or generated i guess. I am new to learning C++ and fltk graphic library. Thanks in advance
  • 37
0 votes
3 answers
269 views

FLTK: Clearing a graph when drawing another

I wrote a simple FLTK program to draw a circle when clicking on the "Draw Circle" button and to draw a line when clicking on the "Draw Line" button. I supposed to have only one ...
  • 77
0 votes
1 answer
75 views

Call_back is not functioning like it did before

The below code quit working and I don't know what I did to it. For some reason the call_back does not function. The print statements do show up but it appears that it is just flowing right thru the ...
  • 1
1 vote
1 answer
64 views

C++ multiple inheritance problem using FLTK

i've a problem drawing basic shape with fltk. I've made 2 classes'Rectangle' and 'Circle' that show normally. Then i've created a third class that inherit from 'Rectangle' and 'Circle' called '...
0 votes
1 answer
183 views

Adjust the text's vertical alignment in a FL_Widget using different fonts

I would like to use one of the available fonts instead of the default one: the following program is inspired by the source code which can be found in test/fonts.cxx: #include <FL/Fl.H> #include &...
  • 983
0 votes
0 answers
109 views

I can not get an element of a structure be assigned within a callback in Rust using FLTK

this is my calling codes. let var_struc_wallet = StrucWallet { StrucWalletName: String::from(" "), StrucWalletUserName: String::from(" &...
  • 1
0 votes
1 answer
182 views

How do I enable the https (SSL) support plugin for dillo?

Does anyone know how to enable https support for the Dillo Browser? I want to try logging into Canvas on it (because Dillo is cool) but I am unable to access the login page, and I think the reason is ...
0 votes
1 answer
89 views

Can not get Group to show up when menu item is selected

I have been trying to get menu and submenu items to produce the output desired. I have tried multiple ways and some work part way and other do not work at all. Below is my latest try. The main ...
  • 1
-1 votes
1 answer
188 views

How do I call an FLTK code in a function?

I am a newbie to Rust and am using FLTK to build an interface. I have the following main code. below that is a function I want to call to build a Group. If in the main.rs I pull the code from ...
  • 1
1 vote
1 answer
89 views

testing for a package version set using custom cmake version variable

I'm linking to FLTK in my project using CMake and want to make sure that if anyone else tries to do so on their machine that they have the latest version (1.3.7). The normal way in CMake to do this is ...
1 vote
2 answers
184 views

Why a Widget class uses pointers as data members?

I'm working through "Programming Principles and Practice", and I don't understand why this Widget class uses pointers as data members. The book's explanations is this: Note that our Widget ...
  • 179
0 votes
0 answers
425 views

"Undefined Reference" using mingw and fltk library

I'm trying to compile a .cpp file to output .exe file using the following command 86_64-w64-mingw32-g++ helloworld.cpp -I/usr/include/eigen3 -Ifltk-1.3.7 -Lfltk-1.3.7/lib -lfltk_images -lfltk -lX11 -...
1 vote
4 answers
328 views

Do I have to delete pointers to widgets in FLTK?

So I have the following code: int main(int, char **) { auto wptr = new Fl_Double_Window{640,480}; wptr->show(); Fl::run(); return 0; } > valgrind --leak-check=full -s ./run ==...
  • 19
0 votes
1 answer
466 views

Can not open file "fltkd.lib" error in Visual Studio 2019

#include <FL/Fl.H> #include <FL/Fl_Window.H> #include <FL/Fl_Box.H> int main() { FI_Window window(200, 200, "Window title"); // error: FI FL_Box box(0, 0, 200, 200,...
0 votes
1 answer
111 views

using namespace fltk is not working in my FLTK program

#include <FL/Fl.H> #include <FL/Fl_Box.H> #include <FL/Fl_Window.H> int main() { using namespace fltk; FI_Window window(200, 200, "Window title"); FI_Box box(0,...
2 votes
1 answer
242 views

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 ...
  • 93
0 votes
2 answers
213 views

Problem with changing image inside the box FLTK

I have a problem with changing images(Fl_PNG_image size 25x25[enter image description here][1]) inside Fl_Box. So here is the part of code that changes the box: if(strcmp(payload, "heat&...

1
2 3 4 5
10