Hi all -
For a project I'm doing, I've created a "Heat Map", which is basically 10 coloured labels in a Frame and a few labels. I've done this by putting 10 labels (etc) on a form (at design time) where I want the heat map, then programmatically changing the width / height of those labels to fit inside the Frame. I then set the colours of those labels to different colours depending upon some data I have.
I'm happy with how it looks, but now I realise I need this Heat Map on a number of other forms, so I'd like to convert it into a Class Module, so I can just call them up programmatically whenever I need it. I'm happy with doing this, but I wouldn't mind a bit of a starter with it. I've googled this, and I can't find anything.
Does anyone have any pointer to some example code / tutorial where I can create a Class Module which contains a number of Controls (like Labels, Frames and so on), and how you initialise them and place that Class on a Form?
Many thanks,
Mr P.
For a project I'm doing, I've created a "Heat Map", which is basically 10 coloured labels in a Frame and a few labels. I've done this by putting 10 labels (etc) on a form (at design time) where I want the heat map, then programmatically changing the width / height of those labels to fit inside the Frame. I then set the colours of those labels to different colours depending upon some data I have.
I'm happy with how it looks, but now I realise I need this Heat Map on a number of other forms, so I'd like to convert it into a Class Module, so I can just call them up programmatically whenever I need it. I'm happy with doing this, but I wouldn't mind a bit of a starter with it. I've googled this, and I can't find anything.
Does anyone have any pointer to some example code / tutorial where I can create a Class Module which contains a number of Controls (like Labels, Frames and so on), and how you initialise them and place that Class on a Form?
Many thanks,
Mr P.