Placing a PNG as the background of a dialog

Placing a PNG as the background of a dialog

Postby Antonio Linares » Fri Mar 16, 2018 3:04 pm

Code: Select all  Expand view  RUN
#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
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Return to FiveTouch

Who is online

Users browsing this forum: No registered users and 3 guests