Cambios necesarios para que no haya problemas con windows 7
git-svn-id: https://192.168.0.254/svn/Proyectos.LuisLeon_FactuGES2/trunk@167 b2cfbe5a-eba1-4a0c-8b32-7feea0a119f2
This commit is contained in:
parent
a52a393fb7
commit
bfcbaf80c9
BIN
Resources/logo-keiblair2.jpg
Normal file
BIN
Resources/logo-keiblair2.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 37 KiB |
BIN
Resources/logo-luisleon.jpg
Normal file
BIN
Resources/logo-luisleon.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
@ -63,25 +63,26 @@ end;
|
|||||||
|
|
||||||
procedure TdmBase.IniciarLog;
|
procedure TdmBase.IniciarLog;
|
||||||
var
|
var
|
||||||
AIniFile : String;
|
ALogFileName : String;
|
||||||
begin
|
begin
|
||||||
inherited;
|
inherited;
|
||||||
FEscribirLog := TCriticalSection.Create;
|
FEscribirLog := TCriticalSection.Create;
|
||||||
|
|
||||||
AIniFile := GetSpecialFolderPath(CSIDL_LOCAL_APPDATA); //[All Users]\Application Data
|
ALogFileName := GetSpecialFolderPath(CSIDL_APPDATA); //[Current Users]\Application Data
|
||||||
AIniFile := AIniFile + PathDelim + GetAppName + PathDelim;
|
ALogFileName := ALogFileName + PathDelim + 'Rodax Software' + PathDelim + 'FactuGES' + PathDelim;
|
||||||
|
|
||||||
if not DirectoryExists(AIniFile) then
|
if SysUtils.ForceDirectories(ALogFileName) then
|
||||||
CreateDir(AIniFile);
|
begin
|
||||||
|
JvLogFile.Active := False;
|
||||||
JvLogFile.Active := False;
|
JvLogFile.FileName := ALogFileName + 'ClientLog.txt';
|
||||||
JvLogFile.FileName := AIniFile + 'ClientLog.txt';
|
JvLogFile.AutoSave := True;
|
||||||
JvLogFile.AutoSave := True;
|
JvLogFile.Active := True;
|
||||||
JvLogFile.Active := True;
|
JvLogFile.Clear;
|
||||||
JvLogFile.Clear;
|
end
|
||||||
|
else
|
||||||
|
raise Exception.Create('Error al crear directorio para Log: ' + IntToStr(GetLastError));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
procedure TdmBase.InitStyleManager;
|
procedure TdmBase.InitStyleManager;
|
||||||
begin
|
begin
|
||||||
if not USE_THEMES then
|
if not USE_THEMES then
|
||||||
@ -138,8 +139,6 @@ end;
|
|||||||
|
|
||||||
procedure TdmBase.EscribirLog(const AMensaje: String);
|
procedure TdmBase.EscribirLog(const AMensaje: String);
|
||||||
begin
|
begin
|
||||||
// dxPrintStyleManager1Style1.PrinterPage.PageFooter.LeftTitle.Add(FEmpresaInformesBase);
|
|
||||||
|
|
||||||
FEscribirLog.Acquire;
|
FEscribirLog.Acquire;
|
||||||
try
|
try
|
||||||
JvLogFile.Add(AMensaje);
|
JvLogFile.Add(AMensaje);
|
||||||
|
|||||||
@ -515,16 +515,8 @@ object fPantallaPrincipal: TfPantallaPrincipal
|
|||||||
Left = 160
|
Left = 160
|
||||||
Top = 182
|
Top = 182
|
||||||
end
|
end
|
||||||
object HostMenu: TJvMainMenu
|
object HostMenu: TMainMenu
|
||||||
Images = ModulesSmallImageList
|
Images = ModulesSmallImageList
|
||||||
Style = msItemPainter
|
|
||||||
ImageMargin.Left = 0
|
|
||||||
ImageMargin.Top = 0
|
|
||||||
ImageMargin.Right = 0
|
|
||||||
ImageMargin.Bottom = 0
|
|
||||||
ImageSize.Height = 0
|
|
||||||
ImageSize.Width = 0
|
|
||||||
ItemPainter = JvXPMenuItemPainter1
|
|
||||||
Left = 248
|
Left = 248
|
||||||
Top = 168
|
Top = 168
|
||||||
object Archivo2_OLD: TMenuItem
|
object Archivo2_OLD: TMenuItem
|
||||||
@ -673,12 +665,6 @@ object fPantallaPrincipal: TfPantallaPrincipal
|
|||||||
Action = actMenuInformes
|
Action = actMenuInformes
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
object JvXPMenuItemPainter1: TJvXPMenuItemPainter
|
|
||||||
SelectionFrameBrush.Color = 13811126
|
|
||||||
SelectionFramePen.Color = 6956042
|
|
||||||
Left = 288
|
|
||||||
Top = 168
|
|
||||||
end
|
|
||||||
object StatusPanelImageList: TPngImageList
|
object StatusPanelImageList: TPngImageList
|
||||||
PngImages = <
|
PngImages = <
|
||||||
item
|
item
|
||||||
|
|||||||
@ -39,8 +39,7 @@ type
|
|||||||
actConexion: TAction;
|
actConexion: TAction;
|
||||||
actAcerca: TAction;
|
actAcerca: TAction;
|
||||||
pnlBorde: TJvXPContainer;
|
pnlBorde: TJvXPContainer;
|
||||||
HostMenu: TJvMainMenu;
|
HostMenu: TMainMenu;
|
||||||
JvXPMenuItemPainter1: TJvXPMenuItemPainter;
|
|
||||||
Archivo2_OLD: TMenuItem;
|
Archivo2_OLD: TMenuItem;
|
||||||
Ayuda2_OLD: TMenuItem;
|
Ayuda2_OLD: TMenuItem;
|
||||||
Cambiarmicontrasea2_OLD: TMenuItem;
|
Cambiarmicontrasea2_OLD: TMenuItem;
|
||||||
|
|||||||
@ -435,7 +435,7 @@ begin
|
|||||||
if Assigned(_FocusedView) then
|
if Assigned(_FocusedView) then
|
||||||
begin
|
begin
|
||||||
|
|
||||||
AIniFile := GetSpecialFolderPath(CSIDL_COMMON_APPDATA); //[All Users]\Application Data
|
AIniFile := GetSpecialFolderPath(CSIDL_APPDATA); //[All Users]\Application Data
|
||||||
AIniFile := AIniFile + PathDelim + 'Rodax Software' + PathDelim + GetAppName + PathDelim;
|
AIniFile := AIniFile + PathDelim + 'Rodax Software' + PathDelim + GetAppName + PathDelim;
|
||||||
|
|
||||||
if not DirectoryExists(AIniFile) then
|
if not DirectoryExists(AIniFile) then
|
||||||
@ -458,7 +458,7 @@ begin
|
|||||||
if Assigned(_FocusedView) then
|
if Assigned(_FocusedView) then
|
||||||
begin
|
begin
|
||||||
|
|
||||||
AIniFile := GetSpecialFolderPath(CSIDL_COMMON_APPDATA); //[All Users]\Application Data
|
AIniFile := GetSpecialFolderPath(CSIDL_APPDATA); //[All Users]\Application Data
|
||||||
AIniFile := AIniFile + PathDelim + 'Rodax Software' + PathDelim + GetAppName + PathDelim;
|
AIniFile := AIniFile + PathDelim + 'Rodax Software' + PathDelim + GetAppName + PathDelim;
|
||||||
|
|
||||||
if not DirectoryExists(AIniFile) then
|
if not DirectoryExists(AIniFile) then
|
||||||
|
|||||||
Reference in New Issue
Block a user