500
questions
0
votes
1
answer
45
views
FLTK library Link Error 2019 when compiling GMSH with GUI with (unresolved external symbol "main")
When trying to compile GMSH (https://gitlab.onelab.info/gmsh/gmsh/), I face this error:
fltkd.lib(fl_call_main.c.obj) : error LNK2019: unresolved external
symbol main referenced in function WinMain [\...
1
vote
0
answers
32
views
How to select multiple folders with FLTK using Fl_Native_File_Chooser
the following C++ code works fine, except that I do not know how to select multiple folders: each time I click on a folder the previous one is unselected...
When using the option ...
0
votes
0
answers
63
views
MurgaLua 0.7.5 and use of fltk function saveAsPng()
i am stuck with a personal code murgaLua 0.7.5 (OS Linux Lubuntu LTS, but it should work in Windows) that captures in a fltk graphic window (created by the code) a diagram image and writes it in png ...
0
votes
1
answer
45
views
Memory leak after button execution callback function in C++ library FLTK
Compile the following code
#include<FL/Fl.H>
#include<FL/Fl_Window.H>
#include<FL/Fl_Box.H>
#include<FL/Fl_Button.H>
#include<FL/fl_ask.H>
#include<bits/stdc++.h>
...
0
votes
2
answers
59
views
FLTK non_modal windows 'group' together if shown without multiple calls to Fl::wait() in between
The windows that are opened non_modally are 'grouped'. If you click on a window that is (partially) covered by another child, it will not come to the front. If you make enough wait() calls between the ...
0
votes
1
answer
57
views
Tooltip not appearing in FLTK custom widgets
I am creating a tool for a project using Fl_Tabs and some custom widget, which encompasses some other custom classes.
I would like to have a tooltip appearing when the mouse is hoovering on the custom ...
0
votes
1
answer
85
views
compact packed expandable multiple tree
See https://github.com/gitx/gitx/blob/master/screenshot-stage.png
The left panel is similar to what I am trying to implement.
I have tried Flex::column and group::Pack.
But it just distributes all ...
0
votes
1
answer
93
views
Why is CMake's relationship to FLTK install fragile?
Working on a Mac, I have a directory at /Users/ken/vsc/catch containing my project. It builds. Then I copied the full contents of that directory to /Users/ken/prog24/Catchwater. It doesn't build. The ...
0
votes
1
answer
84
views
How do I pin a frame "status bar" to the bottom of a resizable window?
I want to create a layout where window is resizable, the main frame is resizable with the window, a fixed status bar at the bottom of the window which only resizes horizontally and always stays stuck ...
-2
votes
1
answer
55
views
glutBitmapCharacter worked in older version but no longer
I am reviving some legacy OpenGL code from 2004. Somewhere along the way, the display of lettering quit working. glutBitmapCharacter does not work, it fails silently and nothing appears. Obviously ...
-2
votes
1
answer
111
views
FLTK: When and how does Fl_Group::add take effect?
The code below, with these two lines in this order
tab1.add(glWindow2);
window->show();
produces this image:
But if I put the add call after window->show:
window->show();
tab1.add(glWindow2)...
2
votes
1
answer
48
views
Fl_Gl_Window sample program fails to draw in that window
I got this program to build and run:
#define GL_SILENCE_DEPRECATION
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Gl_Window.H>
#include <FL/gl.h>
#include <...
0
votes
0
answers
35
views
Trying to use the add_extra member function in Fl_File_Chooser to add an extra button (FLTK)
I wish to use the Fl_File_Chooser to select a directory path for use in my main code. The main code uses a button and callback to run the Chooser in cb_dirselect(). If I set the Chooser in DIRECTORY ...
0
votes
0
answers
111
views
how to install and configure fltk 1.3.9 with visual studio 2022
I am new to C++ coding, studying independently from programming principles and practicing Bjarne Strostrup, when I got to the chapter on GUI I had a great frustration trying to install and configure ...
1
vote
1
answer
66
views
How can i show changes on a grid in fltk-rs?
I am making a basic application in fltk-rs that uses a fltk-grid. I want to update the widgets of that grid and then show the changes made.
This is my code:
main.rs
use fltk::{app, prelude::*, window::...