Jump to content

Why cursor visible at showmesage


mierlp
 Share

Recommended Posts

Hi

 

I was wondering why the cursor is always visible when a message is displayed.

In my situation i have inlog screen where is checked if the username field is

filled when the users pressed the OK button

 

I use this code :

 

  if Length(UniEdit_InlogUserName.text)=0 then begin
    Cursor:=crNone;
    ShowMessage('<br/><div align="center">You need to enter a username!' + '</div><br/>');
    Cursor:=crDefault;
    UniEdit_InlogUserName.Clear;
    UniEdit_InlogUserName.SetFocus;
    Abort;
 end;

 

Because the focus is on the UniEdit_InlogUserName you see cursor blinking

through the message... can it be done otherwise ?

 

Regards Peter

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...