Hi Scuri,
I tested IupUser and indeed, setting POSTMESSAGE_CB does respond to
IupPostMessage. However, IupUser does NOT return POSTMESSAGE_CB when I call
IupGetClassCallbacks("user", ...). I understand IupUser is meant to be a
foundation and perhaps that is why it doesn't return POSTMESSAGE_CB as a
supported callback. Would it make sense to add at least register the
POSTMESSAGE_CB callback to it however?
Also, I noticed the class metadata for POSTMESSAGE_CB elsewhere omits the
callback argument information. e.g. for IupButton, the class metadata its
POSTMESSAGE_CB, callback is empty where I think it should instead be "sidV"
(string, int, double, pointer). Would it make sense to register POSTMESSAGE_CB
with those parameter types rather than returning nothing?
Thanks,
Matt
On Thu, Jul 16, 2020, at 1:06 PM, Antonio Scuri wrote:
> Yes you can use an IupUser for that purpose. POSTMESSAGE_CB is a special
> callback that can be used for any control.
>
> Best,
> Scuri
>
>
> Em qua., 15 de jul. de 2020 às 18:08, Matthew Kennedy <[email protected]>
> escreveu:
>> I'm looking for a non- control specific way to do something on the UI
>> thread, but IupPostMessage needs a handle. Would it make sense for an
>> IupUser handle to support a POSTMESSAGE_CB for this purpose? When I pulled
>> the metadata for "user" class, It seems it doesn't support any callbacks
>> (just the attribute CLEARATTRIBUTES).
>>
>> Maybe there should be another way to run something on the UI loop's thread?
>>
>> Matt
>>
>>
>> _______________________________________________
>> Iup-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/iup-users
>
> _______________________________________________
> Iup-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users