To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 9982
9981  |  9983
Subject: 
Re: MPD Wizard 1.0b
Newsgroups: 
lugnet.cad.dev
Date: 
Tue, 28 Dec 2004 02:42:42 GMT
Viewed: 
2142 times
  
In lugnet.cad.dev, Anders Isaksson wrote:
Orion Pobursky wrote:

I'm curious, did I fix the decimal separator issue?

Not entirely. The program may still do wrong when the Windows settings are
changed while the program is running. I recommend the following at the end
of Main.pas (not in FormActivate):

...

initialization
  Application.UpdateFormatSettings := False;
  DecimalSeparator := '.';
finalization
//nothing
end.

Cool, thanks.  I've been programming in Delphi for 3 years now but my knowledge
is all self taught and I learn something new just about everytime I set down to
code.

I'd also recommend moving the rest of the contents of FormActivate to
FormCreate (or do you have a need to reload the .ini-file each time you main
window activates?).

It was in FormCreate, I forget why I moved it.  I think I'll move it back.

BTW, which version of Delphi (and JVCL) are you using?

Delphi 7, JVCL 3.0b

-Orion



Message is in Reply To:
  Re: MPD Wizard 1.0b
 
(...) Not entirely. The program may still do wrong when the Windows settings are changed while the program is running. I recommend the following at the end of Main.pas (not in FormActivate): ... initialization Application.UpdateFo...atSettings := (...) (20 years ago, 27-Dec-04, to lugnet.cad.dev)

17 Messages in This Thread:





Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR