Hey guys, so I’ve been tinkering with Slate ( and UMG ) more and more and now I have a couple of questions.
1: Is there a way to set focus back to game viewport in UMG? ( I know how to do it in slate )
2: Is it possible to convert a UUserWidget to normal Slate widgets? ( I’d likse to do: FSlateApplication::Get().SetKeyBoardFocus() using the newly created widget from UMG)
3: In UMG, can I set focus to a textbox when the widget is created? Right now it doesn’t let me do that, it just lets me set focus on the whole new widget.
4: In Slate, I managed to get simple widgets up and running and now I want to simply show an image instead of SText etc. Is there an EASY way to get a ImageBrush in Slate?
I hope the questions make sense, thank you in advance!
Oz
1: Nope, need to fix that.
2: GetCachedWidget, if you’ve added to the viewport already.
3: Will expose a way to set focus on any UWidget.
4: Not really, you’ve got to have resources/style sets that load the images, and there are many problems with that because there’s no way to know what resources to include for cooking. One of the many reasons we’re creating UMG 
Love the feedback, keep it coming.
Thanks, looking forward to the focusing functionality!
2: GetCachedWidget, I could not find it anywhere, am I missing something? Could you perhaps give a little nudge in the right direction
( I’m using 4.4 preview btw )
5: It would be nice to have an easier way to bind the OnTextCommited and OnTextChanged events in UMG. ( I’m doing it in the graph atm )
2: In preview I think it is GetWidget.
5: What is easier than doing it in the graph? 
2: Ok nice, thanks. I think I DID stumble upon that function in the API documentation but I could not get it to run, like the header was not there or something. I will try it again now and will let you know.
5: What I mean is, if I select a button in UMG, I see an ‘events’ in the details panel. In there I can automatically bind the ‘OnClicked’ event ( it has a tiny button saying ‘Bind’). I was expecting the textbox to also have something similar but it doesn’t. I was hoping there would be OnTextCommited and OnTextChanged for me to bind with the little button. If I select my textbox now I don’t see any events that I can bind to 
5: For the next version all widgets will have all the available events, bindable or multicastable in the details panel with similar displays:
5: That looks great! 
2: Ok after a long search I managed to get GetCachedWidget working ( GetWidget doesn’t appear ). But now that I wanted to try out setting focus to a UEditableText I got lots of errors. Like so:
5 IntelliSense: no instance of constructor "FReadSurfaceDataFlags::FReadSurfaceDataFlags" matches the argument list c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\Engine\Public\UnrealClient.h 55
6 IntelliSense: no instance of constructor "FReadSurfaceDataFlags::FReadSurfaceDataFlags" matches the argument list c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\Engine\Public\UnrealClient.h 63
64 IntelliSense: invalid specifier outside a class declaration c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\Components\EditableText.h 105
66 IntelliSense: invalid specifier outside a class declaration c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\Components\EditableText.h 108
68 IntelliSense: invalid specifier outside a class declaration c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\Components\EditableText.h 111
70 IntelliSense: invalid specifier outside a class declaration c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\Components\EditableText.h 116
59 IntelliSense: incomplete type is not allowed c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\Components\EditableText.h 9
74 IntelliSense: identifier "UUserWidget" is undefined c:\Users\OzBoven\Documents\Unreal Projects\grimgame_lodzero\SGame\Source\SGame\Public\SHud.h 28
75 IntelliSense: identifier "UUserWidget" is undefined c:\Users\OzBoven\Documents\Unreal Projects\grimgame_lodzero\SGame\Source\SGame\Private\SHud.cpp 30
8 IntelliSense: identifier "FWindSourceSceneProxy" is undefined c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\Engine\Classes\Components\WindDirectionalSourceComponent.h 20
7 IntelliSense: identifier "FOnSelectedLevelsChangedEvent" is undefined c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\Engine\Classes\Engine\World.h 1929
62 IntelliSense: identifier "FOnEditableTextCommittedEvent" is undefined c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\Components\EditableText.h 94
61 IntelliSense: identifier "FOnEditableTextChangedEvent" is undefined c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\Components\EditableText.h 90
4 IntelliSense: identifier "FMeshBatchElement" is undefined c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\ShaderCore\Public\VertexFactory.h 488
76 IntelliSense: identifier "editTextWidget" is undefined c:\Users\OzBoven\Documents\Unreal Projects\grimgame_lodzero\SGame\Source\SGame\Private\SHud.cpp 33
72 IntelliSense: expected a declaration c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\Components\EditableText.h 122
73 IntelliSense: expected a declaration c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\Components\EditableText.h 124
65 IntelliSense: expected a '{' c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\Components\EditableText.h 105
67 IntelliSense: expected a '{' c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\Components\EditableText.h 108
69 IntelliSense: expected a '{' c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\Components\EditableText.h 111
71 IntelliSense: expected a '{' c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\Components\EditableText.h 116
60 IntelliSense: expected a ';' c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\Components\EditableText.h 9
55 IntelliSense: cannot open source file "WidgetTree.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 94
29 IntelliSense: cannot open source file "WidgetSwitcherSlot.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 54
30 IntelliSense: cannot open source file "WidgetSwitcher.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 55
57 IntelliSense: cannot open source file "WidgetBlueprintGeneratedClass.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 97
14 IntelliSense: cannot open source file "Widget.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 31
12 IntelliSense: cannot open source file "Visual.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 27
53 IntelliSense: cannot open source file "Viewport.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 88
21 IntelliSense: cannot open source file "VerticalBoxSlot.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 42
22 IntelliSense: cannot open source file "VerticalBox.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 43
56 IntelliSense: cannot open source file "UserWidget.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 95
23 IntelliSense: cannot open source file "UniformGridSlot.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 45
24 IntelliSense: cannot open source file "UniformGridPanel.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 46
52 IntelliSense: cannot open source file "TileView.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 86
48 IntelliSense: cannot open source file "Throbber.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 81
35 IntelliSense: cannot open source file "TextBlock.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 63
50 IntelliSense: cannot open source file "TableViewBase.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 84
45 IntelliSense: cannot open source file "Spacer.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 77
54 IntelliSense: cannot open source file "SObjectWidget.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 91
42 IntelliSense: cannot open source file "Slider.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 73
11 IntelliSense: cannot open source file "SlateWrapperTypes.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 25
27 IntelliSense: cannot open source file "ScrollBoxSlot.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 51
28 IntelliSense: cannot open source file "ScrollBox.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 52
47 IntelliSense: cannot open source file "ScrollBar.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 79
10 IntelliSense: cannot open source file "SConstraintCanvas.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 17
43 IntelliSense: cannot open source file "ProgressBar.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 74
15 IntelliSense: cannot open source file "PanelWidget.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 33
13 IntelliSense: cannot open source file "PanelSlot.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 29
25 IntelliSense: cannot open source file "OverlaySlot.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 48
26 IntelliSense: cannot open source file "Overlay.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 49
41 IntelliSense: cannot open source file "MultiLineEditableTextBox.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 71
40 IntelliSense: cannot open source file "MultiLineEditableText.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 70
46 IntelliSense: cannot open source file "MenuAnchor.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 78
51 IntelliSense: cannot open source file "ListView.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 85
37 IntelliSense: cannot open source file "Image.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 65
19 IntelliSense: cannot open source file "HorizontalBoxSlot.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 39
20 IntelliSense: cannot open source file "HorizontalBox.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 40
39 IntelliSense: cannot open source file "EditableTextBox.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 68
38 IntelliSense: cannot open source file "EditableText.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 67
58 IntelliSense: cannot open source file "EditableText.generated.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\Components\EditableText.h 5
16 IntelliSense: cannot open source file "ContentWidget.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 34
44 IntelliSense: cannot open source file "ComboBox.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 75
49 IntelliSense: cannot open source file "CircularThrobber.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 82
36 IntelliSense: cannot open source file "CheckBox.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 64
17 IntelliSense: cannot open source file "CanvasPanelSlot.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 36
18 IntelliSense: cannot open source file "CanvasPanel.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 37
33 IntelliSense: cannot open source file "ButtonSlot.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 60
34 IntelliSense: cannot open source file "Button.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 61
31 IntelliSense: cannot open source file "BorderSlot.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 57
32 IntelliSense: cannot open source file "Border.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 58
9 IntelliSense: cannot open source file "Anchors.h" c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\UMG.h 16
63 IntelliSense: a type qualifier is not allowed on a nonmember function c:\Program Files\Unreal Engine\4.4\Engine\Source\Runtime\UMG\Public\Components\EditableText.h 98
Error 3 error MSB3073: The command ""C:\Program Files\Unreal Engine\4.4\Engine\Build\BatchFiles\Build.bat" SGameEditor Win64 DebugGame "C:\Users\OzBoven\Documents\Unreal Projects\grimgame_lodzero\SGame\SGame.uproject" -rocket" exited with code -1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets 38
Error 1 error C2440: 'initializing' : cannot convert from 'UUserWidget *' to 'UEditableText *' C:\Users\OzBoven\Documents\Unreal Projects\grimgame_lodzero\SGame\Source\SGame\Private\SHud.cpp 33
Error 2 error : Failed to produce item: C:\Users\OzBoven\Documents\Unreal Projects\grimgame_lodzero\SGame\Binaries\Win64\UE4Editor-SGame-Win64-DebugGame.pdb C:\Users\OzBoven\Documents\Unreal Projects\grimgame_lodzero\SGame\Intermediate\ProjectFiles\ERROR
I’m assuming it’s because I’m not including the right headers? I tried including ‘Runtime/UMG/Public/UMG.h’. This worked for UUserWidget but not for UEditableText. It also might be me just missing something obvious, I’ve been tinkering with this for hours now haha 
Thanks again!
NVM! RIGHT when I posted I found the error haha. I was doing a wrong cast! Sorry, I need to catch some sleep. Thanks a lot for the help 