Re: [lazarus] Focus problem -- where is it handled in the lcl?

2006-05-19 Thread Tony Maro
Alexandre Leclerc wrote:
 2006/5/18, Mattias Gaertner [EMAIL PROTECTED]:
 On Thu, 18 May 2006 14:08:19 -0400
 Alexandre Leclerc [EMAIL PROTECTED] wrote:

  Ok, can someone point me where the focus events / mouse click events
  and all that low level stuff for visual components (including forms)
  are handled in the source files?

 TControl, TWinControl, TCustomForm and the widgetsets.

 Just a question like that... what must I understand by widgetsets? The
 buttons, panels, etc?

Alexandre, keep in mind that Lazarus is designed to be cross-platform. 
Each operating system handles focus a different way, and in Linux, each
window manager handles focus a different way making it even more
complex.  That's why it's separated from the actual component and in the
interfaces portion - to abstract the OS specific code from the typical
developer's code.

With Lazarus designed to compile the same code for Windows, Linux, OSX
and more, it's much more complex.

-Tony

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Focus problem -- where is it handled in the lcl?

2006-05-18 Thread Mattias Gaertner
On Thu, 18 May 2006 14:08:19 -0400
Alexandre Leclerc [EMAIL PROTECTED] wrote:

 Ok, can someone point me where the focus events / mouse click events
 and all that low level stuff for visual components (including forms)
 are handled in the source files?

TControl, TWinControl, TCustomForm and the widgetsets.

 
 I'd like to solve this issue so that it will potentielly:
 - solve my simple focus problem;
 - solve the form docking focus problem.



Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Focus problem -- where is it handled in the lcl?

2006-05-18 Thread Alexandre Leclerc

Ok, can someone point me where the focus events / mouse click events
and all that low level stuff for visual components (including forms)
are handled in the source files?

I'd like to solve this issue so that it will potentielly:
- solve my simple focus problem;
- solve the form docking focus problem.

Regards.

--
Alexandre Leclerc

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Focus problem -- where is it handled in the lcl?

2006-05-18 Thread Alexandre Leclerc

2006/5/18, Mattias Gaertner [EMAIL PROTECTED]:

On Thu, 18 May 2006 14:08:19 -0400
Alexandre Leclerc [EMAIL PROTECTED] wrote:

 Ok, can someone point me where the focus events / mouse click events
 and all that low level stuff for visual components (including forms)
 are handled in the source files?

TControl, TWinControl, TCustomForm and the widgetsets.


Just a question like that... what must I understand by widgetsets? The
buttons, panels, etc?

--
Alexandre Leclerc

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Focus problem -- where is it handled in the lcl?

2006-05-18 Thread Mattias Gaertner
On Thu, 18 May 2006 17:04:32 -0400
Alexandre Leclerc [EMAIL PROTECTED] wrote:

 2006/5/18, Mattias Gaertner [EMAIL PROTECTED]:
  On Thu, 18 May 2006 14:08:19 -0400
  Alexandre Leclerc [EMAIL PROTECTED] wrote:
 
   Ok, can someone point me where the focus events / mouse click events
   and all that low level stuff for visual components (including forms)
   are handled in the source files?
 
  TControl, TWinControl, TCustomForm and the widgetsets.
 
 Just a question like that... what must I understand by widgetsets? The
 buttons, panels, etc?

The directories lcl/interfaces/xxx.
Under windows it is normally win32. Under linux it is normally gtk.


Mattias
 

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Focus problem -- where is it handled in the lcl?

2006-05-18 Thread Alexandre Leclerc

2006/5/18, Mattias Gaertner [EMAIL PROTECTED]:

On Thu, 18 May 2006 17:04:32 -0400
Alexandre Leclerc [EMAIL PROTECTED] wrote:

 2006/5/18, Mattias Gaertner [EMAIL PROTECTED]:
  On Thu, 18 May 2006 14:08:19 -0400
  Alexandre Leclerc [EMAIL PROTECTED] wrote:
 
   Ok, can someone point me where the focus events / mouse click events
   and all that low level stuff for visual components (including forms)
   are handled in the source files?
 
  TControl, TWinControl, TCustomForm and the widgetsets.

 Just a question like that... what must I understand by widgetsets? The
 buttons, panels, etc?

The directories lcl/interfaces/xxx.
Under windows it is normally win32. Under linux it is normally gtk.


Ok, it is now clear for me (I believe). So I can understand the thing like that:

OS_WidgetSet --- LCL_Interfaces --- Standard_Controls

So the Standard_Controls is what is cross-plateform if there is an
LCL implementation of it and also what tends to be Delphi-Compatible.

--
Alexandre Leclerc

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Focus problem -- where is it handled in the lcl?

2006-05-18 Thread Mattias Gaertner
On Thu, 18 May 2006 18:03:51 -0400
Alexandre Leclerc [EMAIL PROTECTED] wrote:

 2006/5/18, Mattias Gaertner [EMAIL PROTECTED]:
  On Thu, 18 May 2006 17:04:32 -0400
  Alexandre Leclerc [EMAIL PROTECTED] wrote:
 
   2006/5/18, Mattias Gaertner [EMAIL PROTECTED]:
On Thu, 18 May 2006 14:08:19 -0400
Alexandre Leclerc [EMAIL PROTECTED] wrote:
   
 Ok, can someone point me where the focus events / mouse click
 events and all that low level stuff for visual components
 (including forms) are handled in the source files?
   
TControl, TWinControl, TCustomForm and the widgetsets.
  
   Just a question like that... what must I understand by widgetsets? The
   buttons, panels, etc?
 
  The directories lcl/interfaces/xxx.
  Under windows it is normally win32. Under linux it is normally gtk.
 
 Ok, it is now clear for me (I believe). So I can understand the thing like
 that:
 
 OS_WidgetSet --- LCL_Interfaces --- Standard_Controls
 
 So the Standard_Controls is what is cross-plateform if there is an
 LCL implementation of it and also what tends to be Delphi-Compatible.

Correct.

Mattias
 

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives