Search found 39 matches

by james28909
Sat Jul 27, 2019 4:32 pm
Forum: C++ Development
Topic: wxPerl - custom grid renderer
Replies: 19
Views: 204

Re: wxPerl - custom grid renderer

well just figured it out haha. and youre right about the problem being that the cell isnt drawn, which makes me wonder how the image was even showing up tbh... anyway once i did $dc->DrawRectangle($rect->x, $rect->y, width, height); then $dc->DrawBitmap($bmp, $rect->x, $rect->y, 1); then that fixed ...
by james28909
Sat Jul 27, 2019 2:23 pm
Forum: C++ Development
Topic: wxPerl - custom grid renderer
Replies: 19
Views: 204

Re: wxPerl - custom grid renderer

But the redraw looks fine if the window is drawn completely? yes and no, yes) if i minimize the window while its running and then bring it back up, then everything gets repainted and the image looks fine but as soon as you scroll it does the same thing. no) it clobbers any existing information/attr...
by james28909
Sat Jul 27, 2019 1:47 am
Forum: C++ Development
Topic: wxPerl - custom grid renderer
Replies: 19
Views: 204

Re: wxPerl - custom grid renderer

ok here is some pics. please do not worry about the black box in top left, i just need to add a panel and fill it in and havent got to it yet. but to explain the layout, the main grid has row and col labels hidden. then another grid is set to the left side of the main grid, which has channel names a...
by james28909
Fri Jul 26, 2019 9:29 pm
Forum: C++ Development
Topic: wxPerl - custom grid renderer
Replies: 19
Views: 204

Re: wxPerl - custom grid renderer

i will post some screen shots or a short video clip shortly.
by james28909
Fri Jul 26, 2019 5:21 pm
Forum: C++ Development
Topic: wxPerl - custom grid renderer
Replies: 19
Views: 204

Re: wxPerl - custom grid renderer

the thing that confuses me is, the PLGridCellRenderer has a Wx::PaintDC set for it. it is my understanding that i need to use wxPaintDC only with an EVT_PAINT event (which i am not using) and wxClientDC when not usung an EVT_PAINT. when i try to draw the images, they are displayed but smear, but in ...
by james28909
Fri Jul 26, 2019 3:36 pm
Forum: C++ Development
Topic: wxPerl - custom grid renderer
Replies: 19
Views: 204

Re: left and right scroll events

well see, i dont want to clear the data in the cell. there is information and a colored background i want to preserve, and just update the cell with the image. before the call to set renderer, i add this information to the cell, then $grid->SetCellRenderer(); clobbers all that, and then the image it...
by james28909
Thu Jul 25, 2019 5:24 pm
Forum: C++ Development
Topic: wxPerl - custom grid renderer
Replies: 19
Views: 204

Re: left and right scroll events

ok here is the relevant code: #<--- is the comment character for perl; #build the frame and panels and grids #Then try to paint the image $grid->SetCellRenderer($row, $col, CustomRenderer->new() ); package CustomRenderer; use Wx qw(:everything); use base 'Wx::PlGridCellRenderer'; sub Draw { my ( $se...
by james28909
Tue Jul 23, 2019 10:12 pm
Forum: C++ Development
Topic: wxPerl - custom grid renderer
Replies: 19
Views: 204

Re: left and right scroll events

yes, alot of it is pretty straight forward in figuring out the syntax. also, i am not able to do anything right now so it may be a little while before i can post the code. before i finished up this last little programming session, i was actually able to add the images to each cell, but it clobbered ...
by james28909
Tue Jul 23, 2019 7:16 pm
Forum: C++ Development
Topic: wxPerl - custom grid renderer
Replies: 19
Views: 204

Re: left and right scroll events

let me get a short code example that is compilable working and i will post. i do not set mask. also, i have made some headway. i think i have set a custom renderer and am able to load the image with wxImage, and then rescale it, then convert it into a bitmap. it looks like it is adding it to the cor...
by james28909
Tue Jul 23, 2019 5:55 pm
Forum: C++ Development
Topic: wxPerl - custom grid renderer
Replies: 19
Views: 204

wxPerl - custom grid renderer

i got the scroll events working flawless, for up, down, left and right. so i can track scroll events. i have not been able to get any custom renderer working other than the example in wxperl, which draws ellipses in each cell as directed. i have loaded an image with wxImage and rescaled it to a size...
by james28909
Sun Jul 21, 2019 5:21 pm
Forum: C++ Development
Topic: left and right scroll events and drawing images in cells
Replies: 6
Views: 200

Re: left and right scroll events

i tried building with minw32-make but was within msys shell. it built but and sample i tried to compile would throw missing dll errors. it just sucks because i am on a very slow machine, so compiling wxwidgets is tremendously slow. i also tried to build it (in msys shell) by cd %WXWIN%\ && mkdir bui...
by james28909
Sun Jul 21, 2019 4:22 pm
Forum: C++ Development
Topic: left and right scroll events and drawing images in cells
Replies: 6
Views: 200

Re: left and right scroll events

seems pretty straight forward tbh. ill check it out. i just need to figure out how to build the latest wxwidgets for perl. when i follow the example here: https://metacpan.org/pod/release/MDOOTSON/Wx-0.9932/docs/INSTALL.pod#MinGW-1.1-or-later-(wxWidgets-2.5.x) , the very first command make -f makefi...
by james28909
Sun Jul 21, 2019 2:57 pm
Forum: C++ Development
Topic: left and right scroll events and drawing images in cells
Replies: 6
Views: 200

Re: left and right scroll events

thank you good sir. thankfully the getorientation function works. but one thing i have noticed... getposition does not seem to work. it always returns '0' for some reason. maybe it is a problem in the library i am using (wxperl) , because it works in samples/scroll in the wxwidgets 3.1.2 source. so ...
by james28909
Sun Jul 21, 2019 1:44 pm
Forum: C++ Development
Topic: left and right scroll events and drawing images in cells
Replies: 6
Views: 200

left and right scroll events and drawing images in cells

I am having a problem in my wxgrid while tracking scroll up and down. First of all there is no scroll left or right, and instead when i scroll left it says it is a scroll up event, when i scroll right it says it is a scroll down event. how can i handle the left and right scrolling? i am having a ver...
by james28909
Tue Jul 09, 2019 12:42 pm
Forum: C++ Development
Topic: Add/Draw pictures inside of row labels?
Replies: 1
Views: 66

Add/Draw pictures inside of row labels?

howdy, i was wondering if anyone has any insight on how a person may add images (jpg/png/etc) to row labels? i see that you can draw in any cell in the grid, but what about the row labels themselves?