All topics
Yes No
Hide topic messages
Yes No
Enable infinite scrolling
I still cannot build a simple "hello world" program using nana v1.7.3, even when I build with gcc v8.3

This problem was reported back in August when v1.7.2 broke it.

Here is the program

#include <iostream>
#include <nana>
#include <nana>

using namespace std;

int main()
using namespace nana;
form fm;
label lb(fm, rectangle(fm.size()));
recent by jinhao  ·  Feb 14 at 4:39 am
#include <nana/gui.hpp>
#include <nana/gui/widgets/menubar.hpp>
#include <nana/gui/widgets/textbox.hpp>
#include <nana/gui/widgets/label.hpp>
#include <nana/gui/place.hpp>
#include <nana/gui/msgbox.hpp>
#include <nana/gui/filebox.hpp>
#include <thread>
#include <iostream>
using namespace nana;
using namespace std;
using path_type = std::filesy
recent by jinhao  ·  Feb 13 at 7:11 am
Hi All,
I'm currently learning advanced STL concepts and consider nana as my learning project. Currently focused on how animation works and for that, I have started looking into related classes and methods.

One question I have in my mind is to render BMP image sequences we have to use pushback method of image class but I am unable to create frambuilder example.

How can I use this std:
Nana v1.7.3 fails to build with g++ v5.1, which is the standard compiler with code::blocks release. Upgrading the compiler to v8.3 allows nana to build. Note that upgrading the code::blocks compiler is an advanced task.

The nana downloads page says it will build with "Any Standard C++ compiler(Visual C++ 2013, GCC/MinGW and Clang)". This is false.

Here is v5.1 error:

recent by ravenspoint  ·  Feb 12 at 4:22 pm
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.23.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  ·  Feb 12 at 3:33 pm
ABD posted Jan 28 at 1:10 am
A few months ego I guessed that NANA is dead. Today, that comment is not a guess and is a reality. The main developer of the NANA has disappeared!!! and no longer continue developing the library.

Some of the more experienced users of NANA, like Error Flynn is trying to help and keep the hope alive by finding the bugs and write a fix for them. But, I think his efforts and other good people
recent by ABD  ·  Feb 7 at 6:25 pm
huycan posted Jan 18 at 10:24 pm
When you click on a menu choice, the menu will be closed... this is fine. But if it is an option or a highlight, you'd want it remaining open... so that user knows that they choose the right option.

The question then, how to let the menu remaining open after choosing an option?

recent by Error Flynn  ·  Jan 30 at 12:58 am
I'm using Windows 10 (version 1909 Build 18363.535) Microsoft Visual Studio Community 2019 (v16.4.2) and Nana 1.7.2 and when I try to build nana I get the following:

1>------ Rebuild All started: Project: nana, Configuration: Debug x64 ------
recent by qPCR4vir  ·  Dec 25 '19 at 1:07 am
It has been almost two years that I started to learn NANA for developing the GUI for my applications. It was a challenging and interesting experience for me. I was very excited that I am learning a library that soon would be a rival to Qt and wxWidgets, but unfortunately the pace of development of NANA and its awful documentation made me very disappointed.

Recently I noticed that the main d
recent by qPCR4vir  ·  Dec 7 '19 at 3:15 am
Zeleska posted Nov 28 '19 at 5:16 am
Nana should have its centralized place to contribute to documentation? Yes :d
I have created a html documentation "template" for Nana in GitHub for everyone to contribute to it. You can clone the repository and start adding new pages and changes.

Examine nana-button.html to understand how the class "accordion" and the class "panel" work.

The structure is
recent by ravenspoint  ·  Dec 1 '19 at 2:38 pm
ravenspoint posted Nov 6 '19 at 8:44 pm
From the blog:

The really important part is the API (the design of the global structure, main classes and functions)

So, maybe, there should be some discussion about this?

The first thing that hits me when I look at nana's API design is the large numbers of things that serve almost the same purpose but are not quite identical. This really clutters up the design and makes nana hard
recent by ravenspoint  ·  Nov 26 '19 at 8:13 pm
abreulima posted Nov 25 '19 at 4:53 am
I'm new to Nana and not every familiar with C++.

I have an application where I need to open a listbox in a popup, I decided to create a 2nd form.

form table_form(API::make_center(480,350));
listbox lbTest(table_form, rectangle( 10, 10, 460, 180));

tables.append("Table",[&](menu::item_proxy ip)

I need to access my listbox through other functions and it
recent by ravenspoint  ·  Nov 26 '19 at 3:38 pm
The Goal and the goals of nana. : I just added this nana blog. Jinhao added this text some months ago on the wiki, with the intention of getting people helping to improve it. But I afraid it have not a good visibility there.
I hope it will help people understand a few things, and that it will be improved.
(you can just improve the wiki, and I will port it back)

recent by qPCR4vir  ·  Nov 18 '19 at 3:49 pm
Yeah, the Winter is coming) (or Q- What does it mean), and we need to be prepared.
This will be a post blog I'm thinking about. The reason is that a new major version of the c++ standard is a great opportunity for all of us to improve our programming experience, but it is also a lot of work as library maintainer and tester.
Nana already has experience with this: the c++03 version was maint
recent by qPCR4vir  ·  Nov 14 '19 at 10:01 am
Hi, I am using gcc-7.3.0 (provided with qt-5.13.1). When i try use nana-1.7.2 then there is a lot of linking problems with filesystem, either when i use nana or std filesystem. All of them are related with filebox and filesystem units.

1 - first approach - default build

cmake -G "MSYS Makefiles" -DCMAKE_INSTALL_PREFIX=/d/work/libextern/windows_mingw_x86_gcc_7.3.0/nana-1-7-2 ../nana
then m
recent by bartek  ·  Nov 7 '19 at 8:18 pm
Avice posted Nov 7 '19 at 8:15 pm
I create form on Main function.
And try create event on click with thread pool.

nana::threads::pool pool_{ 1 };

nana::button btnupdate(form, nana::rectangle{ 290, 165, 100, 30 });
btnupdate.caption("Update");[&] {
updater_log->append("\nTrying run", false);
nana::threads::pool_push(pool_, [&]{
I remember a few months back, after a few exchange of messages, Jinhao agreed to cleanup the NANA classes and method's name and their arguments in version 1.8.

I am wondering if this is still on?

For example:

if a class is called "Sort", it would be nice to have the methods like this:

recent by ABD  ·  Nov 7 '19 at 2:21 am
Zeleska posted Nov 3 '19 at 9:27 am
I have a program in where the user "can add music files" by selecting a folder, the contents of the folder are "inserted" in a nana::treebox, and the songs information will be displayed in a nana::listbox.

Each node that represents a music file in the nana::treebox corresponds to an item in the nana::listbox, and a node that does not represent a music file, but the folder in where the music f
recent by Zeleska  ·  Nov 5 '19 at 1:54 am
Avice posted Nov 1 '19 at 7:51 pm
On main() function i create form with widgets. how i can access widget from example function foo()?
I want append text change progress widget value and etc..
If i make form global then i get errors on runtime.

recent by Avice  ·  Nov 1 '19 at 9:09 pm
Avice posted Oct 31 '19 at 5:47 pm
I cant find what is wrong.
Im using latest nana version, IDE VS2013
Project using v120 toolset.
nana builded with v120 toolset. (compiled successfully, without any errors).
me code:

#include <nana/gui.hpp>
#pragma comment( lib, "nana_v120_Release_x86.lib" )
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)

if (fdwReason == DLL_PROCESS_ATTACH
recent by Avice  ·  Nov 1 '19 at 5:41 pm
void add_folder(nana::treebox& treebox, nana::treebox::item_proxy proxy, std::filesystem::path path)
for (std::filesystem::directory_iterator dir_iter{ path }; dir_iter != std::filesystem::directory_iterator{}; ++dir_iter) {
treebox.insert(proxy, dir_iter->path().u8string(), dir_iter->path().filename().u8string());
recent by Zeleska  ·  Oct 29 '19 at 6:11 am
I have a property grid that contains properties ( name value pairs ). In the simplest case, a single property is displayed as a label ( for the name ) and a textbox ( for the value, which can be edited by the user ) displayed on a panel. The panels for all the properties are displayed in a panel with scrollbars.

This code:

form fm( 0, nana::size{ 400, 600 } );
fm.caption("PropGrid2 demo
recent by ravenspoint  ·  Oct 20 '19 at 9:55 pm
Hi, when using inputbox show functions i'm getting : error LNK2019: unresolved external symbol "private: void __thiscall nana::inputbox::_m_fetch_args

i use VS Code, build with "cppStandard": "c++17"
cl.exe PCOMMautom.cpp /Fe: PCOMMautom.exe /EHsc /Zi /D W32 /MT /I..., /LIBPATH:....

please, help me to fix

Thank you much

recent by pawiq  ·  Oct 13 '19 at 7:09 pm
Holle posted Sep 18 '18 at 5:48 pm
Hi @ all,
I need help :-(

How can I get the data from a listbox?

Here is a example, what I am searching for:

#include <string.h>
#include <vector>
#include <windows.h>
#include <nana>
#include <nana>
#include <nana>
#include <nana>
#include <nana>

// namespaces
using namespace std;
using namespace nana;

// ------------------
recent by Error Flynn  ·  Oct 6 '19 at 7:56 pm
Load more
All posts under this topic will be deleted ?
With selected deselect topics
Pending draft ... Click to resume editing
Discard draft