Browse Source

Improved some docs.

tags/2021-05-28
jules 13 years ago
parent
commit
089a2e31ba
2 changed files with 6 additions and 2 deletions
  1. +3
    -1
      modules/juce_gui_basics/widgets/juce_ListBox.h
  2. +3
    -1
      modules/juce_gui_basics/widgets/juce_TableListBox.h

+ 3
- 1
modules/juce_gui_basics/widgets/juce_ListBox.h View File

@@ -64,7 +64,9 @@ public:
This method will be called whenever a custom component might need to be updated - e.g.
when the table is changed, or TableListBox::updateContent() is called.
If you don't need a custom component for the specified row, then return 0.
If you don't need a custom component for the specified row, then return nullptr.
(Bear in mind that even if you're not creating a new component, you may still need to
delete existingComponentToUpdate if it's non-null).
If you do want a custom component, and the existingComponentToUpdate is null, then
this method must create a suitable new component and return it.


+ 3
- 1
modules/juce_gui_basics/widgets/juce_TableListBox.h View File

@@ -86,7 +86,9 @@ public:
This method will be called whenever a custom component might need to be updated - e.g.
when the table is changed, or TableListBox::updateContent() is called.
If you don't need a custom component for the specified cell, then return 0.
If you don't need a custom component for the specified cell, then return nullptr.
(Bear in mind that even if you're not creating a new component, you may still need to
delete existingComponentToUpdate if it's non-null).
If you do want a custom component, and the existingComponentToUpdate is null, then
this method must create a new component suitable for the cell, and return it.


Loading…
Cancel
Save