From professional translators, enterprises, web pages and freely available translation repositories.
i meant the class equivalent of griddisplay but for arrayctrl.
i meant the class equivalent of griddisplay but for arrayctrl.
Last Update: 2018-02-13
Usage Frequency: 1
Quality:
if you meant griddisplay based classes, then they not related to arrayctrl, because it uses display based classes.
if you meant griddisplay based classes, then they not related to arrayctrl, because it uses display based classes.
Last Update: 2018-02-13
Usage Frequency: 1
Quality:
yes, it's possible to create special gridqtfdisplay class (inherited from griddisplay), which uses qtfdisplay paint function.
yes, it's possible to create special gridqtfdisplay class (inherited from griddisplay), which uses qtfdisplay paint function.
Last Update: 2018-02-13
Usage Frequency: 1
Quality:
#include #include using namespace upp; class gridqtfdisplay : public griddisplay { public: virtual void paint(draw& w, int x, int y, int cx, int cy, const value& val, dword style, color& fg, color& bg, font& fnt, bool found, int fs, int fe) { qtfdisplay().paint(w, rectc(x, y, cx, cy), val, fg, bg, style); } }; class app : public topwindow { public: typedef app classname; app(); gridctrl list; }; app::app() { title("gridctrl with qtf display"); sizeable().zoomable(); const size sz(480, 320); setrect(sz); setminsize(sz); list.chameleon(); list.addcolumn("x", 10); list.addcolumn("y", 10); list.addcolumn("equation", 50).setdisplay(single()).headeraligncenter(); list.addcolumn("equal"); for (int i = 0, x = 1, y = 2; i <= 10; ++i, ++x, ++y) list.add(x, y, format("[= [1 (x + y)][` %d][1 = %d][` %d]]", i, x + y, i), pow(double(x + y), i)); add(list.vsizeposz(4, 4).hsizeposz(4, 4)); } gui_app_main { app app; app.run(); }
#include #include using namespace upp; class gridqtfdisplay : public griddisplay { public: virtual void paint(draw& w, int x, int y, int cx, int cy, const value& val, dword style, color& fg, color& bg, font& fnt, bool found, int fs, int fe) { qtfdisplay().paint(w, rectc(x, y, cx, cy), val, fg, bg, style); } }; class app : public topwindow { public: typedef app classname; app(); gridctrl list; }; app::app() { title("gridctrl with qtf display"); sizeable().zoomable(); const size sz(480, 320); setrect(sz); setminsize(sz); list.chameleon(); list.addcolumn("x", 10); list.addcolumn("y", 10); list.addcolumn("equation", 50).setdisplay(single()).headeraligncenter(); list.addcolumn("equal"); for (int i = 0, x = 1, y = 2; i <= 10; ++i, ++x, ++y) list.add(x, y, format("[= [1 (x + y)][` %d][1 = %d][` %d]]", i, x + y, i), pow(double(x + y), i)); add(list.vsizeposz(4, 4).hsizeposz(4, 4)); } gui_app_main { app app; app.run(); }
Last Update: 2018-02-13
Usage Frequency: 1
Quality:
Warning: Contains invisible HTML formatting