[Gambas-user] Problems generating a form
norarg
norarg at ...2311...
Thu Jan 7 23:34:53 CET 2010
Hi,
let me see if I have understood this right:
the values of the items in the .form are core, and recalculated in pixel
when the form is loaded into the IDE.
here an example:
{ Label1 Label
MoveScaled(2,2,10,4)
Text = ("Label1")
}
when loaded,
x=14
y=14
width=70
height=28
should be an easy task ... I thought.
when loading the form, the height value is increased, I generated this
with (2,8,22,2)
{ lbl_BUD_datum Label
MoveScaled(2,8,22,3)
Text = ("Datum ")
Alignment = Align.Right
Border = Border.Raised
}
why, is not at all clear to me.
I have also tried with 1 instead of 2, then it makes 14 pix out of it.
the function calculates the height of the label plus a distance between
them (1), to get a new top (y). the y-value is not influenced, so the
labels are ovelapping each other: means: the new y-value is correct,
while the height is too high. I could write a workaround, still I would
like to know what happens here - in case I change the parameters I could
be forced to write another workaround - don't know.
as info: I write this generator because I have a real lot of forms to
create, and data are all coming from mySql, so the behavior and
functions are always the same: select record from a tableview, show the
details in a data-panel, and have core-functions like new, copy, save,
delete, print.
if someone has an idea here, I will be grateful to here it.
thanks and regards,
norarg
More information about the User
mailing list