[Gambas-user] Print, Resolution, Units

2010-11-09 Thread Gregor Burck
Hi, when I want to print the units for draw were dots, for the gui I want to use milimeter. So I create a function public function mmToDots(mm as integer, resolution as integer) as integer return Round(mm / 25.4 * resolution) end And draw e.g. a line with

Re: [Gambas-user] Print, Resolution, Units

2010-11-09 Thread Fabien Bodard
2010/11/9 Gregor Burck gre...@aeppelbroe.de: Hi, when I want to print the units for draw were dots, for the gui I want to use milimeter. So I create a function public function mmToDots(mm as integer, resolution as integer) as integer  return Round(mm / 25.4 * resolution) end And draw

Re: [Gambas-user] Print, Resolution, Units

2010-11-09 Thread Benoît Minisini
2010/11/9 Gregor Burck gre...@aeppelbroe.de: Hi, when I want to print the units for draw were dots, for the gui I want to use milimeter. So I create a function public function mmToDots(mm as integer, resolution as integer) as integer return Round(mm / 25.4 * resolution) end

Re: [Gambas-user] Print, Resolution, Units

2010-11-09 Thread Doriano Blengino
Fabien Bodard ha scritto: 2010/11/9 Gregor Burck gre...@aeppelbroe.de: Hi, when I want to print the units for draw were dots, for the gui I want to use milimeter. So I create a function public function mmToDots(mm as integer, resolution as integer) as integer return Round(mm / 25.4

Re: [Gambas-user] Print, Resolution, Units

2010-11-09 Thread Fabien Bodard
2010/11/9 Doriano Blengino doriano.bleng...@fastwebnet.it: Fabien Bodard ha scritto: 2010/11/9 Gregor Burck gre...@aeppelbroe.de: Hi, when I want to print the units for draw were dots, for the gui I want to use milimeter. So I create a function public function mmToDots(mm as integer,