Re: [MSEide-MSEgui-talk] drag and drop data, how?

2012-10-24 Thread Martin Schreiber
On Tuesday 23 October 2012 19:42:16 Alexandre Minoshi wrote:
 Hello, Martin!

 How i can use drag and drop?

 For example drag data from one stringgrid and drop to second stringgrid?

An example is here:
https://gitorious.org/mseuniverse/mseuniverse/trees/master/attic/msedocumenting/mse/trunk/help/tutorials/widgets/grids/dragdropgrid

Martin

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] FreePascal.Ru: analog of (Delphi's) OnDropFiles

2012-10-24 Thread Martin Schreiber
On Tuesday 23 October 2012 19:47:57 Alexandre Minoshi wrote:
 23.10.2012 15:03, Martin Schreiber пишет:
  On Tuesday 23 October 2012 09:40:04 IvankoB wrote:
  Q: how ?
 
  What does it?
 
  Martin

 It was my question :)

 In lazarus form have event onDropFiles (Tform.OnDropFiles). This event
 is generated when files are dragging from another source, for example,
 from file manager

 http://wiki.lazarus.freepascal.org/Drop_files_event#Related_bug_reports.

 How drop files on form in MSE?

Not implemented yet. Is there a protocoll defined from freedesktop.org for the 
purpose?

Martin

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSEi18n doesn't compile

2012-10-24 Thread Martin Schreiber
On Wednesday 24 October 2012 06:20:05 IvankoB wrote:
 Compiling tools\i18n\project_mfm.pas
 Compiling .\lib\common\designutils\msesettings.pas
 Compiling .\lib\common\designutils\msesettings_mfm.pas
 Compiling .\lib\common\dialogs\mseshortcutdialog.pas
 Compiling .\lib\common\dialogs\mseshortcutdialog_mfm.pas
 project.pas(131,29) Error: Identifier not found expandmacros
 project.pas(159) Fatal: There were 1 errors compiling module, stopping
 Fatal: Compilation aborted
 Error: C:\FPC\2.6.0\bin\i386-Win32\ppc386.exe returned an error exitcode
 (normal if you did not specify a source file to be compiled)

Fixed.

Martin

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Running unattended

2012-10-24 Thread Martin Schreiber
On Tuesday 23 October 2012 17:57:45 Sieghard wrote:
 Hello Martin,

 I would like (or rather, am obliged) to create an application that can
 run for a long time without getting any user input, just displaying some
 data received by some hardware interface (serial ports, network or such).
 It's got to be running on Windows, meaning I cannot use my Linux keep
 alive method relying on a cloned secondary process constantly sending
 alarm signals (which did away with a similar issue under Linux some time
 ago, and still does).

IIRC there was a problem on Linux because of lost timer events. If the problem 
still exists it is time now to fix it right IMHO.

 But there really ought to be some mechanism to effect 
 this, as with the current, straightforwardly written version, the program
 constantly goes asleep after some period, on the order of hours. And if
 it did so, it even locks up such that it cannot be reactivated by keyboard
 or mouse actions, nor does it respond to network requests.
 Do you (or someone else) have a clue as to where this might come from and
 how to get rid of those lock-ups?

On Windows? Maybe a deadlock? What shows the debugger?

Martin

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Running unattended

2012-10-24 Thread Martin Schreiber
On Tuesday 23 October 2012 20:59:27 Sieghard wrote:
 Hallo Patrick,

 Du schriebst am Tue, 23 Oct 2012 13:45:33 -0400:
   where this might come from and how to get rid of those lock-ups?
 
  What if you set up a timer process to wake up every n minutes?
  The on event can do nothing or something depending on your needs.

 Yes, I was thinking of something like that also. I just didn't implement it
 yet because, in a similar case with a Linux program, this approach didn't
 work at all. It's to be expected that a simple timer might not be
 sufficient here, because this runs in the same context as all the rest of
 the program - at least this seemed to be tha case in the Linux case.
 Do timers run in a separate thread under Windows?

No.

Martin

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] FreePascal.Ru: analog of (Delphi's) OnDropFiles

2012-10-24 Thread IvankoB
 How drop files on form in MSE?

 Not implemented yet. Is there a protocoll defined from freedesktop.org  
 for the
 purpose?


There's smth to read :

http://www.newplanetsoftware.com/xdnd/supporters.html


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] FreePascal.Ru: analog of (Delphi's) OnDropFiles

2012-10-24 Thread IvankoB
 How drop files on form in MSE?

 Not implemented yet. Is there a protocoll defined from freedesktop.org  
 for the
 purpose?


Also: http://en.wikipedia.org/wiki/X_Window_selection


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] FreePascal.Ru: analog of (Delphi's) OnDropFiles

2012-10-24 Thread IvankoB
 Not implemented yet. Is there a protocoll defined from freedesktop.org  
 for the
 purpose?


All Xorg specifications: http://www.freedesktop.org/wiki/Specifications


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] drag and drop data, how?

2012-10-24 Thread Alexandre Minoshi
24.10.2012 14:46, Martin Schreiber пишет:
 On Tuesday 23 October 2012 19:42:16 Alexandre Minoshi wrote:
 Hello, Martin!

 How i can use drag and drop?

 For example drag data from one stringgrid and drop to second stringgrid?

 An example is here:
 https://gitorious.org/mseuniverse/mseuniverse/trees/master/attic/msedocumenting/mse/trunk/help/tutorials/widgets/grids/dragdropgrid

 Martin

Ok. And if I need to move row in stringgrid?

I try next variant :
==
procedure tmainfo.on_beforedragbegin(const sender: TObject;
const apos: pointty; var dragobject: tdragobject;
var processed: Boolean);
var
co1: gridcoordty;
begin
with tstringgrid(sender) do begin
if cellatpos(apos,co1) = ck_data then begin
tstringdragobject.create(sender,dragobject,apos).data := 
inttostr(co1.row); // -remember row number
processed:= true;
end;
end;
end;

procedure tmainfo.on_beforedragover(const sender: TObject;
const apos: pointty; var dragobject: tdragobject;
var accept: Boolean; var processed: Boolean);
var
co1: gridcoordty;
begin
if dragobject is tstringdragobject then begin
with tstringgrid(sender) do begin
if (sender = dragobject.sender) and //-- check if sender current
(cellatpos(apos,co1) = ck_data) then begin
accept:= true;
processed:= true;
end;
end;
end;
end;

procedure tmainfo.on_beforedragdrop(const sender: TObject;
const apos: pointty; var dragobject: tdragobject;
var processed: Boolean);
var
co1: gridcoordty;
begin
if dragobject is tstringdragobject then begin
with tstringgrid(sender) do begin
if (cellatpos(apos,co1) = ck_data) then begin
moverow(strtoint(tstringdragobject(dragobject).data), co1.row); //-- 
move row
processed:= true;
end;
end;
end;
end;
=
This code is work fine, but it is correct?
And what is different between accept and processed in 
on_beforedragover procedure?


Yours,
Alexandre Minoshi

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Running unattended

2012-10-24 Thread Sieghard
Hallo Patrick,

Du schriebst am Tue, 23 Oct 2012 16:43:32 -0400:

 
  the Linux case. Do timers run in a separate thread under Windows?
 
 I don't know if they run in a separate thread or not.  Martin may know 
 the answer to that.

The question was rather meant as rhetorical, anyway - but as far as I could
tell from my skimming through the pertaining code, they seem not to do so.

-- 
(Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung
nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem)
---
Mit freundlichen Grüßen, S. Schicktanz
---


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Running unattended

2012-10-24 Thread Ivanko B
Why not to use a IFI client/server pair where client writting to a
server's dataset can be handled by DB events etc ? It also provides
secure communicartion channels, link persisnce (due to SSL) ...

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Running unattended

2012-10-24 Thread Sieghard
Hallo Martin,

Du schriebst am Wed, 24 Oct 2012 09:57:09 +0200:

  the Linux case. Do timers run in a separate thread under Windows?
 
 No.

As I expected. Thank you for the information.

-- 
(Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung
nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem)
---
Mit freundlichen Grüßen, S. Schicktanz
---


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Running unattended

2012-10-24 Thread Ivanko B
Possibly Sieghard wants to have its client-side app of service
(daemon) type. It's a  special type of win-32 apps - with attention to
error handling, auto restarting if killed/died/zombied etc. Correct ?
If yes then MSEgui should provide a such type of project :)

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Running unattended

2012-10-24 Thread Ivanko B
If yes then MSEgui should provide a such type of project :)

More correct - a project template with an interface class declaring
methods which should be implemented to have the daemon behavior.

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Running unattended

2012-10-24 Thread Ivanko B
Smth like LazDaemon:  http://wiki.freepascal.org/Daemons_and_Services

or Lazarus's TDaemon+TDaemonMaper :
http://www.google.ru/url?sa=trct=jq=esrc=ssource=webcd=16cad=rjaved=0CFgQFjAFOAourl=http%3A%2F%2Fwww.turbog.com%2Fwp-content%2Fuploads%2F2012%2F04%2Fdaemons.pdfei=8FqIUNeqOOWB4ATfxYGQAQusg=AFQjCNHZnmzC1hMFG3HLjKPMxTPSfH_XFAsig2=r_k-LpzU8HI3nFxPZ-Gwcw

or in pure FPC: \fpc\packages\fcl-extra\src\*\*daemon*

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Running unattended

2012-10-24 Thread Sieghard
Hallo Martin,

Du schriebst am Wed, 24 Oct 2012 09:55:17 +0200:

  sending alarm signals (which did away with a similar issue under Linux
  some time ago, and still does).
 
 IIRC there was a problem on Linux because of lost timer events. If the
 problem still exists it is time now to fix it right IMHO.

Yes, there was a problem producing very similar symptoms: no more data
transfer, no more display activity, and sometimes no more reactions to
keyboard or mouse entries. Sometimes, though, it was possible to reactivate
the program via keyboard or mouse, mainly the first time when the phenomenon
was recognized. Then I created this special reactivation clone thread,
and the problem was solved. Some time later you wrote about a modification
to the timer system (AFAIR), and I tried to work without this crutch -
which unfortunately didn't succeed, so I had to reactivate it, and that's
the way it still runs (and creates problems for debugging).
These programs are strictly running on Linux, though, but the new one _has
to_ run under Windows, where this crutch is not available. Unfortunately,
it shows the same symptoms as under Linux...

  network requests. Do you (or someone else) have a clue as to where this
  might come from and how to get rid of those lock-ups?
 
 On Windows? Maybe a deadlock? What shows the debugger?

Maybe a deadlock - although the _application_ code doesn't use locks
explicitely. The debugger unfortunately has no chance to show anything,
as there is no fpc and no mseide/msegui on the target machine, and it isn't
really simple to set up a test environment on a separate machine - the
program depends to a good deal on the special setup of the target system,
which is an embedded PC running an underlying SPS process with which the
application is communicating heavily.
I might have no choice, though, but to rebuld a good part of that on some
virtual machine where I can diagnose it more thoroughly, I'm afraid...
(which costs a whole lot of time I can't really afford :( )

BTW, I'd like to try a work around first, setting the application process
to some higher priority (there should be a IO priority level available on
Windows, AFAIR), but couldn't come around to dig out the way to do this yet.

-- 
(Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung
nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem)
---
Mit freundlichen Grüßen, S. Schicktanz
---


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Running unattended

2012-10-24 Thread Sieghard
Hallo Ivanko,

Du schriebst am Thu, 25 Oct 2012 01:57:45 +0500:

 Possibly Sieghard wants to have its client-side app of service
 (daemon) type. It's a  special type of win-32 apps - with attention to

Yes, that might be a possible solution - although I'm still quite reluctant
to delve into these unknown waters - unknown to me, at least. I'm a long
time Windows avoider, the most I work with Windows is on my notebook (XP) or
on my big machine in a virtual machine (W2000). I _had_ to take some
closer looks at the newer Windows, and decidedly did _not_ like them at all.
But anyway, I know that Delphi does provide a special application type for
services, and I think I saw a similar thing among the msegui applications.
Martin will set this straight, I'm sure. ;-)

-- 
(Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung
nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem)
---
Mit freundlichen Grüßen, S. Schicktanz
---


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Running unattended

2012-10-24 Thread Sieghard
Hallo Ivanko,

Du schriebst am Thu, 25 Oct 2012 00:27:46 +0500:

 Why not to use a IFI client/server pair where client writting to a

Interesting idea. There's just the tiny problem that one of the
participants cannot speak Pascal - it only speaks IEC(6)1131, the
programming language for PLCs.

-- 
(Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung
nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem)
---
Mit freundlichen Grüßen, S. Schicktanz
---


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] drag and drop data, how?

2012-10-24 Thread Martin Schreiber
On Wednesday 24 October 2012 15:46:41 Alexandre Minoshi wrote:
 
  An example is here:
  https://gitorious.org/mseuniverse/mseuniverse/trees/master/attic/msedocum
 enting/mse/trunk/help/tutorials/widgets/grids/dragdropgrid
 
  Martin

 Ok. And if I need to move row in stringgrid?

Activate tstringrid.optionsgrid og_rowmoving and og_keyrowmoving. Rows of a 
grid can be moved by mouse click and drag in fixed column or by keys 
Ctrl+UpArrow, Ctrl+DownArrow, there is no need for additional drag and drop 
code.

 I try next variant :
 ==

If you need special information in dragobject define and use a descendent of 
tdragobject:

type
 tmydragobject = class(tdragobject)
  public
   myintegerdata: integer;
   myrealdata: real;
   mystringdata: msestring;
 [...]
 end;

[...]

 =
 This code is work fine, but it is correct?
 And what is different between accept and processed in
 on_beforedragover procedure?

accept = true means that the component would accept a drop of the drag 
object. processed means that following dragover code in MSEgui should not 
modify the decision or the dragobject.

Martin

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Running unattended

2012-10-24 Thread Martin Schreiber
On Thursday 25 October 2012 01:10:41 Sieghard wrote:
 Hallo Ivanko,

 Du schriebst am Thu, 25 Oct 2012 01:57:45 +0500:
  Possibly Sieghard wants to have its client-side app of service
  (daemon) type. It's a  special type of win-32 apps - with attention to

 Yes, that might be a possible solution - although I'm still quite reluctant
 to delve into these unknown waters - unknown to me, at least. I'm a long
 time Windows avoider, the most I work with Windows is on my notebook (XP)
 or on my big machine in a virtual machine (W2000). I _had_ to take some
 closer looks at the newer Windows, and decidedly did _not_ like them at
 all. But anyway, I know that Delphi does provide a special application type
 for services, and I think I saw a similar thing among the msegui
 applications. Martin will set this straight, I'm sure. ;-)

Simply write msenogui instead of msegui in uses of the main program in 
oder to instantiate a event driven tnoguiapplication without GUI elements.
Examples are here:
https://gitorious.org/mseuniverse/mseuniverse/trees/master/attic/msedocumenting/mse/trunk/help/tutorials/nogui

I don't know if there are more steps necessary for a Windows service.

Martin

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk