x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

[Question] Set focus to text box without showing cursor

I have a simple multiplayer chat window that works just fine. I press T to bring up the window and start typing because I set the user focus to the text box on creation. Is there a way to have it so the mouse cursor doesn't appear when its focused? I have checked the UMG widget and made sure that there wasn't any cursor selected under Behavior. Any combination of input mode and keyboard focus either results in the cursor being visible or the text box not being selected. alt text

The widget itself is created in BeginPlay. It is just added and removed from the viewport with OpenChatWindow and CloseChatWindow functions.

Product Version: Not Selected
Tags:
capture.jpg (51.7 kB)
more ▼

asked Jan 27 '15 at 04:34 AM in Blueprint Scripting

avatar image

OpticalShadows
276 23 26 43

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

from player controller u can set ShowMouseCursor to false to hide mouse cursor, for the focus in my game i do the same thing, in my case i set input mode to UI Only

more ▼

answered Jan 27 '15 at 05:42 AM

avatar image

Duncan Dam
3.1k 121 50 164

avatar image OpticalShadows Jan 27 '15 at 03:20 PM

I have also tried that. Sorry should have mentioned it. That exec line coming out of the SetInput node goes to show cursor false. I've also put show cursor false on Tick just to test and it's getting overridden somewhere. The reason I have game and UI is because I still want the camera to move with the mouse. Shootergame has this working to an extent, the cursor flickers a bit but is generally not visible.

(comments are locked)
10|2000 characters needed characters left

Set keyboard Fucos what u looking for .. make an Event on that widget and call Set Keyboard Fucos to TestBox and call it when Press key without show mouse Crosalt textser ...

keybrad-fucas.jpg (176.9 kB)
more ▼

answered Jan 06 '18 at 03:32 AM

avatar image

Elea
3 4 4 9

avatar image Elea Jan 06 '18 at 03:59 AM

*Fucus bad English -_-

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question