IUP does not set that style. Can't remember now why we didn't do it. But
probably because it does not behave as expected or does not have an
equivalent in GTK.

Em sáb., 29 de jul. de 2023 às 10:19, Johann ''Myrkraverk'' Oskarsson via
Iup-users <iup-users@lists.sourceforge.net> escreveu:

> Dear IUP Users,
>
> How is one supposed to give IupButton a visual cue that it's the default
> button?  Just using
>
>    IupSetAttributeHandle( dialog, "DEFAULTENTER", button ) ;
>
> does not do this, and I found no reference to this in the attributes of
> the IupButton object itself.  So I ended up using a MAP_CB which does
> the following.
>
>    HWND wnd = IupGetAttribute( handle, "WID" ) ;
>    if ( wnd ) {
>        SendMessage( wnd, BM_SETSTYLE, BS_DEFPUSHBUTTON, TRUE ) ;
>    }
>
> This works well enough, but I was expecting something more obvious in
> the IUP toolkit itself.
>
>
> Best,
> Johann
>
>
> _______________________________________________
> 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

Reply via email to