What I want to do is show the user some text. The text will be shown when the user clicks a Help button. Perhaps there is another way to the way I propose? (I am using Delphi XE6 and latest trial)
I have followed the document 'TMSFMXPackDevGuide.pdf' in it's section on TTMSFMXPopup. The document mentions TMSFMXPopup1.Close but there is no such event. I am not impressed by this inadequate documentation.
I find that when the user clicks the Header button, the Popup disappears. Also if the user clicks outside the Popup, the Popup disappears.
So why is a button required?
When I have no code in event TMSFMSPopup1HeaderButton Click :-
"Access violation at address 008167B8 in module 'XXX.exe'. Read of address 00000000."
When I have, in that event, the code TMSFMXPopup1.ClosePopup, I get :-
"Access violation at address 0074902B in module 'XXX.exe' address 0000004C."
I have tried the code :-
if AButton.Index = 0 then
TMSFMXPopup1.ClosePopup;
What do I need to do to eliminate these errors?
Regards,
Peter Evans
I have retested this here with XE6.
With a TTMSFMXPopup on the form where one header button is added, the click on the header button does not close the popup here. The popup is closed upon a click outside the popup or when programmatically calling TTMSFMXPopup.ClosePopup.
I'm using the TMS Pack for FireMonkey latest version and couldn't see an access violation.
I found that I had to set the property StayOpen = True.
When I did that I no longer got the errors.
Unfortunately I found the same problems reported in November 2013 in this forum under subject 'TEdit in TTMSFMXPopup'.
For example, if the user wants to see the popup for a second time it does not show. So I have taken the advice of one of the TMS customers - replace the popup with a Form.
I am greatly disappointed that I can not use TMSFMXPopup.
It would be helpful to send some sample project with which the problem you experience can be reproduce. I retested this here with a default TTMSFMXPopup on the form coupled to a detailcontrol Panel with Edit inside and couldn't reproduce a problem where the popup and/or edit isn't showing the 2nd time it is opened.
I am having the same issue, if the user wants to see the popup for a second time it
does not show. XE5 Update 2
Hi,