×

Discussion Board

Results 1 to 8 of 8

Thread: Event handling

  1. #1
    Registered User
    Join Date
    Aug 2009
    Posts
    10

    Event handling

    Is there a way to create and send user defined events in Symbian. e.g. between different windows in UI.

  2. #2
    Super Contributor
    Join Date
    Nov 2004
    Posts
    1,009

    Re: Event handling

    What kind of event you want send to the user created windows?
    Regards,
    Shafali

  3. #3
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: Event handling

    Normal event sending could be done using EEventUser, as well as you could use for example RProperty API for event distribution between processes.

  4. #4
    Super Contributor
    Join Date
    Jul 2007
    Location
    Beijing, China
    Posts
    538

    Re: Event handling

    Messages can be defined and transferred between TApaTask by simply using TApaTask::SendMessage()

  5. #5
    Regular Contributor
    Join Date
    Oct 2007
    Location
    China
    Posts
    269

    Re: Event handling

    of cause.
    try P&S or MessageQueue
    I am a programmer,and I hope we can help each other and progress together

  6. #6
    Registered User
    Join Date
    Aug 2009
    Posts
    10

    Re: Event handling

    I don't need communication between different processes. In fact, what I am trying to do is to notify the parent window (from within the child control) that the child received some event. More particularly, after a child's HandleControlEventL function has been called, I want to send notification (event) to the parent's HandleControlEventL function. The child consists of several controls, so when the parent's HandleControlEventL function is called by window server, the parent cannot determine which child control is clicked.

  7. #7
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: Event handling

    pass the parent to the child, and store the reference/pointer in the child, so you cna always call all public functions for the parent in the child.

  8. #8
    Super Contributor
    Join Date
    Jul 2007
    Location
    Beijing, China
    Posts
    538

    Re: Event handling

    Quote Originally Posted by RockyM View Post
    I don't need communication between different processes. In fact, what I am trying to do is to notify the parent window (from within the child control) that the child received some event. More particularly, after a child's HandleControlEventL function has been called, I want to send notification (event) to the parent's HandleControlEventL function. The child consists of several controls, so when the parent's HandleControlEventL function is called by window server, the parent cannot determine which child control is clicked.
    You problem is about design pattern. In the case, let parent be the Observer of child.

Similar Threads

  1. Problems with Event Handling
    By chandras2k6 in forum Symbian
    Replies: 3
    Last Post: 2009-05-20, 04:54
  2. key handling and handling event??
    By bakidilek in forum Symbian
    Replies: 4
    Last Post: 2009-01-02, 17:35
  3. Help me for touch Screen Event Handling
    By nil.bagul in forum Mobile Java General
    Replies: 1
    Last Post: 2008-03-28, 11:22
  4. CLogEvent problem
    By silviuccia in forum Symbian
    Replies: 2
    Last Post: 2006-12-22, 15:28
  5. N6600 Button Event Handling
    By wildan_ali in forum Mobile Java General
    Replies: 2
    Last Post: 2004-10-20, 16:06

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×