LBNCA_Image and LBNCA_SelImage

This forum is for general developer support questions.

LBNCA_Image and LBNCA_SelImage

Postby mritter0 » Sat Jul 30, 2016 6:50 am

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
mritter0
 
Posts: 183
Joined: Mon Aug 25, 2014 10:41 pm
Location: Bettendorf, IA, USA

Re: LBNCA_Image and LBNCA_SelImage

Postby broadblues » Sat Jul 30, 2016 1:22 pm

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
broadblues
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 453
Joined: Sat Jun 18, 2011 3:40 am
Location: Portsmouth, UK

Re: LBNCA_Image and LBNCA_SelImage

Postby mritter0 » Sun Jul 31, 2016 6:58 pm

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
User avatar
mritter0
 
Posts: 183
Joined: Mon Aug 25, 2014 10:41 pm
Location: Bettendorf, IA, USA


Return to General Developer Support

Who is online

Users browsing this forum: Spektro and 1 guest