[lazarus] Some remarks and CVS Changes

Marc Weustink weus at quicknet.nl
Sun Jul 30 19:50:24 EDT 2000


HI,

First a general note on editing:
Please check if your editor saves tabs as spaces or *don't* use tabs in 
your code. Not all editors use the same tabspacing. This can result in very 
jumpy and unreadable code. Thanks.

Note on debugging:
If you want to add debug code better use make you_name_it OPT=-g instead of 
export DEBUG=1. The latter enables also some unwanted checks which results 
into a crashing IDE


Some changes:

  = Moved ObjectToGTKObject to GTKProc unit

  * Fixed array checking in LoadPixmap
     If you use export DEBUG=1 for debugging, rangechecking is
     also enabled. Declaring a "dynamic" arraypointer as array[0..0]
     triggers this check for elements > 0  :-)

  + Moved LM_SETENABLED to API func EnableWindow and EnableMenuItem
     Solved some problems in widows being created to early
     (and is more generic). The EnableMenuItem needs to be finished

  + Added TWinControl.CMEnabledChanged
     Enabled the windw through API if the handle is created

  + Added Default enabled in TControl.Create
     Wasn't set so all components got created disabled

  - Removed the hwnd/drawable asignment in CreateCompatibleDC
     After rereading the dox this is more compatible

Marc






More information about the Lazarus mailing list