All topics
Yes No
Hide topic messages
Yes No
Enable infinite scrolling
huycan posted Jan 13 at 2:35 am
There may be a bug. Here is my test program:

#include <nana/gui.hpp>
#include <nana/gui/widgets/menubar.hpp>
#include <nana/gui/widgets/menu.hpp>
using namespace nana;
recent by huycan  ·  Jan 14 at 10:51 pm
Hi ,

I am running external shell executable programs from within my application developed in NANA. I would like to know how to dump the output of that external program in a textbox inside my nana application.

Note: I would like it to be in real time and not after the external program finished execution.

Also I need to know how I can stop the execution of external program from within
besh81 posted Nov 9 '18 at 2:37 pm
Hi all,

Nana Creator is a a RAD tool for Nana C++ Library

I'm slowly developing this project and of course there are still a lot of code lines to write and ideas to implement but some of you could find it useful as it is.

At this stage (0.25.0) is possible to create quite complex GUIs:

using most of the nana controls
setting their attributes
adding custom controls
and much more
recent by besh81  ·  Jan 11 at 11:15 am
I think my main problem is not understanding factories ;D. My application is OpenGL based and I want to have a simple docking interface (nana::place is plenty good for my needs), alongside nana::panel(s).
For displaying OpenGL buffer I'm using nested_form.draw_through().

Is there any hack that I can use to dock both nana::panel and nana::nested_form and access draw_through() using
huycan posted Jan 4 at 1:53 am
For example, if you want to display Ctrl-N as the shortcut to New File...

As of now, by append or insert method, you can only display New only.... you can't add the Ctrl-N text to the end (right-justified)....

recent by huycan  ·  Jan 5 at 11:09 pm
Splu posted Jan 3 at 4:25 pm

Hello folks,
I like Nana and its Gnome like good looking !!
So I downloaded '' in my Xubuntu 20.04 LTS
and unpacked into my Public folder.
I chose to make the makefile cause I never used cmake.
The best guide to installation found at:
So from a bash
recent by Splu  ·  Jan 4 at 7:34 pm
Kevin Truong posted Dec 10 '20 at 10:35 pm
Hi everyone,

I am pretty new to nana GUI and I need some help with this problem.

Thread::pool pool;
timer playDelay(std::chrono::milliseconds(5000));
auto end = pool_push(pool, [&](){
cout << "Timer done" << endl;
});[&] { end();
Hi there,

I got stuck on this issue, and I will try to be as clear as possible.
What I want to do is to iterate an action for a couple of times, and the action is triggered by nana::timer.

For example, in the attached program below, it is supposed to play the sound every 0.5 seconds after the previous sound is over. However, the program will get out of the playSound function and get i
recent by Error Flynn  ·  Dec 6 '20 at 7:06 am
kman posted Oct 20 '20 at 1:51 pm
dear nana

It's a really nice gui lib

I make a log editor using nana's textbox. I added a string using the append function.
Looking at the code, _m_reset_content_size is called in the text_editor::put function, but there was a problem that it was slowed down by calculating the pixels of every line.

So I modified it as follows, but please check if it will be okay.

etnanab posted Aug 27 '20 at 2:00 am
I am trying to use nana in my windows machine; as compilation chain I am using msys2 that gives g++, clang, and many other related utilities.

It managed to compile nana itself in a static library. I.e., I have the freshly compiled libnana.a.

Then I wanted to try the "hello world nana program," and I can compile. But I cannot link.

$ g++ -v
Using built-in specs.
recent by qPCR4vir  ·  Aug 27 '20 at 9:01 am
Santi posted Aug 20 '20 at 3:08 am
Problems installing Nana 1.7.4 in Codeblock 20 on Windows 10 x64, how do I do it?

I made http downloader
The status of download is received by lambda callback, but even if you update ui here, it looks as if ui itself stopped.

How can I update ui with lambda callback?

form fm;
progress pg{ fm, nana::rectangle(10, 10, fm.size().width - 20, 20), true };;

unsigned long elapsed_size = 0;
downloader.SetOnProgress([&](unsigned long nTota
recent by i like cats  ·  Aug 13 '20 at 10:01 am
DMA posted Jun 10 '20 at 3:34 am
The text of combox is left justified. How can I make it centered or right justified?

If there is no method to do this, then I ask Jinhao to add these features to the nana::combox class. Thanks.

DMA posted Jun 5 '20 at 4:56 pm
I am trying to specify a nana::combox that has several predefined options. I would like to have an option to get a user defined string for this combox. So, I decided to have a nana::checkbox and if this checkbox is checked then I make the combox editable and get the user specified string and add it to the combox options. This idea does not work. The combox remains un-editable. What is wrong here?
recent by huycan  ·  Jun 7 '20 at 9:00 am
For example listbox allows an icon per item, but this currently has to be a nana::paint::image which can only be created by reading from a file.

Most of the places that use an icon/image usually just call the paste and/or stretch method.

The downside of only accepting a nana::paint::image is that the app can't provided generated or painted icons, e.g. from a nana::paint::graphics.

Load more
All posts under this topic will be deleted ?
With selected deselect topics
Pending draft ... Click to resume editing
Discard draft