Hi everyone,
I've picked up Lazarus from time to time and been distracted by the bling of other languages but I've finally realised that this is where I should be spending my time now that I have a project to concentrate on.
I did a lot of work with RapidQ, a language built on Delphi (so, not a million miles away from Lazarus) and, to an extent, I've been spoiled by it.
So I have to ask a beginner's question which may seem really dumb:
How do you resize a TImage component, in code, so that not only the control changes bounds but the image inside resizes to fill the new boundsl?I have a banner image I want at the top of the screen. To ensure it resizes no matter what the client width of the parent form, I'm using an onShow handler for the form in which I set the width of the image to the client width of the form. The image
control width does change but I cannot get the actual picture content to fill it. It stubbornly sits at 0,0 in its original size when I know that the control has resized.
I've tried every combination I can think of in the object inspector to make the content stretch, but no deal.
Can someone give me a hint? It's hugely frustrating.
Thanks in advance.