message

Detect click on URL in RichEdit

I am trying to update RichEdit so that it detects URL and enables clicking on it to open in the browser. Detecting URL is easy, I just use the following code from http://www.scalabium.com/faq/dct0146.htm mask := SendMessage(MNote.Handle, EM_GETEVENTMASK, 0, 0); SendMessage(MNote.Handle, EM_SETEVENTMASK, 0, mask or ENM_LINK); SendMes...

What does <h:messages> do in JSF ?

Hi all, I am learning JSF and came across this line: <h:messages layout="table"></h:messages> in a sample application ? Am not sure what does this line do? I get no error when removing the line from the code, and am able to run it and get the same output ? ...

What message will be sent by Windows when you press "Windows+D"

I used SPY++ to hook my windows message, but there is no WM_SYSCOMMAND message was sent when I pressed "Windows+D". What message will be sent by Windows when you press "Windows+D"? Thnaks in advance. ...

Displaying custom error message for a blank field in a simple JSF application

Hi all, I was trying out a simple JSF application, in which I need to check if the "name" field is blank, then display an error message. The code which takes the field's value is: <h:outputLabel value="Name"/> <h:inputText value="#{greeting.name}" required="true"> <f:validator validatorId="NumValidator"/> </h:inputText> The contr...

What's the proper response to WM_ENDSESSION with ENDSESSION_CLOSEAPP and wParam == FALSE?

According to the WM_ENDESSION docs, when lParam is ENDSESSION_CLOSEAPP and wParam is FALSE, "the application should not shut down". So, should I just ignore that and use the default response? What is it's purpose? (I'm listening to Windows events/messages in Qt (C++) to shutdown some launched processes, but that's just the context a...

Why Java servlet can't get Paypal IPN messages everytime ?

I have a Java servlet running on my notebook with Windows Vista, I set up a static IP, did port forwarding and registered for a free DDNS service, now my servlet is running, I gave the url to Paypal to send me IPN messages, I went on to it's sandbox site got to the test tools page, tried to send test messages by clicking the "Send IPN" b...

PHP Delete Confirmation Message

Hello, I am working on the page that will display a button for delete. Here I want some help from Javascript. If that delete button is pressed, a message box should appear asking if the user is sure to delete the record. If the user presses Yes then the delete.php is working . If the user presses No then the user should stay in the sam...

Send C++ Structure to MSMQ Message

Hi, I am trying to send the below structure through MSMQ Message typedef struct { char cfiller[7]; short MsgCode; char cfiller1[11]; short MsgLength; char cfiller2[2]; } MESSAGECODE; typedef struct { MESSAGECODE Header; char DealerId[16]; char GroupId[16]; long Token;...

Problem with OnMeasureItem()

Hi, I used OnMeasureItem() in my MFC ListControl to increase the height of the rows, and added WM_ON_MEASUREITEM() message in the Map. THe code I used is as follows: void CListCtrlTestDlg::OnMeasureItem(int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct) { if( nIDCtl == IDC_LIST1 )//IDC_LIST1 is my ListControl ID { lpMeasu...

smtp text message code not sending

I have a python code to send a text message to your cellphone using SMTP. when I run it I don't get any errors, but it doesn't send the text message. My code isn't finished, right now I am just getting the basics down. Any help on making it send would be appreciated. #infile = open('companyname.txt', 'r') import sys import smtplib ...

How to implement a message pump in Non-UI thread in .NET?

I am reading this blog: Use Threads Correctly, and I am wondering: How to implement a message (Note: I don't mean Windows Message here) pump in a non-UI thread? What I want is that the message can be an object or a command, say an Action<T>/Func<T>, etc. Do I have to use separate queue for different type of message? Say one queue for o...

jqGrid display default "loading" message when updating a table / on custom update

I have a case where I need to update a jqgrid based on some search criteria which the user selects. I can get the data to update , but I would want the loading message to show while the new data is being fetched. Can someone please let me know how to get that working ? Current code follows var ob_gridContents = $.ajax( { url : '/Dis...

Connect from java mobile application to webservice to read messages.

Hello, I have a website where users can send personal messages between them, now I want them to recieve the messages also on their mobile phone but without having to send them a SMS. I am thinking about providing them with a mobile phone with internet access over GPRS or 3G, then develop a Java application that will connect to the webs...

Obj-C component-based game architecture and message forwarding

Hello, I've been trying to implement a simple component-based game object architecture using Objective-C, much along the lines of the article 'Evolve Your Hierarchy' by Mick West. To this end, I've successfully used a some ideas as outlined in the article 'Objective-C Message Forwarding' by Mike Ash, that is to say using the -(id)forwar...

MFC CEdit does not process messages

Hi I'm dealing with a really annoying bug here... Basically I have an MFC application, that has a CEdit used to display some text in read-only mode(CStatic is not used, because CEdit provides the scrolling feature). After some set of actions is performed, the CEdit quits processing WM_SETTEXT messages. It does receive them - I can clear...

Rails override validator message

Hi, I have a site thats served in 2 flavours, English and French. Here's some code app/views/user/register.html.erb ----------------- <% form_for .....> <%= f.text_field :first_name %> <% end %> app/models/user.rb ------------------ class User < ActiveRecord::Base validates_presence_of :first_name end Now to display ...

Custom message headers in WCF on Mono

I'm making WCF calls from a Mono client running on Ubuntu (Mono 2.6). I can't seem to add a custom header to my messages. I have tried two different ways: Using a [MessageContract] and [MessageHeader] attributes on a custom class Adding the header to the outgoing messages programmatically, e.g. MessageHeader mhg = new MessageHeader("...

How to change Exception message, "The application ... has stopped unexpectedly. Please try again later.”

Is there any way to modify the generic Android Exception message "The application ... has stopped unexpectedly. Please try again later.” to display something more meaningful to the user? ...

should_receive in RSpec

As far as I know, should_receive is applied only to mock objects. What I want is to check, if a certain Class (not object) received a certain message, like: User.should_receive(:all).once How do I do that? UPD. Commonly, writing test for models and controllers we can write User.should_receive(:smth).once. But in my case I'm testing a...

Unlimited SMS API/Gateway (Sending and Receiving)

I am creating a chat application which requires that users be able to send and receive sms messages through a web interface. It would be somewhat similar to the text messaging service available in yahoo mail or in aol instant messenger. The situation is this: Given the high quantity of messages that would be sent and received, paying on ...