[Gambas-user] What replaces Desktop.Scale in gambas3?

Fabien Bodard gambas.fr at ...626...
Sun Sep 25 18:53:53 CEST 2011


2011/9/25 Bruce Bruen <bbruen at ...2308...>:
> I'm trying to set a gridview column width to the maximum length of the
> strings in the column.  I can find the maximum width in terms of the
> length of the string easily but what do I multiply that by to get the
> desired cloumn width?
> I have searched through the wiki but I just cant seem to find what
> replaces Desktop.Scale?
why don't you use fontsize ?

iWidth = GridView1.Font.TextWidth(iMaxLetters)

> tia
> Bruce
> ------------------------------------------------------------------------------
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2dcopy2
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



-- 
Fabien Bodard




More information about the User mailing list