Search found 149 matches

by jmason1182
Wed Sep 24, 2008 3:29 pm
Forum: C++ Development
Topic: Sensing for inactivity... part 2.
Replies: 7
Views: 1019

I can't tell you how many times I've looked at that exact wiki page and just skipped over the first part.... That is just awesome. Here's my FilterEvent function that discerns what events are what. int Main::FilterEvent(wxEvent &event) { //capture all key events - Key presses if ( event.GetEventType...
by jmason1182
Wed Sep 24, 2008 3:21 pm
Forum: C++ Development
Topic: Sensing for inactivity... part 2.
Replies: 7
Views: 1019

OK, so how did you do the check... I'm trying to keep it simple and just check for the F1 key for a proof-of-concept. Here's what I got... and it aint working. (mainframe is an instance of MyClass earlier... I'm catching F1 and F2 to open up the main help and main error log respectively. proof of co...
by jmason1182
Wed Sep 24, 2008 2:55 pm
Forum: C++ Development
Topic: Sensing for inactivity... part 2.
Replies: 7
Views: 1019

OK, so at the APP level, I can filter all events and just do some checks on each event to see if I need to call the reset... is that the basic gist of it?


So I need to override the wxAPP::FilterEvent function correct?
by jmason1182
Wed Sep 24, 2008 2:52 pm
Forum: C++ Development
Topic: Getting the SYSTEM TIME.
Replies: 5
Views: 2324

I'm assuming that you have thought about an outside clock source.... as in you know that they are going to download your software sometime to try it... why not have a quick NTP time check? The open source NTP client could be dumbed down to basically some simple socket calls. THUS, a small addition t...
by jmason1182
Wed Sep 24, 2008 2:40 pm
Forum: C++ Development
Topic: Sensing for inactivity... part 2.
Replies: 7
Views: 1019

Sensing for inactivity... part 2.

OK. So I have a program that uses many different dialogs and frames. BUT this program requires a login to access the database. The requirements are that if a user walks away for longer than 60 seconds, it should lock the program down. SO, I have the following: //Part of the LockOut mechanism: EVT_MO...
by jmason1182
Wed Sep 24, 2008 2:05 pm
Forum: C++ Development
Topic: Quick question.... when does the IdleEvent fire?
Replies: 6
Views: 973

I've accepted the answer, but I would like some more clarification. If I use EVT_KEY_DOWN() do I need EVT_CHAR()? Having done a lot of javascript not too long ago for our company website, I am now a little confused as to the purpose of EVT_KEY_DOWN, EVT_KEY_UP and EVT_CHAR.... because that project j...
by jmason1182
Tue Sep 23, 2008 9:08 pm
Forum: C++ Development
Topic: Quick question.... when does the IdleEvent fire?
Replies: 6
Views: 973

I just found this in some mailing list: Kevin Altis wrote: >AFAIK, it isn't a "true idle" where the event fires when your app isn't >doing anything. Instead, idle fires when the event queue empties. That means >you'll get an idle after a mouse move event, which I find annoying since it >means that m...
by jmason1182
Tue Sep 23, 2008 9:02 pm
Forum: C++ Development
Topic: Quick question.... when does the IdleEvent fire?
Replies: 6
Views: 973

Quick question.... when does the IdleEvent fire?

I am building an application that needs a user to login in order to use the system. BUT I need it to auto-lock if the user walks away from the terminal. I know of plenty of ways to do this, but am open to suggestions. First off, if i use the IdleEvent to start a timer to disable the interface, I nee...
by jmason1182
Tue Sep 23, 2008 8:59 pm
Forum: C++ Development
Topic: Logging to multiple LogTargets?
Replies: 9
Views: 2376

LogChain is your answer. I have two logs that I continually monitor... one is a file and the other is a "log window" that I made. 1) My log window is called LogFrame (just a derived wxFrame with a big multi-line text ctrl.) 2) I create a LogFrame, then assign the active target to the logtarget like ...
by jmason1182
Mon Sep 22, 2008 1:42 pm
Forum: C++ Development
Topic: GetControl for wxTreeListCtrl to capture events
Replies: 1
Views: 524

First off, I found out that the EVT_TREE_END_LABEL_EDIT macro will also handle events not related to the column labels. Of course, this only applies to the extended wxTreeListCtrl. (from www.twinforms.com) AND I also found out that the event is incomplete. You'll have to add a line to his cpp code t...
by jmason1182
Fri Sep 19, 2008 7:06 pm
Forum: C++ Development
Topic: GetControl for wxTreeListCtrl to capture events
Replies: 1
Views: 524

GetControl for wxTreeListCtrl to capture events

Taking a look at the wxTreeListCtrl, I have figured out how to make a column editable, even assign it a type of "edit" field. But how can I capture an event for when some info changes in a field? Has anyone else tried to do something like "GetControl" to get the TextCtrl from that field? I need to g...
by jmason1182
Fri Sep 05, 2008 5:15 pm
Forum: C++ Development
Topic: Need Compromise: wxMenu - wxFrame - wxDialog & Modality
Replies: 13
Views: 6814

Okay then I'll summarize as to how it is relevant: Forcing developers to conform to some ideal because the wxWidgets doesn't allow something simple, like the modal window with menus here, means that the developer isn't in full control of the wxWidgets application he/she is developing. There ARE reas...
by jmason1182
Fri Sep 05, 2008 1:09 pm
Forum: C++ Development
Topic: Need Compromise: wxMenu - wxFrame - wxDialog & Modality
Replies: 13
Views: 6814

That's the reason why developers should always be in control of the code that they are developing. See the applications that I am dealing with lately are invoicing and inventory applications. While it would be completely possible to just make frames over and over again to show the various different ...
by jmason1182
Tue Sep 02, 2008 6:09 pm
Forum: C++ Development
Topic: Need Compromise: wxMenu - wxFrame - wxDialog & Modality
Replies: 13
Views: 6814

Well... it's official... for my purposes at least, the class I wrote works like a dream. Somebody let me know if there are any issues you encounter with it. Oh, and thanks to Frank and Auria for responding. Luckily I really enjoy doing this sort of thing (as most programmers should) so it was actual...
by jmason1182
Wed Aug 27, 2008 2:12 pm
Forum: The Code Dump
Topic: wxModalWindow class - now a general modal window to use.
Replies: 2
Views: 5581

wxModalWindow class - now a general modal window to use.

I went ahead and created a wxModalWindow class. It inherits from wxFrame... so menus and other behaviors mimic a wxFrame. BUT, it behaves like a wxDialog when it comes to modal status. I even added the eventloop and windowDisabler just like wxDialog does. So technically it is a simplified wxDialog (...