Mr. Rao, THanks a lot for your suggestion. After line 2 I got an error : "Invalid image". Another problem: in the first line there are nNewHeight and nNewWitdth. But I need to know the height and width of the original image first. Then I have to calculate the new value by adding a percentage. ...
... lado quisiera que el combo aparezca exactamente del mismo tamaño que los get. He probado con HEIGHTGET , SELHEIGHT, oCbx:nSelectionHeight := <nNewHeight> y no funciona. Lo he logrado reducir cambiando el tamaño de la fuente del control (oCbx:SetFont(oFontCbx) ) pero creo que debería haber ...
... oScroll := TScrWnd():New(oDlg, 1, nDlgH, 1, nDlgW) // Dialog-size In Relation to the Image-size, I used a Factor to adjust the Thumb-pos like : If nNewHeight >= 760 .or. nNewWidth >= 760 // image-size oScroll:SetScroll( 1, 9 , 1, 12 ) Endif This sample shows the Thumb on Image-bottom. Because ...
bmpResized := ResizeBmp( hOldBmp, nNewWidth, nNewHeight ) Maybe a possible solution, to use StretchBlt() for the new Brush-functions in FWH-9.06, to get the Image-Brush adjusted to the Dialog ??? The ResizeBmp function internally uses StretchBlt(). ...