LBNCA_Image and LBNCA_SelImage

This forum is for general developer support questions.
Post Reply
User avatar
mritter0
Posts: 214
Joined: Mon Aug 25, 2014 9:41 pm
Location: Bettendorf, IA, USA

LBNCA_Image and LBNCA_SelImage

Post by mritter0 »

LBNCA_Image (struct Image *)
LBNCA_SelImage (struct Image *)
Specifies that the column should contain an image. The
selected image is optional and if not provided the LBNA_Image
will be rendered in the IDS_SELECTED state when the node is
selected.

Defaults to NULL.
If I supply 2 PNG images it works as expected.

If I supply 1 LabelClass and 1 PNG it works as expected.

If I supply 1 PNG and 1 LabelClass
-OR-
If I supply 2 LabelClass "images" it does not. It still uses IDS_SELECTED state. Is the gadget not seeing the labels as images?

I use the Labels for custom text colors and soft styles.

I set the LBNCA_FillPen to 0 so the row appears to not be selected. I don't want any visible selection to be made, just the images changing.
Workbench Explorer - A better way to browse drawers
User avatar
broadblues
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 600
Joined: Sat Jun 18, 2011 2:40 am
Location: Portsmouth, UK
Contact:

Re: LBNCA_Image and LBNCA_SelImage

Post by broadblues »

When you say PNG I presume you mean bitmap.image ?

So when you pass a lable.image as the selected image you get nothing rendered? Or it still renders the standard image? Try resizing the window, does the imagery change then? Or get corruptted due to missing image?

Seems odd.

Need an example of code to give beter feedback.

However, from the description of what you are trying todo, I'd think you should be using renderhooks.
User avatar
mritter0
Posts: 214
Joined: Mon Aug 25, 2014 9:41 pm
Location: Bettendorf, IA, USA

Re: LBNCA_Image and LBNCA_SelImage

Post by mritter0 »

The images are displayed, but not rendered correctly. When use 2 bitmap.images, when click on a node with them, the second image is shown and no visible selection of the line is made (no blue fillpen). That is what is should do. Just swap images and show no selection.

But with the label.images, they swap, but show the visible blue selection (IDS_SELECTED). It shouldn't. The label.images aren't being treated the same as bitmap.images.
Workbench Explorer - A better way to browse drawers
Post Reply