Recent

Author Topic: changing focus on a form  (Read 23113 times)

bayparinc

  • New Member
  • *
  • Posts: 16
Re: changing focus on a form
« Reply #15 on: July 01, 2009, 08:58:45 am »
I was able to solve the issue by converting the sendkey32.pas which work in delphi.  My issue now is when i compile in linux, it looks for windows.pp.  Does that mean my program only works for windows? Or is there a cross platform windows.pp equivalent?

Thanks for your patience, leledumbo and vincent:-)

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: changing focus on a form
« Reply #16 on: July 01, 2009, 09:04:04 am »
There is no cross platform equivalent for windows.pp.

Some functions in the windows unit can be found in the lclintf unit.

As a cross platform alternative of the sendkey32 unit, you may want to look at http://wiki.lazarus.freepascal.org/MouseAndKeyInput

bayparinc

  • New Member
  • *
  • Posts: 16
Re: changing focus on a form
« Reply #17 on: July 01, 2009, 09:15:47 am »
Thanks vincent, i'll give it a try.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8835
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: changing focus on a form
« Reply #18 on: July 01, 2009, 10:00:38 am »
Quote
I guess Leledumbo meant:
Whoops! Forgot the casts, thanks Vincent (I was thinking of using as operator actually).

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: changing focus on a form
« Reply #19 on: July 01, 2009, 11:06:49 am »
If you just tested with "is", using "as" is a waste of resources, IMHO. :)

 

TinyPortal © 2005-2018