> Le 3 janv. 2017 à 20:14, Chip Scheide <[email protected]> a écrit :
>
> anyone have code already written to increase font size, move things
> around etc as the font size increases
> - at least for a list (ing/box)
> - great if it can include entry forms too
Hi Chip,
nothing to move objects (too complicated for my laziness), I just this for
listboxes:
$LBname_t:="myListbox"
$i_l:=OBJECT Get font size(*;$LBname_t)
If ($sourceObject_t="btDecrease")
$i_l:=$i_l-1
Else //button increase
$i_l:=$i_l+1
End if
If ($i_l>24)
$i_l:=24
End if
If ($i_l<7)
$i_l:=7
End if
OBJECT SET FONT SIZE(*;$LBname_t;$i_l)
Easy to apply to other objects in a form if you don't change positions (most of
the time, I consider that growing text size is enough).
This is for buttons with use usual shortcuts (cmd +, cmd -), but another UI
tool I like is a ruler because you just have to roll mouse wheel over it to
increase/decrease text:
<http://www.screencast.com/users/arnaud.demontard/folders/Jing/media/f9c4cbea-50d2-4d51-88b8-9d5b963659c3>
For complicated, you may take a look at Cannon's "GUIAnchor Module" demo here:
<http://www.synergyfarmsolutions.com/styled/index.html>
--
Arnaud de Montard
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************