I have a wx.DatePickerCtrl with the dropdown popup window that allows the user to pick a date from the calendar. What I would l like to have my program do is process an event when the user has clicked on a day in the dropdown calendar. Unfortunately the only native event for this control is EVT_DATE_CHANGED and that event gets fired every time the user scrolls the month/year while looking for the date of their choice (firing the event many more times than I would like). I can't seem to access the popup window that is created below the datepickerctrl …

Member Avatar
Member Avatar
+0 forum 9

Hi DW. Anyone know what/which type of WndProc Windows Message is raised when someone is burning a CD? What I mean here is that if I'm using a software like Nero which is a well known CD burning software. My question is that what type of WndProc Message this software produce when its performing this type of work? Thanks guys.

Member Avatar
Member Avatar
+0 forum 6

Hi guys, with event handlings it seems that there are 2 approaches: 1)using an anonymous inner class 2)using a normal inner class. From what I can see if you have more than one component that is generating an event, say you have 3 buttons, if you go down the route of anonymous inner classes then you need to have effectively 3 inner classes, one for each component. If you instead use a normal - I call it normal, not sure what's the right name for it - inner class then you could techincally use only one. So, what's better? My …

Member Avatar
Member Avatar
+0 forum 12

The page previously fires the event from the server side.When the new design is applied to the site the server side events are not firing.What may be the problem.Got struck from 2 days.Please help me in solving the issue. Thanks In Advance, Sushmaja Arumalla

Member Avatar
Member Avatar
+0 forum 9

I am making a form which contain two input suggestion fields, 2 datepicker and three select fields. I want to make my form ajax based and show result in div when any field is changed. Just like farecompare.com I almost created a form but form start loading when i click any suggestion field. Is there a way to ajax live form when any value is changed from any field. Using this code for select statments: $(document).ready(function() { $('#s1').change(function() { $("#result").hide(); $("#loading").show(); $.get('ajax.php', $("#form").serialize(), function(data) { $('#result').html(data); $("#loading").hide(); $("#result").show(); }); }); }); This one is for suggestion input field: $(document).ready(function() { …

Member Avatar
Member Avatar
+0 forum 6

So we were asked to reproduce the function generator and oscilloscope as a virtual instrument for our final exam. But I'd like to focus on the function generator. The audio generator GW Instek GAG-809/810 has only a single button for the waveform wherein the user would just press it repeatedly to show the desired waveform (i.e., sine wave, square wave). Yeap, the audio generator only have the two waveform but our professor wanted us to add the generator's feature, that is, for the users to be able to display the wave into sawtooth and triangle wave. So how do we …

Member Avatar
Member Avatar
+0 forum 1

Hello. I have a very basic softphone. I can make and recieve calls on it. But the problem is: it does not have a ringtone. Now I could use other phones like xlite but I was wondering if there is a way to setup a custom event (may be playing a tone in WM player) whenever a call is recieved onto this phone? Thanks for any pointer.

Member Avatar
+0 forum 0

Hi I am creating a quiz of 10 questions, using a string array. When the user clicks on the next button the next question follows. How do i set it up that when the user comes towards the end of the array the previous button changes to finish. I know how to change the name and the event handler for that button, but just cant work out how to get the code in to say its the end of the array so lets change the function of that button Thanks for any help

Member Avatar
Member Avatar
+0 forum 9

Hi all, I´m having troubles programming with C# for windows CE. I need to listen a serial port, I have the program for windows and it works fine but when I program it to windows CE I dont know why it does not recognize any event function. I normally use the event for the onRx but under the CE platform I think it does not work, does anyone know how to do that? Regards,

Member Avatar
Member Avatar
+0 forum 7

I'm attempting to use Gogole Analytics event tracking to track browser viewport size. I'm using event tracking already in a bunch of other user-initiated places with jQuery and everthing works fine. This doesn't seem to be working though: I have this at the bottom of my html page: <script type="text/javascript"> <!-- $(function() { _gaq.push(['_trackEvent', 'Viewport Width', $(window).width(), $(window).width() + 'x' + $(window).height(), 0, true]); _gaq.push(['_trackEvent', 'Viewport Height', $(window).height(), $(window).width() + 'x' + $(window).height(), 0, true]); }); //--> </script> Not quite sure why nothing is being registered in Google Analytics. Half the day and nothing tracked. Also, Google analytics has Real-Time …

Member Avatar
Member Avatar
+0 forum 7

My Windows 7 computer is almost completely frozen. I can run it in safe mode, but as soon as I do all the maintenance (virus search, glary utilities, CC Clean) in safe mode and go back to regular, it freezes or goes very very slow (10 minutes to shut down). Specifically, the "reset" button light is on continuously. When I go into event viewer and Admin events or system events, it lists thousands of errors. Most of are similar types to these: * the netword list service depends on the Network location awareness service which failed to start because: the …

Member Avatar
Member Avatar
+0 forum 2

Hi All, I have created an application that allows a user to select a diectory, where we parse the photos, and upload to a database. The issue that I am having is that I have a button on the form found in the newJFrame.java class called upload that when pressed will call a method from a class that has be initalized in the photouploader.java class. This class has the main function for the application. It is being used to initalize and instatiate all of my classes, such as: fileParser fp = new fileParser(); //create new fileparser fp.setFiles(matches); //send in all …

Member Avatar
Member Avatar
+0 forum 2

Hello, I am making an IRC application and I was wondering how I could make a simple event that gets called like onMessage() every time a IRC message comes through so I can then do something like this in my main class: public void onMessage(String message){ System.out.println(message); //or Handle commands } I think it has something to do with interfaces but I can't find a tutorial on how I could do this. I am still learning about java. Thanks

Member Avatar
Member Avatar
+0 forum 2

Here's my problem: - I have a static site with Google Analytics tracking code. - To buy one of my services, users call me, and when their order is ready (many days later), I send them an e-mail link to a special page (download.php) where I have GA tracking code that is executed the first time they visit, so I track a "sale". - The issue is, GA thinks that "sale" was a separate visit, and erroneously shows that only direct visits to my site result in sales. I don't understand how I can view stats (Pages / Visit, Avg. …

Member Avatar
Member Avatar
+0 forum 9

We list our daily opening/closing hours on a Google Calendar as Events. After some struggles with the Javascript API, we are *almost* able to extract the hours (events) for today and for tomorrow to embed elsewhere on the site -- but at 7pm local time (EST in the US) it kicks over to the *next* days' listings. That seems to be 0:00 GMT, when it switches, yet the calendar itself displays as it should for our time zone. For some reason I'm too dumb to find, the script is pulling the events in a way that **almost** does does but …

Member Avatar
Member Avatar
+0 forum 3

how do i check if a menu item in my JMenuBar has been clicked? for instance, i have a JMenu with an item called exit, which i need to make close the form. how do i do this? import javax.swing.*; public class selector_form extends JFrame { /** * */ private static final long serialVersionUID = -5963842156289770842L; public selector_form(String name) { super.setTitle(name); setupComponents(this); super.setVisible(true); } private void setupComponents(JFrame frame) { JMenuItem file_items = new JMenuItem("Exit"); JMenuItem config_items = new JMenuItem("Preferences"); JMenuItem[] machine_items = {new JMenuItem("Refresh"), new JMenuItem("Add Dynamically"), new JMenuItem("Remove Dynamically") }; JMenuItem[] emulator_items = {new JMenuItem("Start Emulator"), new JMenuItem("Stop Emulator"), …

Member Avatar
Member Avatar
+0 forum 4

Hi i am working on a server sent event script to be sent when the user has logged out, but in the network tab the server sent pages are being sent every couple of seconds with no data. Client-Side script var source=new EventSource("include/updates.php"); source.addEventListener('logout',function(event){ $("#notificationsContainer").append(event.data + "<br />"); source.close(); },false); Server-side script header('Content-Type: text/event-stream'); header('Cache-Control: no-cache'); if(!isset($_SESSION)) session_start(); if(!isset($_SESSION['id'])) { $time = date('r'); echo "event: logout\n"; echo "data: user logged out at {$time}\n\n"; flush(); } Thanks for your time,

Member Avatar
Member Avatar
+0 forum 2

Hi, I wonder if anybody can set me straight as I am having a hard time understanding what is going on with INotifyPropertyChanged. My understanding of the events are: 1> Have a window with 2 textfields and a button 2> Create an instance of the Employee object 5> Bind both textboxes to the Employee instance 6> The button just does ((Employee)_bs.Current).Name = "Bill" Here is the Employee class: public class Employee : INotifyPropertyChanged { public event PropertyChangedEventHandler propertyChanged; public string Name { get { return _name; } set { if (_name != value) { _name = value; //notifyPropertyChanged(); } } …

Member Avatar
Member Avatar
+0 forum 3

Hello DaniWebbers, I have the following classes in their respective namespaces; so far so good. When I have received data from the server, the AsyncTcpClient's *DataReceived* event gets raised and the Client's *OnReceivedData* method gets called. Also so far so good. The one thing that does not work (and which I cannot comprehend), is that the server never gets the data that was sent by *SendMessage(...)* called in the Select Case statement. However, if I add a *Thread.Sleep(10)* before calling *SendMessage(...)*, the message is received and all is well. (This is also true if I raise yet another event, defined …

Member Avatar
+0 forum 0

Hey everyone, I'm having a little trouble with creating a 'dynamic' calendar with events called from a MySQL database. So basically I would like to have the Month automatically change when the month changes, and highlight the days which have events scheduled, and make those days links to my thickbox js window which will pass the selected day to the thickbox and show the scheduled events for that day broken down by time. <?php $cur_month = date(F); $cur_day = date(d); $args = "height=400&width=800&id="; $cur_date = date(F d, Y); include_once('connect.php'); $query = "SELECT id, year, month, day, event_title, event_start FROM event_calendar …

Member Avatar
Member Avatar
+0 forum 21

So im learning SDL to get an idea on game programming for my career as a game developer. I havent done any learning for a couple of months after getting stuck on this problem. So im using a lazyfoo.net tutorial engine. that moves a player and has a collision with a wall. All that works fine. But then i tried adding my own feature, when you press space. It displays a box where you were when you pressed space and there is a collision with that box. I called the function "dropBox". But it doesnt work? i get no errors …

Member Avatar
Member Avatar
+0 forum 6

I am trying to generate random points on the canvas. So i want to the random point on the screen to move to a new random location, when mouse touches it. How do i do this?? this is not happening with any of the mouse events. An example would be appreciated.

Member Avatar
Member Avatar
+0 forum 6

Not sure if this should be in the MySQL section but here goes, I basically need some sort of code which can read events from a database, display them on a webpage, and the ability to edit and add new events. Please do not suggest any sort of calendar as this is not what im looking for, i basically want an admin page to be able to add a new event, and then that to be shown in another page. I just need pointing in the right direction really, and have tried searching but only seem to come up with …

Member Avatar
Member Avatar
+0 forum 2

Hi, I am working on a Windows application project for 2 months. Today i found that my most of the control events are not firing.. Till yesterday night all the forms were fine but i wonder what happened today. Can anyone pls help me out..

Member Avatar
Member Avatar
+0 forum 10

Problemo: My PHP Script (it's just a snippet) is not picking up my JavaScript code. It doesn't even see the zip code field. It says it doesn't exist: [CODE] <?php $zipCode = $_GET[zipCode]; //echo "data:".$zipCode; $json = "{data:.$zipCode}"; echo $json; //echo json_encode(array("data"=>$zipCode)); //print ("Zip Code:".$zipCode); ?> [/CODE] I'm passing it in the following code block: [CODE] function getCityAndState(data, location) { var jsonString = {"zipCode": data}; alert("JSON String:" + jsonString.zipCode); if (location === "living") { $("#livingCityField").val(""); $("#livingStateField").val(""); alert("Inside getCityAndState: " + location); $.ajax({ type: "GET", url: "getCityAndState.php", async: true, dataType: "json", data: {zipCode: data}, success: function(data){ alert("SUCCESS:" + data.zipCode); }, complete: …

Member Avatar
Member Avatar
+0 forum 9

Hi everyone :) Title says it all... I'm trying to bind events to a wx.GenericDirCtrl. I've visited more than 20 web sites but i haven't found how to do it. I've tried different manners but it doesn't work as i expect it to. In some case my control is seen as a normal TreeCtrl and i can't use with it the GetFilePath method of the GenericDirCtrl ([URL="http://www.wxpython.org/docs/api/wx.GenericDirCtrl-class.html"] docs/api/wx.GenericDirCtrl-class[/URL]), in other case i can't get all the path of the selected file and folder in the tree, GetFilePath gives just the name... Help me please to make it do its job! …

Member Avatar
Member Avatar
+0 forum 2

Hi there, I currently have HTML table on my website full of entires from a MySQL table. These entries are just normal words. I've been wanting the user to be notified if they click on that particular word. I have the text background change colour whenever the user clicks on any of these words. I want to create an option or link rather to move onto the next set of words, however i only want this option to appear if the user has clicked on ALL the current words on the screen. Currently the words change colour to red so …

Member Avatar
+0 forum 0

My page [url]http://www.epicbasketball.com/p/events.html[/url] is kinda lookin pretty darn unprofessional. I'm limited in my coding skill, but am pretty good at learning new things quickly. If anyone out there could give me some advice, some tips, or would like to flat-out retouch the code below yourself, it would be HIGHLY APPRECIATED. Thank you for taking the time to even read this far. Have a great day. [CODE]<body id="events"> <style type="text/css"> td#controls { background-color: #111; color: #fff; width: 500px; font-weight: bold; } td#controls ul { margin: 0; padding: 0; list-style-type: none; } td#controls li { padding: 1.3ex 0; border-bottom: 1px solid #000; …

Member Avatar
+0 forum 0

Hello, i'm making a web site as a college project, this site features html,php,javascript,ajax,jquery and mysql. I'm almost done with the website... in the website i have a game, the players can create a 'lobby' and others players joins them, so, when a lobby is created an entry in the database is created, but if a player leaves the page without closing the lobby manually , the lobby has to be deleted through a unload event, here is my problem: In my game window, i included this script: [CODE]$(window).bind('beforeunload', function() { $.ajax({ url: "removelobby.php" }); }); [/CODE] As you can …

Member Avatar
+0 forum 0

I have three classes. I have a main app, a Draggable class, and a creator class. I want it so that when i click on one rectangle it produces the same exact dimensions as the shape i pressed. However, the problem is that when I use mousePressed, it seems that I can't differentiate between the two rectangles. Click on one or the other produces the same result, but I want them to be different. I'm not sure on how to go about doing this. [B]MyApp.java[/B] [CODE] import wheels.users.*; import java.awt.Color; public class MyApp extends Frame { private Creator _brick1, _brick2; …

Member Avatar
Member Avatar
+0 forum 6

The End.