Hi All,
This is a rough mock-up of a TForm that I need to create at runtime
only.
+------------------------------------------+
| Form caption |
+------------------------------------------+
|+------------------+S+-------------------+|
|| |P| ||
|| |L| ||
|| Memo1 |I| ||
|| (TMemo) |T| Image1 ||
|| |T| (TImage) ||
|| |E| ||
|| |R| ||
|| ||| ||
|+------------------+|| ||
|+--------++--------+|| ||
|| OK || Cancel ||| ||
|+--------++--------+|+-------------------+|
+--------------------+---------------------+
It contains a TSplitter (??? I have never used one of these before)
vertically down the middle of the form.
On the left of the TSplitter there is a TMemo and below it 2 TButtons:
OK_button (with modal result of mrOK), and Cancel_button (with a modal
result of mrCancel). To the right of the the TSplitter I want a TImage.
I need some sample code to create this at runtime only.
Questions:
1) Does the Memo1, OK_Button and Cancel TButton need to be in a
TGroupBox???
2) Also, should the TImage be in a TGroupBox???
Note: The Image1 will be loaded with an image passed as Image_filename
(string). It may be: JPEG, GIF or PNG and the size (width and height)
will vary... so you will need to read that from the file. Is this
possible and are these image formats supported by Timage?
The idea of this form is that the user can resize the form and the TMemo
and TImage will dynamically resize as the user adjusts the form's size
properties.
Best Regards,
PEW
Hobart, Tasmania, Australia
--
Proudly developing Quality Cross Platform Open Source Games
Since 1970 with a Commodore PET 4016 with 16 KRAM
http://pews-freeware-games.org (<--- brand new)
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus