# Request: TableListBox::getCellBounds()

**URL:** <https://forum.juce.com/t/request-tablelistbox-getcellbounds/2254>\
**Category:** General JUCE discussion\
**Created:** [November 4, 2007, 11:17pm UTC](https://forum.juce.com/t/request-tablelistbox-getcellbounds/2254 "2007-11-04T23:17:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![zamrate](https://avatars.discourse-cdn.com/v4/letter/z/f4b2a3/32.png) [@zamrate](https://forum.juce.com/u/zamrate)\
**Post date:** [November 4, 2007, 11:17pm UTC](https://forum.juce.com/t/request-tablelistbox-getcellbounds/2254/1 "2007-11-04T23:17:48Z")

</div>

Would it be possible to add the function

const Rectangle TableListBox::getCellBounds(const int columnId, const int rowNumber) ?

Perhaps one could even add 2 booleans “crossleftborder” and “crossrightborder”, so the returned bounds would not cross left or/and right border.

This function would just return position and size of some cell as screen coordinates relative to the TableListBox´s topleft corner.

After retreiving the bounds one could for instance put some InplaceEditorComponent over the cell.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [November 5, 2007, 5:25pm UTC](https://forum.juce.com/t/request-tablelistbox-getcellbounds/2254/2 "2007-11-05T17:25:47Z")

</div>

umm… you mean like TableListBox::getCellPosition()? Or is that not what you’re looking for?

---

<div class="post-metadata">

**Author:** ![zamrate](https://avatars.discourse-cdn.com/v4/letter/z/f4b2a3/32.png) [@zamrate](https://forum.juce.com/u/zamrate)\
**Post date:** [November 5, 2007, 6:10pm UTC](https://forum.juce.com/t/request-tablelistbox-getcellbounds/2254/3 "2007-11-05T18:10:45Z")

</div>

getCellPosition() always returns the same, no matter if the cell is visible to the user or not.

what I mean is a function that returns the bounds that are visible to the user. for instance if the cell (column=5, row=1000) is visible to the user at position x=100 and y=200 (x and y being relative to the TableListBox´s origin on screen), then it should return Rectangle(100,200,width\_of\_cell, height\_of\_cell).

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [November 5, 2007, 7:44pm UTC](https://forum.juce.com/t/request-tablelistbox-getcellbounds/2254/4 "2007-11-05T19:44:57Z")

</div>

Ok, that’s a good request.

---

<div class="post-metadata">

**Author:** ![zamrate](https://avatars.discourse-cdn.com/v4/letter/z/f4b2a3/32.png) [@zamrate](https://forum.juce.com/u/zamrate)\
**Post date:** [February 29, 2008, 11:21am UTC](https://forum.juce.com/t/request-tablelistbox-getcellbounds/2254/5 "2008-02-29T11:21:38Z")

</div>

Have you already had the time to look at this one? 🙂

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [February 29, 2008, 1:08pm UTC](https://forum.juce.com/t/request-tablelistbox-getcellbounds/2254/6 "2008-02-29T13:08:01Z")

</div>

Yes, I’ll be checking some changes in soon.

---

<div class="post-metadata">

**Author:** ![zamrate](https://avatars.discourse-cdn.com/v4/letter/z/f4b2a3/32.png) [@zamrate](https://forum.juce.com/u/zamrate)\
**Post date:** [February 29, 2008, 1:27pm UTC](https://forum.juce.com/t/request-tablelistbox-getcellbounds/2254/7 "2008-02-29T13:27:45Z")

</div>

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [May 12, 2017, 10:06am UTC](https://forum.juce.com/t/request-tablelistbox-getcellbounds/2254/8 "2017-05-12T10:06:15Z")

</div>

Closed on May 12, 2017, 10:06am UTC


