Form code lazarus / 10-Designer ---------------------------------------------------------------------- StVer · 2014-04-28 15:16 i'm used to using Simba to make programs. But since it's using pascal as language i would like to use pascal in newer programs. In simba if you make a form using the form editor then the code for the form is entered in the source code to. Is this possible in Lazarus to? Cause i like to alter diminsions/positions depending on the form size, but there for i need the written form code. ---------------------------------------------------------------------- Bart · 2014-04-28 15:42 No you don't need that. Use Lazarus (freepascal is the compiler, Lazarus the RAD IDE) for your formdesign. Given that the code for positoining is dependent on your form size (and you'll have to write the algorithm for that at least once, even in Simba), just do all this in one procedure and then call that procedure when the final (?) dimensions of the form are know at runtime. (or at every resize of the form in it's OnResize event). Alternatively you can se fpGUI and it's form designer. AFAIK this doesn't use lfm but builds the form from code. Bart ---------------------------------------------------------------------- Leledumbo · 2014-04-28 15:52 Just alter them at OnCreate. I personally won't use code for this, anchors & autosizing can do it better without the need for code, just fill in properties with correct values. As a bonus, it will work across widgetsets and platforms.