Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-04

Ubuntu 12.04

14 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

zeljko
to Richard Mace
Richard Mace wrote 8 lines
Hi All, When running the Lazarus "Fixes 1_0" branch, I have to run Lazarus with the following command: LIBOVERLAY_SCROLLBAR=0 ./lazarus Is there a plan for Lazarus to "auto detect" Unity, so that Lazarus can be launched with simply: ./lazarus

There is "a plan" , but don't know how to recognize: 1.We are under unity
2.liboverlay is active

There's no env variables which points to this, also there's nothing in wm atoms what says that liboverlay is used.

zeljko

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120417/cbab2241/attachment-0001.html>

Reply by email

Mattias Gaertner
to zeljko
Show quoted text 16 lines
On Monday 16 of April 2012 20:52:31 Richard Mace wrote: > Hi All, > > When running the Lazarus "Fixes 1_0" branch, I have to run Lazarus with the > following command: > LIBOVERLAY_SCROLLBAR=0 ./lazarus > > Is there a plan for Lazarus to "auto detect" Unity, so that Lazarus can be > launched with simply: ./lazarus There is "a plan" , but don't know how to recognize: 1.We are under unity 2.liboverlay is active There's no env variables which points to this, also there's nothing in wm atoms what says that liboverlay is used.

What is the next step after finding out that liboverlay is active?

Mattias

Reply by email

zeljko
to Mattias Gaertner
Mattias Gaertner wrote 21 lines
On Tue, 17 Apr 2012 07:54:47 +0200 zeljko wrote: > On Monday 16 of April 2012 20:52:31 Richard Mace wrote: > > Hi All, > > > > When running the Lazarus "Fixes 1_0" branch, I have to run Lazarus with > > the following command: > > LIBOVERLAY_SCROLLBAR=0 ./lazarus > > > > Is there a plan for Lazarus to "auto detect" Unity, so that Lazarus can > > be launched with simply: ./lazarus > > There is "a plan" , but don't know how to recognize: > 1.We are under unity > 2.liboverlay is active > > There's no env variables which points to this, also there's nothing in wm > atoms what says that liboverlay is used. What is the next step after finding out that liboverlay is active?

...at least show error dialog that liboverlay is active and inform user howto switch it off, or call putenv('LIBOVERLAY_SCROLLBAR=0') (if it'll work at all).

zeljko

Show quoted text 8 lines
Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120417/1ec9cbc2/attachment.html>

Reply by email

zeljko
to zeljko
zeljko wrote 26 lines
On Tuesday 17 of April 2012 11:15:34 Mattias Gaertner wrote: > On Tue, 17 Apr 2012 07:54:47 +0200 > > zeljko wrote: > > On Monday 16 of April 2012 20:52:31 Richard Mace wrote: > > > Hi All, > > > > > > When running the Lazarus "Fixes 1_0" branch, I have to run Lazarus > > > with the following command: > > > LIBOVERLAY_SCROLLBAR=0 ./lazarus > > > > > > Is there a plan for Lazarus to "auto detect" Unity, so that Lazarus > > > can be launched with simply: ./lazarus > > > > There is "a plan" , but don't know how to recognize: > > 1.We are under unity > > 2.liboverlay is active > > > > There's no env variables which points to this, also there's nothing in > > wm atoms what says that liboverlay is used. > > What is the next step after finding out that liboverlay is active? ...at least show error dialog that liboverlay is active and inform user howto switch it off, or call putenv('LIBOVERLAY_SCROLLBAR=0') (if it'll work at all).

Also, maybe liboverlay api have some routine which can disable it ... so load liboverlay in that case and disable it via it's api is also an solution.

zeljko

Show quoted text 10 lines
zeljko > Mattias > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120417/732f32cd/attachment-0001.html>

Reply by email

Mattias Gaertner
to zeljko: ...at least show error dialog that liboverlay is active and inform user howto switch it…
Show quoted text 26 lines
On Tuesday 17 of April 2012 11:15:34 Mattias Gaertner wrote: > On Tue, 17 Apr 2012 07:54:47 +0200 > > zeljko wrote: > > On Monday 16 of April 2012 20:52:31 Richard Mace wrote: > > > Hi All, > > > > > > When running the Lazarus "Fixes 1_0" branch, I have to run Lazarus with > > > the following command: > > > LIBOVERLAY_SCROLLBAR=0 ./lazarus > > > > > > Is there a plan for Lazarus to "auto detect" Unity, so that Lazarus can > > > be launched with simply: ./lazarus > > > > There is "a plan" , but don't know how to recognize: > > 1.We are under unity > > 2.liboverlay is active > > > > There's no env variables which points to this, also there's nothing in wm > > atoms what says that liboverlay is used. > > What is the next step after finding out that liboverlay is active? ...at least show error dialog that liboverlay is active and inform user howto switch it off, or call putenv('LIBOVERLAY_SCROLLBAR=0') (if it'll work at all).

Do you know what the problem is with liboverlay? I remember vaguely something about synedit and mouse capturing.

Mattias

Reply by email

zeljko
to Mattias Gaertner
Mattias Gaertner wrote 34 lines
On Tue, 17 Apr 2012 11:30:23 +0200 zeljko wrote: > On Tuesday 17 of April 2012 11:15:34 Mattias Gaertner wrote: > > On Tue, 17 Apr 2012 07:54:47 +0200 > > > > zeljko wrote: > > > On Monday 16 of April 2012 20:52:31 Richard Mace wrote: > > > > Hi All, > > > > > > > > When running the Lazarus "Fixes 1_0" branch, I have to run Lazarus > > > > with the following command: > > > > LIBOVERLAY_SCROLLBAR=0 ./lazarus > > > > > > > > Is there a plan for Lazarus to "auto detect" Unity, so that Lazarus > > > > can be launched with simply: ./lazarus > > > > > > There is "a plan" , but don't know how to recognize: > > > 1.We are under unity > > > 2.liboverlay is active > > > > > > There's no env variables which points to this, also there's nothing > > > in wm atoms what says that liboverlay is used. > > > > What is the next step after finding out that liboverlay is active? > > ...at least show error dialog that liboverlay is active and inform user > howto > > switch it off, or call putenv('LIBOVERLAY_SCROLLBAR=0') (if it'll work at > all). Do you know what the problem is with liboverlay? I remember vaguely something about synedit and mouse capturing.

Yes, 1st problem is mouse capturing (but seem that only synedit is affected according to my tests), 2nd problem is that it does not send position changes when moved by mouse , mouse wheel works ....

zeljko

Show quoted text 8 lines
Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120417/1d2a2934/attachment.html>

Reply by email

Mattias Gaertner
to zeljko
Show quoted text 18 lines
[...] > > > > There's no env variables which points to this, also there's nothing > > > > in wm atoms what says that liboverlay is used. > > > > > > What is the next step after finding out that liboverlay is active? > > > > ...at least show error dialog that liboverlay is active and inform user > > howto > > > > switch it off, or call putenv('LIBOVERLAY_SCROLLBAR=0') (if it'll work at > > all). > > Do you know what the problem is with liboverlay? I remember vaguely > something about synedit and mouse capturing. Yes, 1st problem is mouse capturing (but seem that only synedit is affected according to my tests), 2nd problem is that it does not send position changes when moved by mouse , mouse wheel works ....

I implemented a test to find out if liboverlay is active for a scrolledwindow scrollbar and write a warning.
And if it is active I used signal 'value-changed' instead of 'change-value'. Now scrolling in synedit seems to work.

Mattias

Reply by email

Vincent Snijders
to Mattias Gaertner

Op 18 april 2012 19:48 heeft Mattias Gaertner
het volgende geschreven:

Show quoted text 5 lines
I implemented a test to find out if liboverlay is active for a scrolledwindow scrollbar and write a warning. And if it is active I used signal 'value-changed' instead of 'change-value'. Now scrolling in synedit seems to work.

Impressive bug fixing. :-)

Vincent

Reply by email

zeljko
to Mattias Gaertner: On Tue, 17 Apr 2012 11:40:00 +0200 I implemented a test to find out if liboverlay is…
Mattias Gaertner wrote 27 lines
On Tue, 17 Apr 2012 11:40:00 +0200 zeljko wrote: >[...] > > > > > > There's no env variables which points to this, also there's > > > > > nothing in wm atoms what says that liboverlay is used. > > > > > > > > What is the next step after finding out that liboverlay is active? > > > > > > ...at least show error dialog that liboverlay is active and inform > > > user howto > > > > > > switch it off, or call putenv('LIBOVERLAY_SCROLLBAR=0') (if it'll > > > work at all). > > > > Do you know what the problem is with liboverlay? I remember vaguely > > something about synedit and mouse capturing. > > Yes, 1st problem is mouse capturing (but seem that only synedit is > affected according to my tests), 2nd problem is that it does not send > position changes when moved by mouse , mouse wheel works .... I implemented a test to find out if liboverlay is active for a scrolledwindow scrollbar and write a warning. And if it is active I used signal 'value-changed' instead of 'change-value'. Now scrolling in synedit seems to work.

What to say ? ;)
1.When you scroll with mouse (not with wheel), but click faded in liboverlay scrollbar it works ? for other TCustomControls too ? for TScrollBars ? 2.Mouse grabbing works ok ?

zeljko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120418/1e126147/attachment.html>

Reply by email

zeljko
to Mattias Gaertner: On Tue, 17 Apr 2012 11:40:00 +0200 I implemented a test to find out if liboverlay is…
Mattias Gaertner wrote 27 lines
On Tue, 17 Apr 2012 11:40:00 +0200 zeljko wrote: >[...] > > > > > > There's no env variables which points to this, also there's > > > > > nothing in wm atoms what says that liboverlay is used. > > > > > > > > What is the next step after finding out that liboverlay is active? > > > > > > ...at least show error dialog that liboverlay is active and inform > > > user howto > > > > > > switch it off, or call putenv('LIBOVERLAY_SCROLLBAR=0') (if it'll > > > work at all). > > > > Do you know what the problem is with liboverlay? I remember vaguely > > something about synedit and mouse capturing. > > Yes, 1st problem is mouse capturing (but seem that only synedit is > affected according to my tests), 2nd problem is that it does not send > position changes when moved by mouse , mouse wheel works .... I implemented a test to find out if liboverlay is active for a scrolledwindow scrollbar and write a warning. And if it is active I used signal 'value-changed' instead of 'change-value'. Now scrolling in synedit seems to work.

Ah, you're using trick with widget name ... I guess that they won't change it soon ;)

zeljko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120418/4f74728d/attachment.html>

Reply by email

Mattias Gaertner
to zeljko: What to say ? ;) 1.When you scroll with mouse (not with wheel), but click faded in…
Show quoted text 32 lines
On Wednesday 18 of April 2012 19:48:12 Mattias Gaertner wrote: > On Tue, 17 Apr 2012 11:40:00 +0200 > > zeljko wrote: > >[...] > > > > > > > > There's no env variables which points to this, also there's > > > > > > nothing in wm atoms what says that liboverlay is used. > > > > > > > > > > What is the next step after finding out that liboverlay is active? > > > > > > > > ...at least show error dialog that liboverlay is active and inform > > > > user howto > > > > > > > > switch it off, or call putenv('LIBOVERLAY_SCROLLBAR=0') (if it'll > > > > work at all). > > > > > > Do you know what the problem is with liboverlay? I remember vaguely > > > something about synedit and mouse capturing. > > > > Yes, 1st problem is mouse capturing (but seem that only synedit is > > affected according to my tests), 2nd problem is that it does not send > > position changes when moved by mouse , mouse wheel works .... > > I implemented a test to find out if liboverlay is active for a > scrolledwindow scrollbar and write a warning. > And if it is active I used signal 'value-changed' instead of > 'change-value'. Now scrolling in synedit seems to work. What to say ? ;) 1.When you scroll with mouse (not with wheel), but click faded in liboverlay scrollbar it works ?

Yes.

for other TCustomControls too ?

I have to test. I don't have a liboverlay here at the moment.

for TScrollBars ?

I have not tested. But that used the "value-changed" signal already. In fact I copied the code mostly from there. Maybe both events can be combined.

2.Mouse grabbing works ok ?

It never hanged, but I didn't test much.

Mattias

Reply by email

zeljko
to Mattias Gaertner
Mattias Gaertner wrote 52 lines
On Wed, 18 Apr 2012 20:21:30 +0200 zeljko wrote: > On Wednesday 18 of April 2012 19:48:12 Mattias Gaertner wrote: > > On Tue, 17 Apr 2012 11:40:00 +0200 > > > > zeljko wrote: > > >[...] > > > > > > > > > > There's no env variables which points to this, also there's > > > > > > > nothing in wm atoms what says that liboverlay is used. > > > > > > > > > > > > What is the next step after finding out that liboverlay is > > > > > > active? > > > > > > > > > > ...at least show error dialog that liboverlay is active and > > > > > inform user howto > > > > > > > > > > switch it off, or call putenv('LIBOVERLAY_SCROLLBAR=0') (if it'll > > > > > work at all). > > > > > > > > Do you know what the problem is with liboverlay? I remember vaguely > > > > something about synedit and mouse capturing. > > > > > > Yes, 1st problem is mouse capturing (but seem that only synedit is > > > affected according to my tests), 2nd problem is that it does not send > > > position changes when moved by mouse , mouse wheel works .... > > > > I implemented a test to find out if liboverlay is active for a > > scrolledwindow scrollbar and write a warning. > > And if it is active I used signal 'value-changed' instead of > > 'change-value'. Now scrolling in synedit seems to work. > > What to say ? ;) > 1.When you scroll with mouse (not with wheel), but click faded in > liboverlay scrollbar it works ? Yes. > for other TCustomControls too ? I have to test. I don't have a liboverlay here at the moment. > for TScrollBars ? I have not tested. But that used the "value-changed" signal already. In fact I copied the code mostly from there. Maybe both events can be combined. > 2.Mouse grabbing works ok ? It never hanged, but I didn't test much.

Ok, I'll test it today or tomorrow in vmware.

zeljko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120419/927b60d2/attachment.html>

Reply by email

zeljko
to Mattias Gaertner: On Wed, 18 Apr 2012 20:21:30 +0200 Yes. I have to test. I don't have a liboverlay here at…
Mattias Gaertner wrote 52 lines
On Wed, 18 Apr 2012 20:21:30 +0200 zeljko wrote: > On Wednesday 18 of April 2012 19:48:12 Mattias Gaertner wrote: > > On Tue, 17 Apr 2012 11:40:00 +0200 > > > > zeljko wrote: > > >[...] > > > > > > > > > > There's no env variables which points to this, also there's > > > > > > > nothing in wm atoms what says that liboverlay is used. > > > > > > > > > > > > What is the next step after finding out that liboverlay is > > > > > > active? > > > > > > > > > > ...at least show error dialog that liboverlay is active and > > > > > inform user howto > > > > > > > > > > switch it off, or call putenv('LIBOVERLAY_SCROLLBAR=0') (if it'll > > > > > work at all). > > > > > > > > Do you know what the problem is with liboverlay? I remember vaguely > > > > something about synedit and mouse capturing. > > > > > > Yes, 1st problem is mouse capturing (but seem that only synedit is > > > affected according to my tests), 2nd problem is that it does not send > > > position changes when moved by mouse , mouse wheel works .... > > > > I implemented a test to find out if liboverlay is active for a > > scrolledwindow scrollbar and write a warning. > > And if it is active I used signal 'value-changed' instead of > > 'change-value'. Now scrolling in synedit seems to work. > > What to say ? ;) > 1.When you scroll with mouse (not with wheel), but click faded in > liboverlay scrollbar it works ? Yes. > for other TCustomControls too ? I have to test. I don't have a liboverlay here at the moment. > for TScrollBars ? I have not tested. But that used the "value-changed" signal already. In fact I copied the code mostly from there. Maybe both events can be combined. > 2.Mouse grabbing works ok ? It never hanged, but I didn't test much.

It hangs but seem that only with synedit have problem as I can see (synedit inside TPageControl) - just start IDE and click into SE source, now try to click another SE tab.Seem that something strange is happening when synedit is focused by mouse, since keyboard focusing (via tab) works ok. eg .TTreeView works fine.

zeljko

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120420/876d2b96/attachment.html>

Reply by email