Search found 14300 matches

by doublemax
Wed Dec 11, 2019 5:39 pm
Forum: Compiler / Linking / IDE Related
Topic: [SOLVED] A boatload of errors
Replies: 4
Views: 103

Re: A boatload of errors

The libraries for tiff, jpeg are missing in the linker settings.

I don't know C:B too well, but this should help:
viewtopic.php?f=19&t=46125
by doublemax
Wed Dec 11, 2019 5:37 pm
Forum: C++ Development
Topic: Proper sizing at start problem.
Replies: 8
Views: 108

Re: Proper sizing at start problem.

First thing to try is to call SendSizeEvent() on the toplevel window:
https://docs.wxwidgets.org/trunk/classw ... 5fa82ba4c2
by doublemax
Wed Dec 11, 2019 5:27 pm
Forum: C++ Development
Topic: Control for text display, highlight and scroll
Replies: 27
Views: 249

Re: Control for text display, highlight and scroll

Yes, it is a webbrowser. And as such much better optimized to display large amounts of text than any other control. That's why i suggested it. In the most simple form, you just call wxWebView::SetPage() with a basic html page. <html><body><pre> your text here </pre></body></html> ny hints on which f...
by doublemax
Wed Dec 11, 2019 6:28 am
Forum: C++ Development
Topic: Control for text display, highlight and scroll
Replies: 27
Views: 249

Re: Control for text display, highlight and scroll

I would try wxStyledTextCtrl or wxWebView.
by doublemax
Wed Dec 11, 2019 6:18 am
Forum: Platform Related Issues
Topic: Win 8 toolbar toggle is awfully funny looking (checker background, etc.)
Replies: 6
Views: 161

Re: Win 8 toolbar toggle is awfully funny looking (checker background, etc.)

Do you mean the dark grey background of the icons? As the title bar is black and the grey is the same color as the menu bar, i assume the user is using a very unusual color theme. Here's what it looks on a "normal" Windows 8.1, seems ok to me: w81screen.png (There are some redraw problems when resiz...
by doublemax
Tue Dec 10, 2019 5:04 pm
Forum: C++ Development
Topic: wxStyledTextCtrl Looses events when inside panel
Replies: 3
Views: 68

Re: wxStyledTextCtrl Looses events when inside panel

Is the wxAuiNotebook part mandatory for this to happen? Or does it also happen if you put the wxSTC in any wxPanel?
by doublemax
Tue Dec 10, 2019 12:16 pm
Forum: C++ Development
Topic: Displaying Image and Videos on my Parent Frame cMain
Replies: 14
Views: 251

Re: Displaying Image and Videos on my Parent Frame cMain

Is it possible to make a child frame of the Main Parent Frame using OpenCV imshow? This is more an OpenCV question. It would require that you can set a parent for the imshow through a native window handle, e.g. HWND under Windows. I looked through the OpenCV docu a bit, but couldn't find anything. ...
by doublemax
Tue Dec 10, 2019 6:13 am
Forum: C++ Development
Topic: Displaying Image and Videos on my Parent Frame cMain
Replies: 14
Views: 251

Re: Displaying Image and Videos on my Parent Frame cMain

Is there such a thing called dynamic bitmap? or How can I display the video in my current output? You have to load a video frame, convert it to wxBitmap, call sbmp->SetBitmap(...), and then sbmp ->Refresh(). You could do this in a timer event with the timer running at the frame rate of the video. M...
by doublemax
Mon Dec 09, 2019 7:06 am
Forum: C++ Development
Topic: Displaying Image and Videos on my Parent Frame cMain
Replies: 14
Views: 251

Re: Displaying Image and Videos on my Parent Frame cMain

The imagepanel sample is only written to display a single image. You'll need to add a method that replaces the bitmap and then calls Refresh() to force a visible update.
by doublemax
Sun Dec 08, 2019 10:17 pm
Forum: C++ Development
Topic: wxTextCtrl Get/SetValue crash
Replies: 4
Views: 123

Re: wxTextCtrl Get/SetValue crash

Are these two lines exactly one after another like you posted it, or is the second one in an event handler? In the first case there must be something wrong with your compiler/linker setup. What compiler/IDE are you using? Did you build wxWidgets yourself? If yes, which configuration? Also, please tr...
by doublemax
Sun Dec 08, 2019 9:27 am
Forum: C++ Development
Topic: AUI Layout
Replies: 1
Views: 131

Re: AUI Layout

m_mgr = new wxAuiManager(this, wxAUI_MGR_DEFAULT); wxPanel *red = new wxPanel(this, wxID_ANY); red->SetBackgroundColour(*wxRED); wxPanel *green = new wxPanel(this, wxID_ANY); green->SetBackgroundColour(*wxGREEN); wxPanel *blue = new wxPanel(this, wxID_ANY); blue->SetBackgroundColour(*wxBLUE); wxPan...
by doublemax
Sat Dec 07, 2019 4:21 pm
Forum: C++ Development
Topic: How to known lower/upper case letter in EVT_CHAR_HOOK handler
Replies: 1
Views: 65

Re: How to known lower/upper case letter in EVT_CHAR_HOOK handler

I think only wxEVT_CHAR will give you the translated key code.
by doublemax
Sat Dec 07, 2019 8:16 am
Forum: C++ Development
Topic: Implementing "Append", "Insert" and "Remove"
Replies: 9
Views: 182

Re: Implementing "Append", "Insert" and "Remove"

In any case. This seems wrong:

Code: Select all

fgs->AddGrowableRow( 1 );
by doublemax
Fri Dec 06, 2019 8:26 pm
Forum: C++ Development
Topic: Implementing "Append", "Insert" and "Remove"
Replies: 9
Views: 182

Re: Implementing "Append", "Insert" and "Remove"

With a map you'd have to update the line numbers if you delete any of the rows. I'd just use a plain std::list<Arguments>. (the items in Arguments need to be pointers)
by doublemax
Fri Dec 06, 2019 6:32 pm
Forum: C++ Development
Topic: Implementing "Append", "Insert" and "Remove"
Replies: 9
Views: 182

Re: Implementing "Append", "Insert" and "Remove"

Make sure to call Layout on the upmost sizer in the hierarchy, i think it's just called "sizer" in the code you posted.