Re: [Iup-users] IUP weird issues (DirectX)

2020-08-03 Thread Ranier Vilela
>  But IupMatrix also exports its own callbacks. For instance, you can use the 
> CLICK_CB or RELEASE_CB callbacks to >implement a popup menu.
Ok, many thanks.

regards,
Ranier Vilela


Em seg., 3 de ago. de 2020 às 13:47, Ranier Vilela 
mailto:ranier_...@hotmail.com>> escreveu:
Hi Scuri,

The are some new issues with IUP.

1. With 2DDirectX enabled  (with theme manifest actived)
DatePick control not is drawed with same height of IupText.
Must be fixed by set SIZE to "200x11", by example.

2. With 2DDirectX enabled (with theme manifest actived)
(a) Size Windows, not the same with GDI sizes.
(b) When set with:
IupSetAttribute(dlg, "PLACEMENT", "MAXIMIZED");
But, when restore with:
IupSetAttribute(dlg, "PLACEMENT", "NORMAL");
windows size is totally wrong (too smal).

3. IupMatrix BUTTON_CB, is exported?
To implement PopUp menu context, need this:

IupSetCallback(mat, "__OLD_BUTTON_CB", (Icallback) IupGetCallback(mat, 
"BUTTON_CB"));
IupSetCallback(mat, "BUTTON_CB", (Icallback) iup_popupmenu_button_cb);

To call original action BUTTON_CB.
What is different from traditional callbacks?

regards,
Ranier Vilela

___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] IUP weird issues (DirectX)

2020-08-03 Thread Antonio Scuri
1 and 2) Sorry I couldn't reproduce your problem here. Using Direct2D for
IupDraw does not affect the rest of the IUP elements, only the elements
that are draw like IupFlat*.

  Anyway, IupDatePick does not have the same height as IupText.

Best,
Scuri



Em seg., 3 de ago. de 2020 às 18:16, Antonio Scuri 
escreveu:

> 3. IupMatrix BUTTON_CB, is exported?
> To implement PopUp menu context, need this:
> IupSetCallback(mat, "__OLD_BUTTON_CB", (Icallback) IupGetCallback(mat,
> "BUTTON_CB"));
> IupSetCallback(mat, "BUTTON_CB", (Icallback) iup_popupmenu_button_cb);
> To call original action BUTTON_CB.
> What is different from traditional callbacks?
>
>   IupMatrix inherits from IupCanvas, but it uses several IupCanvas
> callbacks. So to use an already used callback you have to do that.
>
>   But IupMatrix also exports its own callbacks. For instance, you can use
> the CLICK_CB or RELEASE_CB callbacks to implement a popup menu.
>
> Best,
> Scuri
>
>
>
>
> Em seg., 3 de ago. de 2020 às 13:47, Ranier Vilela 
> escreveu:
>
>> Hi Scuri,
>>
>> The are some new issues with IUP.
>>
>> 1. With 2DDirectX enabled  (with theme manifest actived)
>> DatePick control not is drawed with same height of IupText.
>> Must be fixed by set SIZE to "200x11", by example.
>>
>> 2. With 2DDirectX enabled (with theme manifest actived)
>> (a) Size Windows, not the same with GDI sizes.
>> (b) When set with:
>> IupSetAttribute(dlg, "PLACEMENT", "MAXIMIZED");
>> But, when restore with:
>> IupSetAttribute(dlg, "PLACEMENT", "NORMAL");
>> windows size is totally wrong (too smal).
>>
>> 3. IupMatrix BUTTON_CB, is exported?
>> To implement PopUp menu context, need this:
>>
>> IupSetCallback(mat, "__OLD_BUTTON_CB", (Icallback)
>> IupGetCallback(mat, "BUTTON_CB"));
>> IupSetCallback(mat, "BUTTON_CB", (Icallback) iup_popupmenu_button_cb);
>>
>> To call original action BUTTON_CB.
>> What is different from traditional callbacks?
>>
>> regards,
>> Ranier Vilela
>>
>> ___
>> Iup-users mailing list
>> Iup-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>
>
___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] IUP weird issues (DirectX)

2020-08-03 Thread Antonio Scuri
3. IupMatrix BUTTON_CB, is exported?
To implement PopUp menu context, need this:
IupSetCallback(mat, "__OLD_BUTTON_CB", (Icallback) IupGetCallback(mat,
"BUTTON_CB"));
IupSetCallback(mat, "BUTTON_CB", (Icallback) iup_popupmenu_button_cb);
To call original action BUTTON_CB.
What is different from traditional callbacks?

  IupMatrix inherits from IupCanvas, but it uses several IupCanvas
callbacks. So to use an already used callback you have to do that.

  But IupMatrix also exports its own callbacks. For instance, you can use
the CLICK_CB or RELEASE_CB callbacks to implement a popup menu.

Best,
Scuri




Em seg., 3 de ago. de 2020 às 13:47, Ranier Vilela 
escreveu:

> Hi Scuri,
>
> The are some new issues with IUP.
>
> 1. With 2DDirectX enabled  (with theme manifest actived)
> DatePick control not is drawed with same height of IupText.
> Must be fixed by set SIZE to "200x11", by example.
>
> 2. With 2DDirectX enabled (with theme manifest actived)
> (a) Size Windows, not the same with GDI sizes.
> (b) When set with:
> IupSetAttribute(dlg, "PLACEMENT", "MAXIMIZED");
> But, when restore with:
> IupSetAttribute(dlg, "PLACEMENT", "NORMAL");
> windows size is totally wrong (too smal).
>
> 3. IupMatrix BUTTON_CB, is exported?
> To implement PopUp menu context, need this:
>
> IupSetCallback(mat, "__OLD_BUTTON_CB", (Icallback) IupGetCallback(mat,
> "BUTTON_CB"));
> IupSetCallback(mat, "BUTTON_CB", (Icallback) iup_popupmenu_button_cb);
>
> To call original action BUTTON_CB.
> What is different from traditional callbacks?
>
> regards,
> Ranier Vilela
>
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users