Search found 534 matches
- Fri Mar 27, 2015 5:15 pm
- Forum: C++ Development
- Topic: wxThreadHelper example question
- Replies: 8
- Views: 2962
Re: wxThreadHelper example question
Each wxDEFINE_EVENT macro must also have a matching wxDECLARE_EVENT. Do you have that? Yes, I do, it is in the header. I more or less copied the example code, split it up into C++ & header and added a few things I thought I would/might need in the real app. The custom event isn't the most impor...
- Fri Mar 27, 2015 5:11 pm
- Forum: C++ Development
- Topic: wxThreadHelper example question
- Replies: 8
- Views: 2962
Re: wxThreadHelper example question
Yes, I do have two fields.catalin wrote:Did you put a breakpoint in your event handler?
Do you really have more than 1 status field (starts from 0)?
- Fri Mar 27, 2015 2:45 am
- Forum: C++ Development
- Topic: wxThreadHelper example question
- Replies: 8
- Views: 2962
wxThreadHelper example question
In trying to add some background work to my app, I have tried to use the code from the 3.0.2 wxThreadHelper example in the domentation, but the custom event never executes. (for now Sleep substitutes for the real work) What I have now (non-essential surrounding code is omitted :-) ) wxDECLARE_APP(My...
- Sun Mar 01, 2015 4:30 pm
- Forum: C++ Development
- Topic: Best container for wxImage pane under wxAUI
- Replies: 4
- Views: 1317
Re: Best container for wxImage pane under wxAUI
Yes, it certainly does.doublemax wrote:https://wiki.wxwidgets.org/Scrolling#Sc ... F_an_image
This should be closer to what you need.
I will give it a go ASAP
Thank you doublemax.
Arnold
- Sat Feb 28, 2015 7:43 pm
- Forum: C++ Development
- Topic: Best container for wxImage pane under wxAUI
- Replies: 4
- Views: 1317
Re: Best container for wxImage pane under wxAUI
Thank you, Doublemax. Both are unsuitable IMHO. I would build a custom control based on this: https://wiki.wxwidgets.org/Drawing_on_a_panel_with_a_DC This does only display an image, you'd have to add the code for zooming and scrolling. After looking at the code you referred to, perhaps I should cla...
- Sat Feb 28, 2015 2:55 am
- Forum: C++ Development
- Topic: Best container for wxImage pane under wxAUI
- Replies: 4
- Views: 1317
Best container for wxImage pane under wxAUI
Being rather new to both wxAUI & wxImage, I am looking for 'proper' container to hold a wxImage class for image display with scaling, panning and other manipulations to view all or parts of an image. I am considering wxHTMLWindow or wxRichTextCtrl but am unsure which one would be preferable or i...
- Sat Feb 28, 2015 2:49 am
- Forum: C++ Development
- Topic: wxAUI saving a default perspective
- Replies: 4
- Views: 1937
wxAUI saving a default perspective
Being new to wxAUI, I was wondering what the best way would be to save a default perspective in the wxConfig file. At present I am able to save the current perspective on exit and restore it when the app restarts, but I am concerned how I would recover from a bad or corrupted perspective. I realize ...
- Fri Feb 06, 2015 4:00 am
- Forum: C++ Development
- Topic: wxDateTime question
- Replies: 7
- Views: 2112
Re: wxDateTime question
Thank you, doublemax. I'm not quite sure if using time_t values outside the range of 1970-2037 is officially allowed. Tracing through the code i saw that the value you're passing to Set() is multiplied by 1000 (to store milliseconds), so you get an overflow in the first two cases of your code. Ahh, ...
- Thu Feb 05, 2015 10:38 pm
- Forum: C++ Development
- Topic: wxDateTime question
- Replies: 7
- Views: 2112
Re: wxDateTime question
This really is more my exploration of the wxDateTime workings, rather than a problem I need to solve. Or better put, in solving my 'problem' I have run into some unexpected results from wxDateTime, which I am trying to sort out for myself, if they are as they should be -- or potentially uncover a bu...
- Thu Feb 05, 2015 5:22 pm
- Forum: C++ Development
- Topic: wxDateTime question
- Replies: 7
- Views: 2112
Re: wxDateTime question
The epoch for all computers is UTC: 1970-01-01T00:00:00. That is, the zero second on your computer's clock is UTC: 1970-01-01T00:00:00. That explains the first and third results. I don't know why you get the second. Try: wxDateTime wdtDate( (time_t) 0x8000000000000000L ); Makes no difference, I sti...
- Thu Feb 05, 2015 1:17 am
- Forum: C++ Development
- Topic: wxDateTime question
- Replies: 7
- Views: 2112
wxDateTime question
In trying to set upper and lower limits to a range of dates - span over centuries - I have run into some question in trying to understand how wxDateTime works out some of the conversions. For instance wxString wsT; wxDateTime wdtDate( (time_t) 0x7fffffffffffffff ); // wsT = UTC: 1969-12-31T23:59:59 ...
- Tue Feb 03, 2015 2:52 pm
- Forum: C++ Development
- Topic: Max valid date/time
- Replies: 2
- Views: 912
Re: Max valid date/time
Thank you, ManoloManolo wrote: Date = '0' is Jan 1. 1970
Date = 'minimum' is Nov 24, 4714BC
Date = 'maximun' is about 580M years
Still it would be nice if there was a good & documented way to specify the min & max values.
- Tue Feb 03, 2015 3:50 am
- Forum: C++ Development
- Topic: Max valid date/time
- Replies: 2
- Views: 912
Max valid date/time
In trying to find the max/min date/times used in an application, I have run into the problem of how I would set the maximum possible date to compare against using IsLaterThan/IsEarlierThan() . Presumably, and good enough for my current needs, 0 date/time will do for the earliest, but the top limit i...
- Wed Jan 28, 2015 12:49 am
- Forum: wxCode
- Topic: wxCurl - UserAgent
- Replies: 2
- Views: 2725
wxCurl - UserAgent
From my limited tests, it appears the wxCurl represents itself as user agent "wxWidgets 2.x"
Is it possible to alter this? How?
Since I cannot find any way to do so in wxCurl, I am wondering if I have missed it?
or can curl_easy_setopt() be used directly?
TIA,
Arnold
Is it possible to alter this? How?
Since I cannot find any way to do so in wxCurl, I am wondering if I have missed it?
or can curl_easy_setopt() be used directly?
TIA,
Arnold
- Wed Jan 21, 2015 9:49 pm
- Forum: C++ Development
- Topic: Swapping two elements in wxList
- Replies: 1
- Views: 612
Re: Swapping two elements in wxList
Problem was due to creating the element to be moved on the stack, rather than with new