Closed CHamlinPNP closed 2 years ago
I am still trying to figure this out. I have not heard anything in a few days. I do not know if this means that everyone is as confused as I why it does not work....has not been even tended to yet...or something else. I tried including all of the pertinent information in the first post. Please assist if you can. Please at least respond so that I know someone is working on it. Thanks
Given that this is volunteer work, responses aren't going to be the same as for commercial products. IOW, I haven't had a chance to look at it yet. Hopefully this weekend. In the meantime, try putting it in a form instead of _SCREEN.
IMHO, the reason is that you do have a READ EVENTS at the bottom, but nothing where those events can "land on". No form, no textbox, nothing. VFP needs some landing spot for keypresses, as long as a program runs. Thus maybe just _screen.add a textbox for that.
I don't think this is the case though. It is a menu...and based on the menu it will do something. The initial view of the menu comes up as shown. Not making anything in particular as a "Landing Spot". You click on just a button...and it displays a message as it is supposed to do...you click ok on the messagebox and it returns to the read events with once again...no landing spot. The issue is that the sub-menu flashes which is bizarre...if it wanted a "landing spot" for this...why not make the sub-menu which was just drawn the location to go. There is just something that is making the sub-menu be released (probably due to the return from the routine which drew it). That is my guess...hopefuly Doug will be able to figure this out.
The issue is tmrClick.Timer in SFRibbonMenuForm. It closes the menu if the user clicks outside the form the ribbon belongs to, including clicking in _SCREEN. Since the ribbon is in _SCREEN, the menu will immediately close after opening.
The ribbon isn't intended to work in _SCREEN, so try putting it in a form. Otherwise, adjust the code in that method.
Doug
đź“ť Provide detailed reproduction steps (if any)
✔️ Expected result
I expect on clicking on button and the sub-menu (bars) appear below it. I then can click on one of these bars.
❌ Actual result
The bars and disappear almost immediately. You have to watch very closely to see them flash.
đź“· Screenshots
Are there any useful screenshots? WinKey+Shift+S and then just paste them directly into the form
https://user-images.githubusercontent.com/34104227/159494771-7ec4ff9d-b0fd-476b-978a-c1f4f246fe2c.mp4
test.prg.txt