Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3827

ShowPopover

$
0
0

Hi All,
A little excercise for anyone interested. I’ve asked a few questions in the past, so some might recognise, for those who don’t I’m just a hobbiest making apps for my own interest.

Anyway, I have a project here I use that has a list box on the screen populated with records from a DB. There are about 8 columns of fields and I would like to be able to click on a row and using the ShowPopover command present a summary of the info for that record on either a small window or container. The problem is tho, that I want it to be aligned with and point at the row.

I can use the Listbox as the parentControl but it only points at the border/s of the ListBox. I can’t specify the actual row/column etc.

I then had the idea of adding a Label to the main screen with either no text or visibility off and then, after clicking the Listbox, set it’s Top and Left properties to a calculation based on the row & column properties. I could then point the info box at that.

Now, in principle this works but, nothing appears. I’m certain that the problem is that when I set the Label’s Top & Left it then positions itself under the ListBox and so is hidden.

Does anybody know if I’m correct there and, if so, can I tell it to be on top? I can’t find any reference to a “stack” type order.

Is there another way to achieve what I want that anyone can think of?

Thanks for any help,
Barry

10 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 3827

Trending Articles