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"

Cant use Dynamic MultiCast Delegate In SWidget? [C++]

i want make Delegate In ScrollBox.cpp

such as DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam( FOnMouseWheeled, const SWidget* );

but this Code bring compile error

DYNAMIC DLELGATE can not used in SWidget?

Product Version: UE 4.16
Tags:
more ▼

asked Jan 03 '18 at 05:05 AM in C++ Programming

avatar image

andrea891004
1 1 3

avatar image voidnullptr Jan 03 '18 at 08:51 AM

Can you show the error log?

avatar image andrea891004 Jan 04 '18 at 01:21 AM

alt text

alt text


Translation

syntax error : missing ';' before 'class-head'

missing type specifier - int assumed. Note: C++ does not support default-int

FOnMouseWheeled_DelegateWrapper: identifier not found


declare.png (45.6 kB)
error.png (26.5 kB)
avatar image Shadowriver Jan 04 '18 at 07:32 PM

Hmmm it looks ok to me, but in slate dynamic delegates are not used at all. I only see normal delegates with SLATE_EVENT argument, so you might consider using it

Can you tell what your use case of this and why do you modify engine code insted of trying to make your own widget in less invasive way?

Did you tried rebuilding? it might be issue in intermediate files too

avatar image andrea891004 Jan 12 '18 at 05:07 AM

Um...Use SLATE_EVENT is possible...For now, use this macro....

Thank you!!!

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

0 answers: sort voted first
Be the first one to answer this question
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