Mercurial > dwindows
comparison dwtestoo.cpp @ 2921:235fef840df2
C++: Implement Print class and enable the print code in dwtestoo.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 29 Dec 2022 10:06:23 +0000 |
parents | c6b699a441fe |
children | 969cc3b8bec2 |
comparison
equal
deleted
inserted
replaced
2920:c6b699a441fe | 2921:235fef840df2 |
---|---|
796 { | 796 { |
797 this->RenderDraw(); | 797 this->RenderDraw(); |
798 return TRUE; | 798 return TRUE; |
799 }); | 799 }); |
800 | 800 |
801 printbutton->ConnectClicked([]() -> int | 801 printbutton->ConnectClicked([this]() -> int |
802 { | 802 { |
803 #if 0 // TODO | |
804 DW::Print *print = new DW::Print("DWTest Job", 0, 2, [this](DW::Pixmap *pixmap, int page_num) -> int | 803 DW::Print *print = new DW::Print("DWTest Job", 0, 2, [this](DW::Pixmap *pixmap, int page_num) -> int |
805 { | 804 { |
806 pixmap->SetFont(FIXEDFONT); | 805 pixmap->SetFont(FIXEDFONT); |
807 if(page_num == 0) | 806 if(page_num == 0) |
808 { | 807 { |
841 } | 840 } |
842 } | 841 } |
843 return TRUE; | 842 return TRUE; |
844 }); | 843 }); |
845 print->Run(0); | 844 print->Run(0); |
846 #endif | |
847 return TRUE; | 845 return TRUE; |
848 }); | 846 }); |
849 | 847 |
850 rendcombo->ConnectListSelect([this](int index) -> int | 848 rendcombo->ConnectListSelect([this](int index) -> int |
851 { | 849 { |