FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveTouch Placing a PNG as the background of a dialog
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Placing a PNG as the background of a dialog
Posted: Fri Mar 16, 2018 03:04 PM
Code (fw): Select all Collapse
#include "FiveTouch.ch"

function Main()

   local oDlg, oLabel

   DEFINE DIALOG oDlg ;
      SIZE ScreenWidth(), ScreenHeight()

   oLabel = QLabel( oDlg )
   oLabel:Move( 0, 0 )
   oLabel:Resize( ScreenWidth(), ScreenHeight() )
   oLabel:SetPixmap( QPixmap( DownloadLocation() + "\autobus.png" ):Scaled( ScreenWidth(), ScreenHeight() ) )

   ACTIVATE DIALOG oDlg

return nil
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion