Hi,

  In iupgtk_button.c, try adding pixels to the border estimation:

void iupdrvButtonAddBorders(int *x, int *y)
{
  /* LAYOUT_DECORATION_ESTIMATE */
#ifdef WIN32
  int border_size = 2*5;
#else
#ifdef HILDON
  int border_size = 2*7+1; /* borders are not symmetric */
#else
  int border_size = 2*5+1; /* borders are not symmetric */
#endif
#endif
  (*x) += border_size;
  (*y) += border_size;
}

  Ultimately we will need an ifdef for Raspbian.

Best,
Scuri


On Thu, Jan 14, 2016 at 10:27 PM, Antonio Scuri <[email protected]>
wrote:

>   Ok Thanks. I think we can easily fix that. Just give me a couple of days.
>
> Best,
> Scuri
> Em 14/01/2016 22:05, "Eric Wing" <[email protected]> escreveu:
>
>> On 1/14/16, Antonio Scuri <[email protected]> wrote:
>> >   IUP internally has an estimate of the button border space, so it can
>> > compute the button size from inside out. Maybe in your GTK3 system these
>> > minimum borders are larger than IUP estimate. So the result layout where
>> > the buttons sizes failure.
>> >
>> >   Can you compile the "sample.c" test from the examples (and send the
>> > screenshot)? It will include several other controls and I can compare
>> with
>> > the results I have here, so I can make sure only buttons suffer that
>> > problem. Then the next step is to fix the estimate for that system
>> somehow.
>> >
>> > Best,
>> > Scuri
>> >
>>
>> Here is the screenshot of sample.c
>> http://playcontrol.net/tempdownload/iup_screens_pi/iup_gtk3_sample.png
>>
>> Thanks,
>> Eric
>>
>>
>> ------------------------------------------------------------------------------
>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>> Monitor end-to-end web transactions and take corrective actions now
>> Troubleshoot faster and improve end-user experience. Signup Now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
>> _______________________________________________
>> Iup-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>
>>
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to