realbasic-nug
[Top] [All Lists]

Re: Listbox cell focus

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Listbox cell focus
From: Christian Miller <realbasic at nc dot rr dot com>
Date: Mon, 28 Feb 2005 17:09:05 -0500
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <944d31800fbae5546bbdd84fe925b9c7 at nc dot rr dot com> <p06210215be486184f077 at [129 dot 94 dot 109 dot 203]>
On Feb 28, 2005, at 12:52 AM, Dr Gerard Hammond wrote:
I have a listbox and which has some columns as editable cells and other columns as checkboxes. How can I programmatically set focus on a checkbox field so that the user can then press the space bar to check/uncheck a particular item? I saw no method to do this in the online help.

I use

  if key = " " then
    if me.ListIndex <> -1 then
      me.cellcheck(me.ListIndex, 0) = NOT me.cellcheck(me.ListIndex, 0)
      TableCellAction(me.ListIndex)  //private method
      Return true
    end
  end

Thanks... that would work if there were only one checkbox per row. I have some listboxes that have six checkboxes per row.

Thanks,
Christian
Pariahware, Inc. Custom Software
<pariahware at pariahware dot com>
<http://www.pariahware.com>
--
God loved you so much that He gave His only son Jesus. What have you done with God's gift?


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>