Skip to content

Commit

Permalink
adapting to nana v1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
qPCR4vir committed Jul 2, 2016
1 parent 0fdb09c commit 18e5957
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions include/ThDy_DNAHybrid.Nana/TableResults.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,11 @@ class TableHybRes : public nana::form, public EditableForm

auto& sch = _list.scheme();
sch.header_height = 20;
sch.ext_w = 2;
sch.text_margin = 2;
sch.item_height_ex= 1; ///< Set !=0 !!!! def=6. item_height = text_height + item_height_ex
sch.item_height = sch.text_height + sch.item_height_ex;
sch.header_mouse_spliter_area_before = 4;
sch.header_mouse_spliter_area_after = 4 ;
sch.header_splitter_area_before = 4;
sch.header_splitter_area_after = 4 ;

InitMyLayout();
SelectClickableWidget( _list);
Expand Down
6 changes: 3 additions & 3 deletions src/ThDy_DNAHybrid.Nana/FindSondenPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ class TableCandRes : public nana::form, public EditableForm
{
auto& sch = list.scheme();
sch.header_height = 20;
sch.ext_w = 2;
sch.text_margin = 2;
sch.item_height_ex = 1; ///< Set !=0 !!!! def=6. item_height = text_height + item_height_ex
sch.item_height = sch.text_height + sch.item_height_ex;
sch.header_mouse_spliter_area_before = 4;
sch.header_mouse_spliter_area_after = 4;
sch.header_splitter_area_before = 4;
sch.header_splitter_area_after = 4;

int i = 0;
list.append_header( "T Pos", 60);
Expand Down
10 changes: 5 additions & 5 deletions src/ThDy_DNAHybrid.Nana/SeqExpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
{
auto& sch = _list.scheme();
sch.header_height = 20;
sch.ext_w = 2;
sch.text_margin = 2;
sch.item_height_ex= 1; ///< Set !=0 !!!! def=6. item_height = text_height + item_height_ex
sch.item_height = sch.text_height + sch.item_height_ex;
sch.header_mouse_spliter_area_before = 4;
sch.header_mouse_spliter_area_after = 4 ;
sch.header_splitter_area_before = 4;
sch.header_splitter_area_after = 4 ;

auto& tree_sch = _list.scheme();
tree_sch.item_height_ex = 1; ///< Set !=0 !!!! def=6. item_height = text_height + item_height_ex
Expand Down Expand Up @@ -201,8 +201,8 @@ void SeqExpl::MakeResponive()

_list.events().checked ( [&]( const nana::arg_listbox &lbox_arg_info )
{
lbox_arg_info.item.value<CSec*>()->Selected(lbox_arg_info.selected);
if ( ! _showAllseq && !lbox_arg_info.selected)
lbox_arg_info.item.value<CSec*>()->Selected(lbox_arg_info.item.selected());
if ( ! _showAllseq && !lbox_arg_info.item.selected())
_list.erase(lbox_arg_info.item) ;
});

Expand Down

0 comments on commit 18e5957

Please sign in to comment.