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;
//---------------------------------------------------
DMA
posted Jan 11 at 12:21 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
Hi,
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)....
Splu
posted Jan 3 at 4:25 pm
20210103
Hello folks,
I like Nana and its Gnome like good looking !!
So I downloaded 'nana_1.7.4.zip' 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:
https://ftp.gnu.org/old-gnu/Manuals/nana-1.14/html_chapter/nana_2.html
So from a bash
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, [&](){
playDelay.reset();
playDelay.elapse([&]{
cout << "Timer done" << endl;
playDelay.stop();
});
playDelay.start();
});
btn.events().click([&] { end();
NevNein
posted Nov 27 '20 at 8:01 pm
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
emarti
posted Nov 22 '20 at 5:54 pm
https://github.com/emartisoft/GEMGUILib
https://youtu.be/-MRGYKzMUu4
emarti
posted Nov 15 '20 at 10:52 am
Hi,
I am using customize rendering on menu. from this link (https://github.com/cnjinhao/nana/wiki/Using-Menu#customizing_renderer), I got it. But I can't change font (typeface). How to do?
emarti
posted Dec 16 '17 at 10:41 pm
In fact, It is not true but not opening window on combobox.
How to change (set) font on opening window from combobox?
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.
//public:
I want to make gui as shown in the following picture.
Press button 1,2,3 to switch to each screen.
In windows MFC, when I press Button, show or hide them each dialog in that screen area, what should you do in Nana?
as seen in the title friends
1-) need a dragable panel (Docking Panel)
2-) Sub window (MDI area)
3-) I want to access the items of the sub window from the main window
Thank you in advance to those who helped
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.
COLLECT_GCC=C:\msys264
lecon28
posted Aug 25 '20 at 7:59 am
I want use scroll bar in treebox but I don't want to see it.
How can I hide it?
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 want to make a progress bar image and apply it
I can't find such a method. What should I do?
I would appreciate it if you could show me a sample
当UOS系统下,父窗口无边框的时候msgbox会一直隐藏在父窗口的后边,无法看到造成界面卡死。
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 };
fm.show();
unsigned long elapsed_size = 0;
downloader.SetOnProgress([&](unsigned long nTota
lecon28
posted Aug 3 '20 at 2:52 am
so...
How can I use file selector in nana c++?
I want to open binary file.
like file path, size, binary...
lecon28
posted Jul 31 '20 at 6:49 am
I want to know how can hide horizontal scroll bar in textbox.
I need only vertical scroll bar...
huycan
posted Jul 24 '20 at 9:44 pm
compiled with nana.... just perfect.
huycan
posted Jul 20 '20 at 11:33 am
How do you get HWND of a widget? For a form, it is native_handle(). But for others? I tried API::root() and it only returns the widget's owner form HWND only.
huycan
posted Jul 16 '20 at 2:16 am
Nana does not have an On Paint event.... How do I implement it, to draw / write directly on the form?
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 6 '20 at 9:56 pm
I have two textbox with the same location. How can I choose and activate only one of them?
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?
Zero3K
posted Jun 3 '20 at 9:00 am
Is it possible to port a program written with QT being used for its GUI to using Nana for its GUI?
tubs
posted May 21 '20 at 5:07 pm
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.
Wo