Re: [Lazarus] Unexpected TAChart's axis scaling

2019-01-06 Thread Werner Pamler via lazarus

Am 06.01.2019 um 19:17 schrieb Valdas Jankūnas via lazarus:

I attached in my first mail.



Sorry. When I scrolled down I only saw the screenshots.

Yes, this looks strange, and it could be a bug - I'll have to 
investigate. In the meantime you can work around by releasing the Range 
lock of the axis of the series that you want to deactivate:


procedure TForm1.CheckBox1Change(Sender: TObject);
begin
   Chart1LineSeries1.Active := Checkbox1.Checked;
   Chart1.AxisList[Chart1LineSeries1.AxisIndexY].Range.UseMin := 
Checkbox1.Checked;
   Chart1.AxisList[Chart1LineSeries1.AxisIndexY].Range.UseMax := 
Checkbox1.Checked;

end;

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Can't start lazarus trunk

2019-01-06 Thread Joost van der Sluis via lazarus

Op 06-01-19 om 17:29 schreef Martok via lazarus:

Am 03.01.2019 um 22:27 schrieb Joost van der Sluis via lazarus:

I actually don't know how to create the configuration files on Windows.

So, I checked the source, and it seems you actually do ;-)


Oh, I do know how to do it in code... (b.t.w. if you really want to know 
how to do it, 'fpcmkcfg -3' and 'fpcmkcfg -4' could help.



The Lazarus side generates a config if none is found (in a weird place, but that
is just GetAppConfigFile being what it is). The problem is in fppkg on the the
compiler side. My preferred fix would be also checking the fppkg exe path,
because that's where "make install" puts it on windows, i.e.:


That's more a coincidence. Because all executables are installed into 
the same location.



packages\fppkg\src\pkgoptions.pp:1119:
 FCompiler:=ExeSearch('fpc'+ExeExt,ExtractFilePath(ParamStr(0)) +
PathSeparator + GetEnvironmentVariable('PATH'));


That won't work here, because pkgoptions is part of the fppkg-library. 
In this particular case it will retrieve the path of the Lazarus-executable.



The shared config file is still wrong if more than one full platform is
installed (not usually done on unices, but that's how the Lazarus Windows
installer sets things up -- see also --primary-config-path), but that's a
different issue.


That sounds strange, it should use the normal configuration that is used 
by fpc to allow cross-platform setups? But I'm not sure exactly how the 
configuration files look like if they are generated this way on Windows.


Regards,

Joost.

--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Unexpected TAChart's axis scaling

2019-01-06 Thread Valdas Jankūnas via lazarus

2019-01-06 19:56, Werner Pamler via lazarus rašė:

Am 06.01.2019 um 18:00 schrieb Valdas Jankūnas via lazarus:

This is hard to tell from the description alone, there are so many 
possibilities... You should create a litte project which shows the issue and 
attach it (please include only source files, .pas, .lfm, .lpi, .lpi, no .exe, 
.ppu).



I attached in my first mail.

--
  Valdas Jankūnas
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Unexpected TAChart's axis scaling

2019-01-06 Thread Werner Pamler via lazarus

Am 06.01.2019 um 18:00 schrieb Valdas Jankūnas via lazarus:

Hello,

in Test Project I have a Chart with several LineSeries and one 
AreaSeries. AutoScaleAxisTransform in each Axis is used. I noticed 
some unexplainable behavior:

 - in fig_A you can see Chart in "all is OK" state,
 - if I do Chart1LineSeries1.Active:=FALSE (this series is tied to 
Axis #0) then all Axes suddenly expands (see attached fig_B),
 - if I do Chart.Axis#0.Range.UseMin/Max:=FALSE then all Axes scales 
to expected range (see attached fig_C).

Attached Test Project.

Is this a Bug?



This is hard to tell from the description alone, there are so many 
possibilities... You should create a litte project which shows the issue 
and attach it (please include only source files, .pas, .lfm, .lpi, .lpi, 
no .exe, .ppu).


--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Tell me, does this application exist?

2019-01-06 Thread Anthony Walter via lazarus
wkitty42,

The other thing a tablet would provide over a digitizer is that it can
display an actual image of the work as you draw. Sure people could get used
to drawing on a input device while watching their computer monitor, but
drawing on a flat paper like device, while seeing their artwork on that
same flat surface device would best replicate pen and paper drawing.
Additionally, I could see the tablet providing ghosting drawing function
while you draw to reduce the lag between the tablet and the desktop
computer. That is the user could see his strokes in realtime while the
desktop computer (service application) is busying performing work and
serving screen updates. This way the work on the tablet would be much more
fluid or smooth.

Also I found this person searching for the same thing:

https://www.youtube.com/watch?v=k7fGkTLAKlA

In his summary section the above youtuber answers my original question with
a NO, or at least non worth while. He expresses hope that application
developers will fix the issues he brings up. Also all the existing
applications seem to follow the same model I mentioned, and that is a
tablet application which communicates with a special desktop application
service.

In my opinion this looks like something that may warrant further research
with Free Pascal and Lazarus. Again in my opinion they would be the best
tools for developing a desktop service application for multiple platforms
to handle the command processing and graphical view generation.
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Tell me, does this application exist?

2019-01-06 Thread wkitty42--- via lazarus

On 1/6/19 9:29 AM, Anthony Walter via lazarus wrote:

wkitty42,

Yes, I want to use a tablet as a digitizer for a desktop computer, but with a 
modification. I want the tablet to be able to have easy access to specific 
commands for programs, such as change brush shape, size, color, change the 
active tool, and change options for the active tool.



when i last used a digitizer for drawing (shapes/letters on signage vinyl to be 
cut with a knife plotter), the digitizer we used could be configured with an 
area for drawing and another area for access to the menus for changing the 
options... but we didn't do that... instead we used the digitizer like a common 
mouse. the pointer never had problems accessing any of the menus in the 
application... where ever the stylus went, the on-screen pointer went... we even 
stopped using and removed the mice on the workstations that had digitizers 
because they did the same thing and those users just used the digitizer for all 
mousing around... it didn't matter if it was in autocad or some other signage 
related drafting program or outlook or AOL or prodigy or whatever... the 
digitizer was just a different mouse...



I would like to know if someone has already created this type of application for 
android tablets and also associated the service interface desktop computers.



i cannot say that i've ever heard of one but i haven't used a digitizer in at 
least 20 years... to me it is still just a different type of mouse...



--
 NOTE: No off-list assistance is given without prior approval.
   *Please keep mailing list traffic on the list unless*
   *a signed and pre-paid contract is in effect with us.*
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Unexpected TAChart's axis scaling

2019-01-06 Thread Valdas Jankūnas via lazarus

Hello,

in Test Project I have a Chart with several LineSeries and one AreaSeries. 
AutoScaleAxisTransform in each Axis is used. I noticed some unexplainable 
behavior:
 - in fig_A you can see Chart in "all is OK" state,
 - if I do Chart1LineSeries1.Active:=FALSE (this series is tied to Axis #0) 
then all Axes suddenly expands (see attached fig_B),
 - if I do Chart.Axis#0.Range.UseMin/Max:=FALSE then all Axes scales to 
expected range (see attached fig_C).
Attached Test Project.

Is this a Bug?

--
  Valdas Jankūnas
<>
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Can't start lazarus trunk

2019-01-06 Thread Martok via lazarus
Am 03.01.2019 um 22:27 schrieb Joost van der Sluis via lazarus:
> I actually don't know how to create the configuration files on Windows. 
So, I checked the source, and it seems you actually do ;-)
The Lazarus side generates a config if none is found (in a weird place, but that
is just GetAppConfigFile being what it is). The problem is in fppkg on the the
compiler side. My preferred fix would be also checking the fppkg exe path,
because that's where "make install" puts it on windows, i.e.:

packages\fppkg\src\pkgoptions.pp:1119:
FCompiler:=ExeSearch('fpc'+ExeExt,ExtractFilePath(ParamStr(0)) +
PathSeparator + GetEnvironmentVariable('PATH'));

The shared config file is still wrong if more than one full platform is
installed (not usually done on unices, but that's how the Lazarus Windows
installer sets things up -- see also --primary-config-path), but that's a
different issue.

-- 
Regards,
Martok

-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Tell me, does this application exist?

2019-01-06 Thread Anthony Walter via lazarus
It looks like this program is similar:

https://www.youtube.com/watch?v=MbKxMEHM7WY

But it doesn't seem to translate tablet actions into program commands other
than just drawing.

Thanks everyone for your feedback.

>
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Tell me, does this application exist?

2019-01-06 Thread Anthony Walter via lazarus
DougC,

This program would essentially give people who use Krita, Gimp, Inkscape
and other desktop applications the ability to turn any android device into
a drawing tablet for those programs. It would also differ from a digitizer
in that the service application can be designed to provide an dynamic
interface to these applications that would be better than any digitizers
interface, since its view could be programmed to present commands and
appear any way possible. I also could imagine designing the desktop service
application in such a way that other programmers or even end users could
customize the commands and views, and how the commands and view work, which
they can see on their tablet.

Again, I am just trying to figure out if anyone has created something like
this yet, and if not why.
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Tell me, does this application exist?

2019-01-06 Thread Anthony Walter via lazarus
wkitty42,

Yes, I want to use a tablet as a digitizer for a desktop computer, but with
a modification. I want the tablet to be able to have easy access to
specific commands for programs, such as change brush shape, size, color,
change the active tool, and change options for the active tool. The desktop
service application would optimize the flow and interfaces for each desktop
application to best suite a tablet (or digitizer) interface.

I would like to know if someone has already created this type of
application for android tablets and also associated the service interface
desktop computers.

gabor,

No, this would be more than a desktop VNC or screen duplication
application. It would provide an simplified and optimized drawing interface
to tablets with "tabletized" access to command for commands for Krita,
Gimp, Inkscpae, and so on. The layout and usage of commands would be
different for each program you are interfacing with based on how the
desktop service application decides to best present those applications to a
tablet, keeping in mind that the main function of the tablet would be to
act as a drawing surface.
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Tell me, does this application exist?

2019-01-06 Thread wkitty42--- via lazarus

On 1/6/19 1:31 AM, Anthony Walter via lazarus wrote:
What I was attempting to describe is a tablet application that provides a 
specialized input view to a desktop application using an android tablet.


so in the most simple terms, you are wanting to use a tablet as a digitizer for 
a desktop system, right?



--
 NOTE: No off-list assistance is given without prior approval.
   *Please keep mailing list traffic on the list unless*
   *a signed and pre-paid contract is in effect with us.*
--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Tell me, does this application exist?

2019-01-06 Thread gabor via lazarus

Maybe RFB/VNC/RDP/X11 or something similar will be enough?

https://play.google.com/store/apps/details?id=com.realvnc.viewer.android
https://play.google.com/store/apps/details?id=x.org.server
https://play.google.com/store/apps/details?id=com.microsoft.rdc.android

W dniu 2019-01-06 o 04:59, Anthony Walter via lazarus pisze:
I was kicking around and idea related to pairing a multiple desktop 
platforms with an Android tablet. Could you guys tell me if anyone has 
designed an application like I am about to describe?


I am thinking about a two part application that pairs your desktop 
computer with an Android tablet. The pairing allows users to use their 
Android tablet as a live preview and drawing surface for applications 
running on their desktop computer.


The intent is to provide better drawing and painting for desktop 
applications such as Krita, Gimp, Inkscape, and other applications by 
hosting a service on the desktop computer that forwards an image of the 
drawing surface on the desktop computer to an Android tablet, and 
translating touch or stylus strokes on the tablet to native commands in 
Krita, Gimp, Inkscape or other desktop programs. Translated commands 
might change the active layer, brush size, opacity, active tool (smear, 
clone stamp, airbrush, and so on) as well as stroke data (drawing, 
erasing, and such).


The part that is the desktop service would be designed to support a list 
of specific applications such as Krita, Gimp, Inkscape and so on 
(obviously this list could be expanded).


The part that is the Android tablet application would connect to the 
desktop service and display what it is told by the desktop service, and 
also forward stylus input to the desktop service.



--
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Tell me, does this application exist?

2019-01-06 Thread DougC via lazarus
Anthony- Never heard of such an app. However, I'd like to ask: What is the 
problem this app is designed to solve?



Doug C.-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus