[lazarus] Weird context-menu popup in WinCE

2008-01-04 Thread John vd Waeter

Hi,

I had 4 menu-items on a wince-application under the RIGHT-side 
menu-button. After I inserted a 5th one between number 3 and 4, the now 
5th menu-item didn't work anymore. Its onclickcode didn't no longer get 
fired. Instead, a wince context-menu (a sort of New... submenu) with 
items like Appointment, Contact, Message etc pops up above the 
LEFT-side menu-button...


I added a sixth item, that worked OK. I deleted the fifth item, so that 
the sixth item became the fifth item. And there was that WinCE 
context-menu again!


Circumvented the problem by setting the 5th item to Invisible.

Could not find anything in the bugtracker about it, but I'm too new on 
WinCE to be sure it's a bug. Is it?


Using Lazarus 0.9.24

John

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


[lazarus] Howto connect an Onclick-event to an existing procedure?

2007-12-20 Thread John vd Waeter

Hi all,

I have several TUpDown buttons created at runtime.

I have a general event for the onclick:

procedure UpDownClick(Sender:TObject; Button:TUDBtnType)
begin
 ...
 DoMyStuff;
 ...
end;

Now at runtime I like to connect the updown.Onclick to this procedure:

With MyUpdown do
 begin
  Parent:= ...
  Top   := ...
  Left  := ...
  OnClick := UpDownClick;
 end;

But the last assignment gives me an error: Wrong number of parameters 
specified


This works ok in Delphi.

How to connect at runtime? I don't know parameters at designtime...

I am using 0.9.24 and target is WinCE

tia!
John


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


Re: [lazarus] Howto connect an Onclick-event to an existing procedure?

2007-12-20 Thread John vd Waeter

Like a charm! Thank you both!

kind regards,
John

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


Re: [lazarus] WinCE, howto open a networkpath?

2007-11-21 Thread John vd Waeter
Sorry if I go a little out of the topic... but WinCE is not discussed 
much here so I take the occasion to ask:

is there someway to manage the dialogs of WinCE?

I would need, for example, a way to force the keyboard to appear and 
disappear...


Sorry, didn't get that far yet, so I don't know.
However, since Lazarus is becoming more popular, I think the discussion
about WinCE will increase...

regards,
John



Thank you for the code about the networkpath, I also needed that.


Cheers,

Adrian.


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


Re: [lazarus] WinCE, howto open a networkpath?

2007-11-20 Thread John vd Waeter

Hi Adrian,

Thanks!

Looks just like the thing I need!

Do you know of a parameter I can set that hides the 
Connection-in-progress dialog that comes up?


kind regards,
John




if ConnMgrEstablishConnectionSync(ConnInfo, FConnection, 6,
 FStatus)  S_OK



Adrian Veith wrote:

Hi,

You have to to use the connection manager api from microsoft. I have 
translated some parts of it to object pascal (source is attached). The 
source is not well tested now, but it works for me. For a simple 
connection to the internet you can use the following code.


Cheers, Adrian.

var
   ConnInfo: CONNMGR_CONNECTIONINFO;

begin
   ZeroMemory(@ConnInfo, sizeof(ConnInfo));
   ConnInfo.cbSize:= sizeof(ConnInfo);
   ConnInfo.dwParams:= CONNMGR_PARAM_GUIDDESTNET;
   ConnInfo.dwPriority:= CONNMGR_PRIORITY_USERBACKGROUND ;
   ConnInfo.guidDestNet:= IID_DestNetInternet;

   if ConnMgrEstablishConnectionSync(ConnInfo, FConnection, 6, 
FStatus)  S_OK

   then
 raise Exception.Create('No connection');



John vd Waeter schrieb:

Hi all,

With the INet components, I managed to use a UDP-component to 
frequently ask an internetserver for some data.


However, no traffic is generated when the handheld is powered up. I 
first have to initiate internet explorer, ask for some trivial page 
and after that my application can continu its UDP traffic.


I guess starting IE opened a networkpath and takes care of obtaining 
an ipnr etc.


What do I have to call to ensure a networkpath (GPRS, WiFi, whatever 
is available) is opened the same way IE does?


tia!
John

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



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


[lazarus] WinCE, howto open a networkpath?

2007-11-19 Thread John vd Waeter

Hi all,

With the INet components, I managed to use a UDP-component to frequently 
ask an internetserver for some data.


However, no traffic is generated when the handheld is powered up. I 
first have to initiate internet explorer, ask for some trivial page and 
after that my application can continu its UDP traffic.


I guess starting IE opened a networkpath and takes care of obtaining an 
ipnr etc.


What do I have to call to ensure a networkpath (GPRS, WiFi, whatever is 
available) is opened the same way IE does?


tia!
John

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


[lazarus] crash on compiler-options

2007-10-05 Thread John vd Waeter

Hi all,

Beginner in Lazarus, experience in Delphi since 1.0

Installed snapshot 20071005 on winXP.

Open Compiler Options, click on tab Messages
A lot of jittering on the tab and then:
Unknow RT Error 202  OK to ignore, Cancel to kill.

Cancel kills the IDE, ignoring and trying again kills the IDE without 
asking.


Must be something simple I guess?

Kind regards,
John

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


Re: [lazarus] mailing list feedback with to large attachments.

2007-07-23 Thread John vd Waeter

Michael A. Hess wrote:

On Mon, 23 Jul 2007, Graeme Geldenhuys wrote:


On 23/07/07, hy-soft [EMAIL PROTECTED] wrote:


I received both


Thanks for confirming that.  What is the attachment limit on the
mailing list.  I'm not sure if it is 20k or 40k?


I believe it is set at 50K. I'll check and if it is different then that
I'll let you know.


Michael,
do you mind kicking the ass of the mailer at lazarus.freepascal.org as 
well? I can get it to send registration-password...


tia,
john

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


Re: [lazarus] Trouble registering on lazarus.freepascal.org

2007-07-18 Thread John vd Waeter

Hmm, anyone? Still no luck...

John


John vd Waeter wrote:

Marc Weustink wrote:

John vd Waeter wrote:


Hi all,

I try to register at lazarus.freepascal.org, but no emails with 
password are sent from the site.


Can anyone take a look at it?



Where did you try to register for ?

Mantis ?
Forum ?
Site ?

Marc


The forums.

John


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




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


[lazarus] Trouble registering on lazarus.freepascal.org

2007-07-17 Thread John vd Waeter

Hi all,

I try to register at lazarus.freepascal.org, but no emails with password 
are sent from the site.


Can anyone take a look at it?

tia!

John

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


Re: [lazarus] Trouble registering on lazarus.freepascal.org

2007-07-17 Thread John vd Waeter

Marc Weustink wrote:

John vd Waeter wrote:


Hi all,

I try to register at lazarus.freepascal.org, but no emails with 
password are sent from the site.


Can anyone take a look at it?



Where did you try to register for ?

Mantis ?
Forum ?
Site ?

Marc


The forums.

John


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


Re: [lazarus] avoiding multi-instance detection

2006-09-28 Thread John vd Waeter
Problem when program crashes. File is not deleted. Maybe refresh file 
every 5 minutes or so, put a timestamp in it. If timestamp older then 5 
minutes, program appearantly crashed, new instance may start.


John


Bogusław Brandys wrote:

Alejandro Lucas Baldres wrote:

My plataform i386 with Linux (ubuntu dapper 6.06), the future of 
program is free and opensource.

I want the program disallow more then one instance.



The simplest solution: let program check if /tmp/filename file exists 
and create it,then on exit delete.If file exists then instance is 
already running.

More complex would be using IPC (maybe others could describe)

Regards
Boguslaw

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





--
John vd Waeter
mailto:[EMAIL PROTECTED]
http://www.jvdw.nl
http://www.shotinthedark.nl

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