Popmenu not populating on Pi

Same Sqlite db on Pi. Data is there. The control is physically greyed out on startup, ie not enabled

Ok, it’s coming down to the timing of the events. At the time of the open for the Popmenu, the windows open event hasn’t fired , ergo my sqlitedbVar is nil, then the class exception. So I need to understand the order the events fire. Basically I need to open my database before the popmenu open event fires. I tried the app level open that works for one of the popups. Not sure if there is any docs on sequence of events firing in what order. Anyway off to bed, I will tackle this tomorrow. It is odd that it works in Windows but not Pi.

I got it working in the open event. Now the problem is the list doesn’t scroll completely to the end, it only displays about twenty items, and I can’t scroll down further, it bleeds off the screen.