[Gambas-user] Form size on target computer

Gaël Le Hec'H gael.le-hech at ...357...
Thu Jun 29 09:15:23 CEST 2006


Ron Onstenk a écrit :
> On Wednesday 28 June 2006 18:39, Gaël Le Hec'H wrote:
>   
>> Hi,
>> I program an application with gambas 1.9.32 on a computer with a screen 
>> resolution of 1920 x 1200, the target computer 's got a screen 
>> resolution of 800x600 so all my forms are 800x600 but when the 
>> application execute on the target computer the forms are 509 x 381.
>> except making all my forms 1257x942, any idea ?
>>
>> Gaël Le Hec'H.
>>
>>     
> I think no other way.
> Forms are created and saved with MoveScale()
> The factors used result in your calculation.
> The only way, and I hope Benoit will consider it to implement, 
> is a option in the project file to use MoveScale() or Move().
> This Scale option should prevent all <xxxx>Scale() and use the
> non scaling <xxxx>() methods.
> His idea is not bad but it is not alway wanted.
> I will get the same problem with my project later.
>
> The only tip I can give is using Kate/Kedit and change it
> in the xyz.form before making the executable.
> Do not forget you MAY NOT edit the forms in the IDE or
> must manual edit again.
> I hope the still available Move(x,y) still works in the form. 
>
> Ron
>
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>   
thank you for the tip but in practice, what number do I put in place of 
72.7273 and 54.5455  to obtain a 800x600 form ?

# Gambas Form File 1.0

{ frmRecette Form
  MoveScaled(0,0,72.7273,54.5455)
  'Move(0,0,800,600)
  Text = ("")
  Border = Window.Fixed
  { lstRe7 ListBox
    MoveScaled(1,1,71,47)
    'Move(11,11,781,517)
  }






More information about the User mailing list