How ı can change project background on preload event code ?
( For example : Inifile....... [Dat] Image = C:\1.bmp )
how ı set it ?
( For example : Inifile....... [Dat] Image = C:\1.bmp )
how ı set it ?
-- Test for error error = Application.GetLastError(); if (error ~= 0) then Dialog.Message("Error", _tblErrorMessages[error], MB_OK, MB_ICONEXCLAMATION); end
function ChangeBackground () -- Get back the current page curpage = Application.GetCurrentPage(); -- Get Back Background Info result = INIFile.GetValue (_SourceFolder .. "\\AutoPlay\\setup.ini", "Main", "Background"); if result ~= "" then -- Create a table containing the properties to set for the page. tbPageProperties = {}; tbPageProperties.BackgroundType = BG_IMAGE; tbPageProperties.ImageFilename = result; tbPageProperties.ImageStretchMode = BG_IMG_FITPAGE; [COLOR="Red"]tbPageProperties.BackgroundType = BG_IMAGE;[/COLOR] -- Set the page's properties. Application.SetPageProperties(curpage, tbPageProperties); end end
Comment