Search found 80 matches

by dcbdbis
Wed Feb 10, 2021 11:25 pm
Forum: C++ Development
Topic: [SOLVED] Determining intersecting lines
Replies: 4
Views: 488

Re: Determining intersecting lines

Even better solution is this article:
https://en.wikipedia.org/wiki/Distance_ ... _to_a_line


In which I found an equation under "Line Defined by Two Points".


I'll leave this question open in case there is a more elegant solution within wxWidgets objects.....

D
by dcbdbis
Wed Feb 10, 2021 10:44 pm
Forum: C++ Development
Topic: [SOLVED] Determining intersecting lines
Replies: 4
Views: 488

Re: Determining intersecting lines

I have found an external solution:
https://www.geeksforgeeks.org/check-lin ... ts-circle/

Are there any native wxWidgets solutions?

Dave
by dcbdbis
Wed Feb 10, 2021 9:26 pm
Forum: C++ Development
Topic: [SOLVED] Determining intersecting lines
Replies: 4
Views: 488

[SOLVED] Determining intersecting lines

Good Afternoon, I am no geometry whiz....yet my client app has to do CAD like functionality - which I've already written, debugged, and have working. (wxDC's) With one exception...line selection for deletion/editing. In wxWidgets, is there a class/method by which I can determine if a line drawn on a...
by dcbdbis
Sat Jan 09, 2021 7:13 pm
Forum: General Development
Topic: Display PDF
Replies: 2
Views: 6512

Re: Display PDF

@doublemax,

Kinda what I thought. Just wanted to validate it.

Thank you for confirming that I'm not missing something obvious. I had already looked at imagemagick - and that is probably the direction I'm going to go.

THANK YOU, for your reply.


Dave
by dcbdbis
Fri Jan 08, 2021 11:09 pm
Forum: General Development
Topic: Display PDF
Replies: 2
Views: 6512

Display PDF

Good Evening All, Well, it looks like there is not a consensus nor an "orthodox" method on displaying PDF files. Things like wxPDFView are problematic - and fragile - requiring pdfium and other 3rd party utilities where stability and consistency is simply not guaranteed. Then we have wxPDF...
by dcbdbis
Wed Jan 06, 2021 10:35 pm
Forum: C++ Development
Topic: [SOLVED] MenuBar not Working...
Replies: 3
Views: 484

Re: [SOLVED] MenuBar not Working...

I was using the wxDialog in ShowModal() as I had "housekeeping" I needed done after the ShowModal Dialog had done it's thing. So I connected the OnClose Event to a member function in my calling class to do the housekeeping at that stage, so I could call the Show() method instead of the Sho...
by dcbdbis
Tue Jan 05, 2021 4:39 pm
Forum: C++ Development
Topic: [SOLVED] MenuBar not Working...
Replies: 3
Views: 484

Re: MenuBar not Working...

Great Idea!


I'll give that a shot....



Dave
by dcbdbis
Tue Jan 05, 2021 12:38 am
Forum: C++ Development
Topic: [SOLVED] MenuBar not Working...
Replies: 3
Views: 484

[SOLVED] MenuBar not Working...

Good Afternoon, Linux, wx 3.1.4., C::B 20.03, 64bit, C++ I've done a menu bar a bunch of times with no issues in a variety of projects on wxFrames. All works great. I think this problem I'm having now has something to do with the messaging queue, but not sure how to resolve it. The Menu is visible, ...
by dcbdbis
Tue Jul 14, 2020 12:54 am
Forum: C++ Development
Topic: [solved] Make wxFrame act like ShowModal()
Replies: 4
Views: 589

Re: [solved] Make wxFrame act like ShowModal()

@Oneeyeman,

Thank you for your post. A wxDialog will not accept a menubar, Only a wxFrame can do that.....and in this project - I need both at the same time.

Thank you though...


Dave
by dcbdbis
Mon Jul 13, 2020 8:55 pm
Forum: C++ Development
Topic: [solved] Make wxFrame act like ShowModal()
Replies: 4
Views: 589

Re: Make wxFrame act like ShowModal()

Thank you Doublemax.

Loosing the makemodal() really hurt me.

Thanks!

Dave
by dcbdbis
Mon Jul 13, 2020 6:21 pm
Forum: C++ Development
Topic: [solved] Make wxFrame act like ShowModal()
Replies: 4
Views: 589

[solved] Make wxFrame act like ShowModal()

Good Afternoon all, I have need at times to have a wxFrame act like the old and now depreciated ShowModal(), or MakeModal(); Depending upon what other element in my program calls it. I am updating my code on two applications for wx 3.1.3. The older version of wxWidgets allowed for a ShowModal() on a...
by dcbdbis
Wed Apr 22, 2020 5:59 pm
Forum: C++ Development
Topic: [SOLVED] Copy wxTreeCrtl from one tree to another
Replies: 12
Views: 1739

Re: [SOLVED] Copy wxTreeCrtl from one tree to another

@OneEyeMan, THANK YOU for the post. You were exactly on point. Indexes - actually the lack of indexes. I forgot to create them at DB creation time...and I created three separate index for my specific needs and the issue is resolved. I had no idea that index could speed up the process that much! I am...
by dcbdbis
Wed Apr 22, 2020 4:35 pm
Forum: C++ Development
Topic: [SOLVED] Copy wxTreeCrtl from one tree to another
Replies: 12
Views: 1739

Re: [SOLVED] Copy wxTreeCrtl from one tree to another

No indexes at this point....Nor multiple openings and closings of the database either. Open - read a bunch - then close. I am convinced that it's the manner in which I am using SQLite causing the issues....So at the moment, I'm moving things around, and then putting things in a data-structure from S...
by dcbdbis
Tue Apr 21, 2020 9:58 pm
Forum: C++ Development
Topic: [SOLVED] Copy wxTreeCrtl from one tree to another
Replies: 12
Views: 1739

Re: [SOLVED] Copy wxTreeCrtl from one tree to another

Well - I have spent the majority of today playing with wxStopWatch in various sections of my code.... The CPP profiler is not granular enough for me to see which line(s) are causing the slowdown....And it is NOT wxTreeCtrl that is slow. 44K items in 117 ms. That's actually screaming fast. And with e...
by dcbdbis
Tue Apr 21, 2020 5:51 pm
Forum: C++ Development
Topic: [SOLVED] Copy wxTreeCrtl from one tree to another
Replies: 12
Views: 1739

Re: Copy wxTreeCrtl from one tree to another

@doublemax....


I had forgotten about that...GUI access in threads was problematic way back when I was still in the workforce formally - and younger.

THANK YOU for the reminder of the known pitfall that I wasn't remembering.


Dave