Search found 12064 matches

by doublemax
Thu Apr 26, 2018 2:53 pm
Forum: C++ Development
Topic: Showing images from a video stream
Replies: 83
Views: 1245

Re: Showing images from a video stream

From what I've googled, it doesn't work that way. You need to retrieve the function pointer through glXGetProcAddress.

http://blog.bigpixel.ro/disabling-vsync ... using-glx/
by doublemax
Thu Apr 26, 2018 12:19 pm
Forum: C++ Development
Topic: Toolbar trouble
Replies: 3
Views: 54

Re: Toolbar trouble

I cannot find wxStretchSpacer...is a class ??
Sorry, my mistake. I meant wxSizer::AddStretchSpacer()
by doublemax
Wed Apr 25, 2018 4:20 pm
Forum: C++ Development
Topic: Calling a function from a Frame in the App implementation
Replies: 4
Views: 65

Re: Calling a function from a Frame in the App implementation

MyProgramFrame* fr = new MyProgramFrame(0); It's hard to tell without seeing everything in context, but this is most likely wrong. I guess you don't want to create a new frame each time the user presses the hotkey? Usually "fr" should be a member variable and the frame should be created o...
by doublemax
Wed Apr 25, 2018 5:35 am
Forum: Compiler / Linking / IDE Related
Topic: Unresolved Reference on first Attempt to build [SOLVED]
Replies: 5
Views: 66

Re: Unresolved Reference on first Attempt to build [SOLVED]

kbmatson wrote:thanks - and soory for being a newbie, but how would I know where the library is?
It should have come with the compiler, you just have to add the name to the list of libraries in the linker settings.
by doublemax
Wed Apr 25, 2018 5:32 am
Forum: C++ Development
Topic: Calling a function from a Frame in the App implementation
Replies: 4
Views: 65

Re: Calling a function from a Frame in the App implementation

MyProgramFrame* fr; fr->launchCmd(); //remember this line for later Is this real code? If yes, it can't work, because the pointer is not initialized. Otherwise i can't spot any obvious error. What happens if you comment out the process execution part and just show the message box? BTW: wxWidgets ha...
by doublemax
Tue Apr 24, 2018 9:22 pm
Forum: Compiler / Linking / IDE Related
Topic: Unresolved Reference on first Attempt to build [SOLVED]
Replies: 5
Views: 66

Re: Unresolved Reference on first Attempt to build [SOLVED]

These missing functions are inside Windows libraries that you need to add in the linker settings.
viewtopic.php?p=183294#p183294
by doublemax
Tue Apr 24, 2018 6:37 pm
Forum: C++ Development
Topic: Change wxPaintDC to wxBufferedPaintDC [SOLVED]
Replies: 25
Views: 284

Re: Change wxPaintDC to wxBufferedPaintDC [SOLVED]

Regarding the assert message: There is definitely no leak in the code i posted, but it's still better to use a static bitmap for the buffer, instead of creating a new one each time. You need to add a member variable "wxBitmap m_buffer;" to the class this method belongs to. wxPaintDC pdc(th...
by doublemax
Tue Apr 24, 2018 4:53 pm
Forum: C++ Development
Topic: trying to calc column cell clicked in wxListCtrl
Replies: 9
Views: 69

Re: trying to calc column cell clicked in wxListCtrl

Is your program marked as DPI aware? Can you make a test with the latest version from GIT? I think it has a few fixes regarding high DPI support, but AFAIK still no support for per-monitor DPI. That could be the issue. And if it's not too much hazzle, can you disconnect the one display with 125% sca...
by doublemax
Tue Apr 24, 2018 4:07 pm
Forum: C++ Development
Topic: Toolbar trouble
Replies: 3
Views: 54

Re: Toolbar trouble

I see 3 controls with hard-coded widths in the code. I guess the window on the "bad" screenshot is just too small to fit all controls while obeying the minimum size of these controls, so they partly overlap because the layout algorithm didn't know what to do. the panel do not extend to wid...
by doublemax
Tue Apr 24, 2018 6:40 am
Forum: C++ Development
Topic: trying to calc column cell clicked in wxListCtrl
Replies: 9
Views: 69

Re: trying to calc column cell clicked in wxListCtrl

I'm not sure how to get the window coordinates of each monitor. You can using wxDisplay. But you shouldn't have to do this. I'm just trying to narrow down where exactly the error is. Does this happen on all monitors? And which call returns wrong values, wxGetMousePosition or GetScreenPosition? I ha...
by doublemax
Tue Apr 24, 2018 5:46 am
Forum: C++ Development
Topic: trying to calc column cell clicked in wxListCtrl
Replies: 9
Views: 69

Re: trying to calc column cell clicked in wxListCtrl

What are the mouse coordinates you get from the click event?
What exactly is your monitor configuration (Position and size) ?
by doublemax
Tue Apr 24, 2018 5:30 am
Forum: C++ Development
Topic: trying to calc column cell clicked in wxListCtrl
Replies: 9
Views: 69

Re: trying to calc column cell clicked in wxListCtrl

Usually when you need this functionality, you already have the mouse coordinates in client space, from the mouse event. But there is also wxWindow::ScreenToClient(...) that does the conversion for you. At first glance the code looks ok, as usual: The debugger is your friend. Just single-step through...
by doublemax
Mon Apr 23, 2018 3:59 pm
Forum: C++ Development
Topic: wxGrid fixed rows
Replies: 4
Views: 53

Re: wxGrid fixed rows

Unless a volunteer for this feature drops from the sky, i don't expect this to happen. Ever. There was an alternative to wxGrid, wxAdvtable which supported multiline headers. I don't know if it also supported frozen rows/columns. If you really, really need this feature, check it out, but it hasn't b...
by doublemax
Mon Apr 23, 2018 12:53 pm
Forum: C++ Development
Topic: Refreseh wxDialog [SOLVED]
Replies: 12
Views: 113

Re: Refreseh wxDialog [SOLVED]

With your code there will always be two dialogs, the one outside the loop, and one inside. Try something like this: void Wall_MatFrame::OnMenuItem3Selected(wxCommandEvent& event) { bool loop = true; while (loop) { CreateProduct dialog(this); int ret = dialog.ShowModal(); if( ret != 1 ) loop = fa...
by doublemax
Mon Apr 23, 2018 12:28 pm
Forum: C++ Development
Topic: Refreseh wxDialog [SOLVED]
Replies: 12
Views: 113

Re: Refreseh wxDialog [SOLVED]

It's hard to tell without seeing the headers, but i'd guess that there are two different variables named "AnotherDialog", one in the main frame and one in the dialog.

Go to advanced search