Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2006
    Posts
    77

    On Key and Checkbox problem

    Why On Key actions doesn't work after clicking on Checkbox?

    I created blank project, inserted checkbox and Page>Script>On key I wrote:
    if e_Key == 13 then
    Dialog.Message("sth", "sth")
    end

    Now, when I ran the app, after pushing Enter key a message appeared correctly. But after I clicked (checked) on the checkbox, pushing Enter did nothing. Note, that after the click, the checkbox is selected (dot square). Maybe because of that keys doesn't work?
    Could sb explain?

  2. #2
    Join Date
    May 2006
    Posts
    5,380
    Note, that after the click, the checkbox is selected (dot square). Maybe because of that keys doesn't work?
    spot on
    Open your eyes to Narcissism, Don't let her destroy your life!!

  3. #3
    Join Date
    Sep 2006
    Posts
    77
    Well, ok. So I'll be happy if you would tell me what to do to make keys work "after".
    I tried page.redraw but didn't helped. Actually I have no idea what to do with this issue.

  4. #4
    Join Date
    May 2006
    Posts
    5,380
    ah, ok, i thought you was just asking why this was happening

    try putting the below line of code into the checkbox 'OnClick' event to remove focus after its been clicked
    Code:
    Page.SetFocus("")
    Open your eyes to Narcissism, Don't let her destroy your life!!

  5. #5
    Join Date
    Sep 2006
    Posts
    77
    I thought about it but in help there was written that setfocus works for only some specific object. There is nothing about set focus to page.

    Anyway, thanks very much!

  6. #6
    Join Date
    May 2006
    Posts
    5,380
    thats where "knowing AMS" comes into play, you get to know the tricks are not in the help file
    Open your eyes to Narcissism, Don't let her destroy your life!!

Tags for this Thread

Posting Permissions

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