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"

Slate HorizontalBoxSlot parameter SizeParam compile error

Using the Slate Editor for user widget, you have access to the Size parameter. see image attached. As I understand, this parameter is SizeParam.

/**

  • How much space this slot should occupy along panel's direction.

  • When SizeRule is SizeRule_Auto, the widget's DesiredSize will be used as the space required.

  • When SizeRule is SizeRule_Stretch, the available space will be distributed proportionately between

  • peer Widgets depending on the Value property. Available space is space remaining after all the

  • peers' SizeRule_Auto requirements have been satisfied.

FSizeParam SizeParam;

In the FSlot constructor I can see that this parameter is initialized as follow

FSlot()

: TSlotBase()

, SizeParam( FStretch(1) )

Now if I try to replicate this in my widget, it generates an error.

SNew(SHorizontalBox)

  • SHorizontalBox::Slot()

.SizeParam(FStretch(1))

.VAlign(VAlign_Fill)

.HAlign(HAlign_Fill)

[

error C2064: term does not evaluate to a function taking 1 arguments

I don't understand what is wrong here.

Txs for your help, D.

Product Version: Not Selected
Tags:
more ▼

asked Oct 13 '14 at 04:03 PM in C++ Programming

avatar image

domzorg
714 49 56 128

avatar image domzorg Oct 13 '14 at 04:04 PM

alt text

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

You can use

.+ SHorizontalBox::Slot()

.AutoWidth() //to set SizeParam stretching to auto

.FillWidth(float) //to set custom aspect .

more ▼

answered May 26 '16 at 11:11 AM

avatar image

antondoe
65 1 2 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Thank you.

D.

more ▼

answered May 26 '16 at 01:29 PM

avatar image

domzorg
714 49 56 128

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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