Lena Posted October 6, 2015 Posted October 6, 2015 Hi. In Login form: ScreenMask->Target=UniLoginForm1 ScreenMask->WaitData=true ScreenMask->Messsage=Wait ScreenMask->ShowMessage=true When I press button I see ScreenMask message Wait then Main form open. All fine. Now I want when user fill password and press key Enter also see ScreenMask message Wait then Main form open. When I try this code Main form open but no ScreenMask message Wait. How to correctly do it? Thanks. void __fastcall TUniLoginForm1::UniEditPasswordKeyUp(TObject *Sender, WORD &Key, TShiftState Shift) { if(Key == VK_RETURN) { UniBitBtnEnterClick(this); } } Quote
marquesrb Posted November 24, 2015 Posted November 24, 2015 I'm facing the same problem. Anyone help? Quote
Administrators Farshad Mohajeri Posted November 24, 2015 Administrators Posted November 24, 2015 ScreenMask can only be activated from client side when user interacts with UI elements. For example: pressing a button, closing a form and etc. Quote
Sistema Fenix Posted November 24, 2015 Posted November 24, 2015 Hi I use this: if (Key = VK_RETURN) then UniSession.AddJS(TestButton.JSName + '.fireEvent(''click'', this)'); Quote
Administrators Farshad Mohajeri Posted November 25, 2015 Administrators Posted November 25, 2015 Hi I use this: if (Key = VK_RETURN) then UniSession.AddJS(TestButton.JSName + '.fireEvent(''click'', this)'); It doesn't realyy solve the issue because if you have a lengthy operation after this code, mask will only be displayed after task is completed. Quote
Oliver Morsch Posted November 25, 2015 Posted November 25, 2015 It doesn't realyy solve the issue because if you have a lengthy operation after this code, mask will only be displayed after task is completed. http://forums.unigui.com/index.php?/topic/5763-messagescreen-blocking-message-and-inputdialogs-and-live-statusmessages-with-abort-option/ Quote
Administrators Farshad Mohajeri Posted November 26, 2015 Administrators Posted November 26, 2015 http://forums.unigui.com/index.php?/topic/5763-messagescreen-blocking-message-and-inputdialogs-and-live-statusmessages-with-abort-option/ Yes. Please see my comment under that thread. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.