General Discussions
Discuss anything about this project.
140
Topics
650
Posts
3
Followers
Yes No
Hide topic messages
Yes No
Enable infinite scrolling
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
5replies
37views
recent by qPCR4vir  ·  1 hour ago
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)

8replies
72views
recent by ravenspoint  ·  4 days ago at 10:35 pm
ravenspoint posted Nov 6 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
5dc32d3ba276e.png
11replies
86views
recent by ABD  ·  6 days ago at 3:59 pm
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
19replies
104views
recent by bartek  ·  7 days ago at 8:18 pm
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:

Sort::sort_list();
Sort::sort_first();
Sort::sort_last();
Sort::sort_enable();
Sort::sort_disabl
5replies
86views
recent by ABD  ·  Nov 7 at 2:21 am
besh81 posted May 16 at 12:02 pm
Hi All,

I'm working on a new project and I would like to create a customizable layout where the user can show/hide, arrange, move, resize, etc ... several panels.
As reference example think to the MS Visual Studio editor.

I've worked a little with the DOCK field and it seems to be a good start but not yet complete.

Is there someone who use the DOCK field? If yes, what are your impr
6replies
51views
recent by ABD  ·  Oct 4 at 1:51 pm
Hello

I'm trying to compile nana-creator for linux. I downloaded the project and it includes a build/codeblocks_linux folder.

I opened that project and when I gave it to compile I get the following errors:

nana-creator/src/creator.cpp:179:9: error: could not convert ‘nana::filebox::operator()() const()’ from ‘std::vector<std::experimental::filesystem::v1::__cxx11:
4replies
49views
recent by kassane  ·  Sep 27 at 6:40 pm
Running the following simple demo and dragging the splitter bar to left (or right) close to the edge cause a crash due to the dock caption text renderer function

#include <nana/gui.hpp>
#include <nana/gui/place.hpp>
#include <nana/gui/widgets/button.hpp>

using namespace nana;

int main()
{
form fm{ API::make_center(600, 400) };

place p(fm);
p.div("margin=10 doc
1replies
18views
recent by besh81  ·  Sep 5 at 4:40 pm
Nana does not provide an arc drawing primitive, so we have to use the windows API directly. Something like this:

#include <cmath>
#include <nana/gui.hpp>

#include <windows.h>

/** Draw Arc of circle
@param[in] graph context
@param[in] x for conter, pixels 0 at left of window
@param[in] y for center, pixels 0 at top of window
@param[in] r radius, pixels

5d54260006bce.png
2replies
28views
recent by ravenspoint  ·  Aug 20 at 6:10 pm
mariusm posted Jun 25 at 2:28 pm
I need to make a function which open new form. In this form need to use mouse event and change label caption. Need this form to open many times.

bool openHold() {
using namespace nana::gui;

form fm(nana::rectangle(20, 20, 300, 300));
fm.caption(L"Hello World");

static label lm(fm);
lm.caption(L"Hello, world!");
button change(fm), quit(fm);
change.caption(L"Change
5replies
31views
recent by Error Flynn  ·  Jun 26 at 9:14 pm
mariusm posted Jun 22 at 2:21 pm
I want to build a program with system tray. For this I used WINAPI WinMain

When I close the program using LRESULT CALLBACK WindowProcedure I get this error: Nana.Gui detects a memory leaks in window_manager, 2 windows are not uninstalled

I try nana::API::exitall() but get error: 'exitall' : is not a member of 'nana::gui::API

I use Visual Studio 2008

2replies
11views
recent by mariusm  ·  Jun 25 at 2:22 pm
wertex posted Jun 12 at 9:39 am
Is it possible with nana API create textbox component, that support simple html and show small icons (like in telegram messages)?

0replies
10views
jinhao posted Apr 9 at 8:31 am
I find that many people use MinGW on Windows, but some redistros don't support standard library and COM well, and the configurations for MinGW and nana are complicated, therefore people often encounter the compiling/linkage errors.

So, I decided to create a simple IDE which would contain a MinGW and compiled nana. Also will provide a package management that can easy to update MinGW and nana,
5cac14971f5b0.png
28replies
250views
recent by _-LC-_  ·  May 10 at 2:14 pm
Hello, first of all thanks for your great work! :-)

For the listbox there are two models. Typically, if you have complicated data and you want to avoid data duplication and senseless back and forward conversions, you'd pick the shared_model.
The problem is that this model still forces you to do unnecessary conversions.
If you pick a shared_model and want to handle the container yoursel
2replies
36views
recent by _-LC-_  ·  May 7 at 11:35 am
Load more
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft