I really struggle to understand and use TableListBox. When I copy the tutorial it works, but when I try to create a simple project from scratch I do not get it to work. I have found an instruction that describes step by step how to do, but I encounter problems.
The steps I take:
- I create a project (GUI application) in Projucer
Adds a new Component class “PlaylistComponent” (split between CPP and header) - Adds the new class to the MainComponent and makes it visible. So far so good.
- Adds a TableListbox Component to the PlaylistComponent, makes it visible and adds some columns.
- Now the problem starts. The instructions says:
We are going to implement these on the PlaylistComponent class. In Playlist-
Component.h, update the inheritance relationship:
class PlaylistComponent : public Component,public TableListBoxModel
When I do this I get the following errors:
Severity Code Description Project File Line Suppression State
Error (active) E0322 object of abstract class type "PlaylistComponent" is not allowed: TableListBoxAttempt_App E:\GitHub\JUCE\My projects\TableListBoxAttempt\Source\MainComponent.h 25
,
Severity Code Description Project File Line Suppression State
Error C2259 'PlaylistComponent': cannot instantiate abstract class (compiling source file ..\..\Source\MainComponent.cpp) TableListBoxAttempt_App E:\GitHub\JUCE\My projects\TableListBoxAttempt\Source\MainComponent.h 25
and
Severity Code Description Project File Line Suppression State
Error C2259 'PlaylistComponent': cannot instantiate abstract class (compiling source file ..\..\Source\Main.cpp) TableListBoxAttempt_App E:\GitHub\JUCE\My projects\TableListBoxAttempt\Source\MainComponent.h 25
Since I’m a beginner at this, I have no clue what is wrong.
Here is the code: https://www.dropbox.com/s/lqncjw0qeepjm8z/TableListBoxAttempt.zip?dl=0