Search found 102 matches

by Everydaydiesel
Tue Feb 26, 2019 5:27 pm
Forum: C++ Development
Topic: Passing Data From Static Classes To Main Dialog Class
Replies: 4
Views: 73

Re: Passing Data From Static Classes To Main Dialog Class

compiler tells me it is a std::shared_ptr<http_connection> self = shared_from_this(); it was actually taken from this example ( I wish i could convert that example without shared and lambdas but I have tried and failed) https://www.boost.org/doc/libs/1_69_0/libs/beast/example/http/server/small/http_...
by Everydaydiesel
Tue Feb 26, 2019 4:49 pm
Forum: C++ Development
Topic: Passing Data From Static Classes To Main Dialog Class
Replies: 4
Views: 73

Re: Passing Data From Static Classes To Main Dialog Class

Thank you for the reply. I tried this first and got hung up on this problem. I pass in a reference to 's' and it acts like it cant see s at all. I suspect this has something to do with lambda but I am not good with them at all. // Asynchronously receive a complete request message. void read_request(...
by Everydaydiesel
Tue Feb 26, 2019 5:25 am
Forum: C++ Development
Topic: Passing Data From Static Classes To Main Dialog Class
Replies: 4
Views: 73

Passing Data From Static Classes To Main Dialog Class

Hello, I have a dialog application that has a main thread and a second std:thread. The std::thread starts a http listener and has its own static class https://www.boost.org/doc/libs/1_69_0/libs/beast/example/http/server/small/http_server_small.cpp My question is, when a event fires inside the static...
by Everydaydiesel
Mon Feb 25, 2019 5:47 pm
Forum: C++ Development
Topic: Detecting Multiple Instances And Passing Variables
Replies: 1
Views: 64

Detecting Multiple Instances And Passing Variables

Hello, I have an application that I want to have only one instance running. I have the following code that is able to detect the 2nd instance but I am having trouble passing the command line parameter from the second application to the first. #include <wx/snglinst.h> void Application_Dialog::OnInit(...
by Everydaydiesel
Wed Feb 13, 2019 4:53 pm
Forum: C++ Development
Topic: Selecting Multiple Items In A wxListBox Without Having To Manually Press Ctrl
Replies: 11
Views: 196

Re: Selecting Multiple Items In A wxListBox Without Having To Manually Press Ctrl

I already have wxLB_MULTIPLE and I CAN hold the ctl key down and select multiple items. My question is, how can I create this functionality WITHOUT having to hold ctl. Platform, wxWidgets version? With wxLB_MULTIPLE you should get the behavior you want. I checked with the "widgets" sample under Win...
by Everydaydiesel
Tue Feb 12, 2019 4:57 pm
Forum: C++ Development
Topic: Selecting Multiple Items In A wxListBox Without Having To Manually Press Ctrl
Replies: 11
Views: 196

Re: Selecting Multiple Items In A wxListBox Without Having To Manually Press Ctrl

Thank you for the reply however that does not really help me.

I already have wxLB_MULTIPLE and I CAN hold the ctl key down and select multiple items. My question is, how can I create this functionality WITHOUT having to hold ctl.
by Everydaydiesel
Mon Feb 11, 2019 11:07 pm
Forum: C++ Development
Topic: Selecting Multiple Items In A wxListBox Without Having To Manually Press Ctrl
Replies: 11
Views: 196

Selecting Multiple Items In A wxListBox Without Having To Manually Press Ctrl

Hello,

I have a wxListBox and basically I want to be able to click items and if it is selected then deselect it and if it is deselected then it should be selected.

How can I do this without having to hold down the control key?

Thanks in advance!
by Everydaydiesel
Mon Feb 11, 2019 5:50 pm
Forum: C++ Development
Topic: Multi Threaded Application Wont Exit
Replies: 2
Views: 110

Re: Multi Threaded Application Wont Exit

thank you soooo much
closing the socket, joining the thread and calling event.skip() works!

thanks again
by Everydaydiesel
Mon Feb 11, 2019 3:55 pm
Forum: C++ Development
Topic: Multi Threaded Application Wont Exit
Replies: 2
Views: 110

Multi Threaded Application Wont Exit

I have spent way too much time on this so I am reaching out for help to guys that are much smarter. This is the most simplistic version I can make to recreate this problem. It is a wxwidgets (wxdialog/wxsmith) application but I can run it from the command line so it starts the gui and gives me cout ...
by Everydaydiesel
Thu Oct 04, 2018 9:12 pm
Forum: C++ Development
Topic: Iterating Over All Tree Items in wxTreeCtrl
Replies: 2
Views: 140

Iterating Over All Tree Items in wxTreeCtrl

Hello, I have the following recursive code but the problem is that it does not iterate over the last tree view item. I am unsure why really. void Form::GetAllTreeViewItems(wxTreeCtrl *tv, const wxTreeItemId& tiiCurrent) { wxTreeItemIdValue cookie; wxTreeItemId child = tv->GetFirstChild(tiiCurrent, c...
by Everydaydiesel
Thu Oct 04, 2018 3:27 pm
Forum: C++ Development
Topic: wxImageList invalid use of incomplete type
Replies: 2
Views: 388

Re: wxImageList invalid use of incomplete type

doh. i spent entirely too long on this! Thanks for the help
by Everydaydiesel
Thu Oct 04, 2018 3:14 pm
Forum: C++ Development
Topic: wxImageList invalid use of incomplete type
Replies: 2
Views: 388

wxImageList invalid use of incomplete type

Hello I am trying to add icons to a wxTreeCtrl and I am setting up the wxImageList and get the error error: invalid use of incomplete type 'class wxImageList' wxImageList *imgList; wxBitmap bmps[2]; bmps[0] = wxIcon(BASE_IMAGE_ICON_PATH + "Filetype-jpg-icon.png"); bmps[1] = wxIcon(BASE_IMAGE_ICON_PA...
by Everydaydiesel
Sun Aug 19, 2018 1:25 am
Forum: wxCode
Topic: wxPdfDocument Calculating Text Height
Replies: 1
Views: 1442

wxPdfDocument Calculating Text Height

Hello,

I see a GetStringWidth but I do not see one for height? Am I missing it?


Thanks again!
by Everydaydiesel
Sun Aug 19, 2018 12:51 am
Forum: wxCode
Topic: wxPdfDocument SetAutoPageBreak Not Working
Replies: 3
Views: 1498

Re: wxPdfDocument SetAutoPageBreak Not Working

so if I have a pdf (report) that has 4 columns.

How can I print 4 header labels and then align them with the columns for each row?

Lets say i have a column that starts at 10, 100, 150, and 250.
by Everydaydiesel
Sat Aug 18, 2018 10:30 pm
Forum: wxCode
Topic: wxPdfDocument SetAutoPageBreak Not Working
Replies: 3
Views: 1498

Re: wxPdfDocument SetAutoPageBreak Not Working

thank you!!!


On last question, is there any way I can preview the pdf in a control (like rendering it inside of a wxPanel)