I tried to compile nana according to this but I get the following error:
||=== Build: Debug in nana (compiler: GNU GCC Compiler) ===|
C:\nana\source\gui\filebox.cpp||In constructor 'nana::folderbox::folderbox(nana::window, const path_type&, std::__cxx11::string)':|
C:\nana\source\gui\filebox.cpp|1592|error: 'weakly_canonical' is not a member of 'fs'|
||=== Build finished: 1 error(s), 0 wa
I'm trying to let the user select some items in a multi-selection listbox, and then pop up a menu when the user right-clicks on the selected items. The problem is that right-clicking resets the selection. Is there any way around that? I think there should be some way to tell the listbox to only allow selecting with left-click. I'm using Nana 1.7.
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,
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
I'm using Windows 10 and the latest nana hotfix (tryied from a 1.6.2 compilating as well) and just building a form with nana::appearance(true, false, true, false, false, false, false) wont set it topmost. Is the floating the flag to set it topmost? EDIT: Idk why I couldn't reproduce this... Sometimes it is topmost, sometimes not.
Also, related to the appearance but not to the floating:
//Call the show() method to show the inputbox.
//This method blocks the execution until the inputbox gets closed.
//It returns true if the user clicks OK button, or false otherwise.
if (inbox.show(name, gender, birth, height, kids))
However, I can keep on clicking and get multiple copies of the box
@jinhao is parsing the first / or \ as a node intended? Because if you use the default xPath from other libraries it generates / as the first character from the root documents (eg pugixml). I've seen the commit https://github.com/cnjinhao/nana/commit/5c50bd7a56291c4d818a00c7eff16c10b33ea317#diff-860264e5a2113a1a836ffd5e3cc74b11 but idk if this is intended. Can you check it out?
Hey guys... Just wrote a big text here and idk why it emptied. I'll try to replicate the contents.
The purpose of this thread is to discuss the proper practice into multi-form initialization/maintenance. I'll show up my current setup and then open a few questions. Since I'm writing on phone I won't post any code right now, but if you want, just ask for it that I can send the current code.
I have 20 radio buttons in a radio group. I would like to trigger a model recalculation when any of them are clicked. AFAIK, I now need to register an event handler for each radio button. It is not a huge amount of code, but it is very tedious. Would it be possible to register just one click handler for the entire group?
nana::radio_group rg( fm );
rg.Add( cb1 );
This is both an improvement of @ravenspoint 's Scrolled_panel, using less panels and code, While improving the looks of the scroll bar. Only works for vertical so far, because that is what I need it for.
Ok, here's one that ive been holding off asking for a while..... There is the graphics::blur method, but is there any way of creating a line or round rectangle (circle) with antialiasing? Obviously I have googled and found algoritms such as Xiaolin Wu's line algorithm http://landkey.net/d/L/J/RF/WUCircle/Intro.txt.legacy.htm https://stackoverflow.com/questions/37589165/drawing-an-