Shordi   31-12-2022, 11:15
#4
No. Ese es el path por defecto. Puedes crear todos los archivos settings que desees así:

Código:
Private $tema as settings

public sub form_open()

 $tema = New Settings(mconf.ConfigPath &/ "Themes/" &/ Tema.Text & ".conf")
....
....
Public Sub bGuardar_Click()

  $tema["Theme/Font"] = Fuente.Value
  $tema["Theme/Foreground"] = Foreground.Value
  $tema["Theme/Background"] = Background.Value
  $tema["Theme/Forecolor"] = Forecolor.Value
  $tema["Theme/Backcolor"] = Backcolor.Value
  $tema["Theme/Bars"] = bars.Value
  $tema["Theme/BarsColor"] = barscolor.Value
  $tema["Theme/BarsBgColor"] = barsbgcolor.Value
  $tema["Theme/BgAnimated"] = BgAnimated.Value

  $tema.Save()

End

La línea del ejemplo está extraída del formulario fThemeEditor de mi proyecto gbAmp. La variable $tema no tiene por qué ser privada, claro, puede ser local o lo que quieras.

En este caso se crea un archivo llamado .config/gbAmp/Themes/<tema_elegido_en_pantalla>.conf" y la aplicación contiene tantos archivos .conf como temas haya creado el usuario.

Saludos.

No podemos regresar
  
Usuarios navegando en este tema: 1 invitado(s)
Powered By MyBB, © 2002-2025 MyBB Group.
Made with by Curves UI.