Search found 104 matches

by yuri
Fri Feb 24, 2012 6:41 am
Forum: C++ Development
Topic: Looking for a SVG renderer
Replies: 10
Views: 4021

Re: Looking for a SVG renderer

IMHO if you just want to render vector stuff in a crossplatform way than your best bet is opengl (with wxGLCanvas of course). Esp. traditional opengl1.x with transforms, textures, feedback etc. that SVG directly reflect. And if you really want to render some SVG stuff that is produced in some 3d-par...
by yuri
Tue Oct 12, 2010 9:50 am
Forum: C++ Development
Topic: docking with wxGLCanvas
Replies: 13
Views: 2319

Yes my render loop is called on every paint event like this: void MyWxGLcanvasImpl::OnPaint( wxPaintEvent& WXUNUSED(event) ) { wxPaintDC dc(this); renderCallback(); Refresh(false); } And if I put the line: wxWakeUpIdle(); at the beggining of the render callback nothing happens, it still does not wo...
by yuri
Mon Oct 11, 2010 9:52 am
Forum: C++ Development
Topic: docking with wxGLCanvas
Replies: 13
Views: 2319

Then, docking the properties pane by dragging it to the border does not work. If I use another wxPanel instead of the wxGLCanvas then it works fine. Umm, yes. There is a (small) problem when using wxAUI with OpenGL: basically, wxAUI often relies on idle events to do window management, and normal Op...
by yuri
Fri Oct 08, 2010 1:00 pm
Forum: C++ Development
Topic: docking with wxGLCanvas
Replies: 13
Views: 2319

wxGLCanvas is to draw OpenGL content, not docking.

wxAUI would do docking just fine: you put your main wxGLCanvas window as central one and let misc panes dock around it, not inside.
by yuri
Wed Jul 07, 2010 6:42 pm
Forum: C++ Development
Topic: WxGrid question followup.
Replies: 2
Views: 578

You can alter various attributes of wxGrid cells,columns and rows using wxGridCellAttr. In your case should be something like this:

Code: Select all

wxGridCellAttr colAttr; 
colAttr.SetReadOnly();
myGrid->SetColAttr( XX, &colAttr );
by yuri
Sat Jul 03, 2010 3:40 pm
Forum: C++ Development
Topic: Lock Computer screen and close all aplications
Replies: 8
Views: 1174

terminating all applications on a desktop is typically not what you want, as some of them are part of normal desktop operation. That said you can typically get list of all windows on a desktop, and try to send close event to those that you decide to close. Exact method is platform dependent. For lin...
by yuri
Fri Jul 02, 2010 5:48 pm
Forum: C++ Development
Topic: WxGrid question.
Replies: 5
Views: 851

if this operation is not frequent then it might be better to arrange it and other similar actions in a pop-up menu or even main top level menu, depending on your GUI layout. But if you really think that user would need these buttons on every row you may draw them yourself using extra column or two w...
by yuri
Tue Jun 22, 2010 6:57 pm
Forum: C++ Development
Topic: wxGrid problems
Replies: 5
Views: 1326

I used EVT_GRID_SELECT_CELL along with grid1->GetGridCursorRow() but I get the previous location not the current (after move) and not knowing the direction makes it difficult to determine the current? James You get previous (actually current) location inside EVT_GRID_SELECT_CELL event handler becau...
by yuri
Tue Jun 22, 2010 3:48 pm
Forum: Announcements and Discoveries
Topic: wxWebConnect 1.1 Released
Replies: 4
Views: 1857

Thanks a lot!

Feature set looks quite impressive now. Is it possible to load html from memory yet (wxString or something) ?
by yuri
Tue Jun 22, 2010 3:28 pm
Forum: C++ Development
Topic: wxGrid problems
Replies: 5
Views: 1326

Re: wxGrid problems

I am trying to port an application that uses a grid control to wxWidget's wxGrid and in so doing have run into a couple of problems. #1. Is it possible in code to have the cell selector appear at a prescribed cell? #2. Is there an event (or some other method) to detect the movement of the cell sele...
by yuri
Fri Jun 18, 2010 7:38 pm
Forum: C++ Development
Topic: OpenGL program running extremely slowly
Replies: 5
Views: 945

umm, there's actually no WX or Qt calls in the fragment you posted, it's just C++ and pure OpenGL. But it looks very much like in wx case you end up with software rendering while qt variant is hardware accelerated. You don't post any details regarding OS and hardware, so I'd begin with verifying tha...
by yuri
Wed Jun 16, 2010 7:41 pm
Forum: C++ Development
Topic: wxMSW : Event Handler is multi-threaded???
Replies: 12
Views: 1558

It is not common in wx to get event while processing some other, but it indeed happens. Like, upon pressing toolbar button you get wxCommandEvent. And while processing it you present user with dialog, wait for user action then close dialog, then return from original message handler. While you waitin...
by yuri
Tue Jun 15, 2010 5:15 pm
Forum: C++ Development
Topic: wxGLCanvas and tooltips: problem on win32
Replies: 1
Views: 361

wxGLCanvas and tooltips: problem on win32

My application has main OpenGL area and some toolbars around. Standard wxToolbar behaviour is to show tooltips on mouse over. On WinXP there is a problem: tooltip is shown, but constant refresh of main OpenGL area would immediately paint over part of tooltip that happens to touch it. On Linux toolti...
by yuri
Tue Jun 15, 2010 4:29 pm
Forum: C++ Development
Topic: wxToolbar for Linux and Windows
Replies: 4
Views: 623

Re: wxToolbar for Linux and Windows

#if defined(__WXGTK__) || defined(__WXMOTIF__) #include "icons/toolbar/point.xpm" #ifdef __WXMSW__ toolBarBitmaps[0] = new wxBitmap('icons/toolbar/open.bmp',wxBITMAP_TYPE_BMP); This code snippet just reflect a historical preference to create toolbar/etc bitmaps using BMP format under WIN32 and XPM ...
by yuri
Wed May 26, 2010 5:41 am
Forum: C++ Development
Topic: Strange wxFrame behaviour
Replies: 1
Views: 388

Most probably you don't need this line: if(frmICell) delete frmICell; There are two reasons why frmICell may already be deleted: 1) when your frame is closed by user, wx will destroy it by default along with all children. See wxCloseEvent for details, and handle it inside your frame if default is no...