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"

Make SWindow that is 'always on top'

Hi,

I want to create a program/app (not a game) and use Slate widgets displayed in the window which is always on top. Not only on top of other Slate windows but also other native OS windows.

Is it even possible right now in Slate? If so where do I start? If not, can I put widgets in native OS window?

Any hints appreciated.

Product Version: Not Selected
Tags:
more ▼

asked Jun 05 '15 at 07:34 AM in C++ Programming

avatar image

szyszek
595 15 10 36

avatar image szyszek Jun 05 '15 at 10:02 PM

Ok, so topmost thing was actually quite easy. Now, I'd like to make that window to be transparent but keep it's content opaque, how can I do that?

avatar image AlexM May 17 '16 at 08:45 PM

Could you post your solution as to how you got an SWindow to always be on top? I haven't been able to figure it out.

avatar image AlexM May 17 '16 at 10:38 PM

Nevermind figured it out and posted the answer.

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

1 answer: sort voted first

To answer the original question, you can get a slate window to always be on top quite easily. Here is the relevant code when creating a new window.

     auto Window = SNew(SWindow)
         .Title(LOCTEXT("WindowTitle", "ArchVizTools"))
         .IsTopmostWindow(true) // <------ Makes the window always stay on top
         .ClientSize(FVector2D(200.0f, 600.0f))
         .SupportsMaximize(true)
         .SupportsMinimize(false)


more ▼

answered May 17 '16 at 08:52 PM

avatar image

AlexM
145 7 9 17

avatar image yimox Apr 17 '17 at 09:57 AM

Hi, Is there a way to make window always stay on top at Runtime? Somethings like SetOnTopmostWindow(true). Thanks.

(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