Re: [MSEide-MSEgui-talk] MSE and XLib.

2017-08-16 Thread fredvs
Hello Wkitty.

Many thanks for your clear explanation in fpc-forum.

> the thing that keep me using fpc till now is mseide/msegui

Ha, I see that you have good taste so I will try imgui.

By the way, thanks for the many times you help me in Lazarus forum.

Fre;D




--
View this message in context: 
http://mseide-msegui-talk.13964.n8.nabble.com/MSEide-MSEgui-talk-MSE-and-XLib-tp5p18.html
Sent from the mseide-msegui-talk mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and XLib.

2017-08-16 Thread fredvs
Hello Graeme.

OK, understood that libX11.so is needed for linking against that library.

But ( aaargh, I am unbearable), is it really needed to link libX11.so ?

Could fpc do like it does for libc, consider libX11 as a "coomon" library
and only load it (without to link it) ?

And that way, spare also few kb in the binary ?

Fre;D



--
View this message in context: 
http://mseide-msegui-talk.13964.n8.nabble.com/MSEide-MSEgui-talk-MSE-and-XLib-tp5p21.html
Sent from the mseide-msegui-talk mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and XLib.

2017-08-16 Thread fredvs
> As I mentioned in a private message, the unversioned symlink shared library
files are only needed during linking time (ie: when you compile your
program). 

Huh, I was asking if the fact of linking was absolutely necessary, not if
the unversioned symlink was needed.

> If you did want to change all the x11, xutils, x etc header units to load
> at runtime
Yes, it is that my question.

> you can, but that would require much work - for little benefit I think.

OK,  I think that all is perfectly clear for me now.

Many thanks.

Fre;D






--
View this message in context: 
http://mseide-msegui-talk.13964.n8.nabble.com/MSEide-MSEgui-talk-MSE-and-XLib-tp5p23.html
Sent from the mseide-msegui-talk mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and XLib.

2017-08-16 Thread fredvs
Re-re...-re hello.

I profit that I am still not banned from mse mailing-list.
(All development fora, when I ask things about linker --> or banned or
insulted (FreeBSD, fpc, ...).

If you develop from scratch, what are the advantages to link a library vs to
load it dynamically ?

Fre;D



--
View this message in context: 
http://mseide-msegui-talk.13964.n8.nabble.com/MSEide-MSEgui-talk-MSE-and-XLib-tp5p24.html
Sent from the mseide-msegui-talk mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and XLib.

2017-08-14 Thread fredvs
Ooops, in previous mail, please read:

libc-dev and his link libc.so.

Fre;D



--
View this message in context: 
http://mseide-msegui-talk.13964.n8.nabble.com/MSEide-MSEgui-talk-MSE-and-XLib-tp5p13.html
Sent from the mseide-msegui-talk mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and XLib.

2017-08-15 Thread fredvs
>  reverted the changes. It is too dangerous and there must be forked too
much 
> because of the various {$linklib} statements in FPC code

Ha, ok ;-(

I am very happy that fpc is twice the Project of the Month in Source Forge.
(I voted too).

There is also now a fpc donation, yep, they are rich now.

I will stop to develop with fpc.

I was thinking to keep fpc for building libraries but the **huge** carence
in float calculation makes fpc not efficient.

Back to C.

Martin, of course, when mselang is ready, it will be a immense pleasure to
come back to my lovely Pascal language.

Many thanks for all.

Fre;D  







--
View this message in context: 
http://mseide-msegui-talk.13964.n8.nabble.com/MSEide-MSEgui-talk-MSE-and-XLib-tp5p16.html
Sent from the mseide-msegui-talk mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and XLib.

2017-08-16 Thread fredvs
Hello.

I am not sure about the terminology but let'say:

- Staticaly Linking = use libX11.so = store some data in ELF, more safe...

- Dynamicaly Linking = use libX11.so.6 = more freedom, can use dynlib

That said, both linkings have advantages.

And I am not sure for libX11 that Staticaly Linking is the one I would
choose.

So, IMHO and, please, without opening any war, I would vote in a utopic
world for a compiler that gives me the choice.

Or to link libX11 in my program Staticaly or Dynamicaly.

But, yes, I agree, it is twice the work to develop the package (and twice
problems to debug it).

But do not worry, this will never append for fpc.

Fre;D 





--
View this message in context: 
http://mseide-msegui-talk.13964.n8.nabble.com/MSEide-MSEgui-talk-MSE-and-XLib-tp5p28.html
Sent from the mseide-msegui-talk mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


[MSEide-MSEgui-talk] MSE and LLVM

2017-08-18 Thread fredvs
Hello Martin.

I am studding  the feature of LLVM.

FPC has a wiki for LLVM :

http://wiki.freepascal.org/LLVM

It seems that LLVM has many limitation vs FPC.

Is it true ?

Fre;D

  



--
View this message in context: 
http://mseide-msegui-talk.13964.n8.nabble.com/MSE-and-LLVM-tp44.html
Sent from the mseide-msegui-talk mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and XLib.

2017-08-17 Thread fredvs
> A hypothetical example

Huh, sorry, but what differs from the example that I post here and in fpc
forum ?

Fre;D 



--
View this message in context: 
http://mseide-msegui-talk.13964.n8.nabble.com/MSEide-MSEgui-talk-MSE-and-XLib-tp5p37.html
Sent from the mseide-msegui-talk mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and XLib.

2017-08-17 Thread fredvs
> It's not the compiler that decides that

Yes, I know that, but it is fpc that gives the code of /packages/x11, it is
what I wanted to say.

> Nothing stops you from creating your own dynamic linking header.

Indeed. Creating dynamic Pascal linking header is my specialty. ( See
projects uos, sak, voice-assisted ideU, etc).

I do usually like this: using program h2pas to translate the C header into
Pascal.

Then I have a custom template to convert all the code into "dynamic linking
header".

When this is done I begin to debug the header.

Huh, I have to confess you this:

I am a **huge** fan of dynamic linking, I find it fabulous, you get **much**
more freedom.

And if I did not for libX11 it it is because I trust Martin, he is muh more
competent than me, and if he see problems, there will have problems..

And it is not the amount of work,  I did it many times and know how to do.

Fre;D



--
View this message in context: 
http://mseide-msegui-talk.13964.n8.nabble.com/MSEide-MSEgui-talk-MSE-and-XLib-tp5p36.html
Sent from the mseide-msegui-talk mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and XLib.

2017-08-18 Thread fredvs
Hello.

Now that everybody "finally understood", let's do a resume.

The fpc code is perfect to show all the situations possible.

In xlib.pp they assigned as soname:

const
  libX11='X11';

So, like perfectly explained in Graemes's infos, the linker automaticaly add
"lib" + ".so"

So a libX11.so must exist.

The soname is assigned with "external":

The soname is assigned with "external":

Example:
procedure XrmInitialize; cdecl; external libX11;

---

In xinerama.pp there the soname is "hardcoded", no constant or variable is
used:

They do:

function XineramaIsActive(dpy:PDisplay):TBoolResult;cdecl;external
'Xinerama';

And here also the linker automaticaly add "lib" + ".so"



In xft.pp there the nearly do the right way.

libXft = 'libXft.so';

Here the linker will not add prefix and suffix.

procedure XftDrawDestroy(draw : PXftDraw); cdecl; external libXft;

But the right way would be to use : libXft = 'libXft.so.2';
 

--


Huh, I have check all the fpc packages ---> all are wrong. ;-(

And I was also wrong saying that libc was ok.

In fact  LIBC_SO = 'libc.so.6'  ---> is never used.

In lbc.pp they do:

Const

 clib = 'c';  (the rigth way sould be : clib = ''libc.so.6')


Fre;D
 



--
View this message in context: 
http://mseide-msegui-talk.13964.n8.nabble.com/MSEide-MSEgui-talk-MSE-and-XLib-tp5p43.html
Sent from the mseide-msegui-talk mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and docking.

2017-09-14 Thread fredvs
> Better to use png instead jpg because of the needed pixel precision. 

Thanks for the tip.
I noted too that with jpg, transparency does not appear like wanted.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and docking.

2017-09-14 Thread fredvs
Hello Graeme.

> JPG doesn't support transparency - period.

Ok, noted for ever, I will forget jpg. ;-)

By the way, compression of jpg is not way better than png: only few kb less.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and docking.

2017-09-13 Thread fredvs
Hello Martin.

Huh, half a hour ago I went to MSE site and have seen that there was a new
comit ! ;-)

OK, have try it (+ recompile MSEide with last commit).

> has tdockcontroller.colortab, coloractivtab, facetab and faceactivetab 

Perfect.  See picture:
<http://mseide-msegui-talk.13964.n8.nabble.com/file/t2/tabframe.jpg> 

Huh, a subsidiary question.
In the picture tabframe.jpg each tab has on right-top a part of line white.
I suppose it is for the lightning effect.
But is it possible to have all the line in black, without that white part
line ?
I did not find how to do.
 
>> >.frame.grip_options go_showsplitcaption. 
>> OK, done but... what is it for? 
> See attachment. 

Ha, ok (it is what I have seen, but I would prefer nothing write but a
hint.)

>> procedure tmainfo.onchangelayout(const sender: tdockcontroller); 
> git master 9da262

See first answer ---> **PERFECT**

Many thanks Martin.

OK, I will do a nice video of MSE-dock in action.

And now that I have all the GUI tools, time to attack a other piece of
StrumPract: the Multi-Stereo-Tracks Recorder.
By the way, the simple stereo recorder is already working like charm in last
commit.
Also with direct-wiring (to listen to the micro live, even without
recording).

https://github.com/fredvs/strumpract

Fre;D




--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and docking.

2017-09-14 Thread fredvs
> git master 90076e9113892e138c70356df70d9d4836d43233 has
tgripframe.grip_hint. 

Perfect, many thanks.

And Wow for the new layout of https://gitlab.com/mseide-msegui/mseide-msegui

PS: I am back to earth next week.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] tdirdropdownedit with statfile (was strumpract)

2017-09-18 Thread fredvs
>> On my system -Dir- (tdirdropdownedit) appears with the list of directory, 
like if it was selected. 
> Please try again with git master a26cde4dd6fd0d15c94c1e5ce0919d4baf7ef683

Perfect, fixed, many thanks.

Sorry but there s something else ;-(.

When main form is "scrolled"  using the scrollbar does not refresh docked
form.

See video:

mse_scroll.mp4
  

Thanks.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and XLib. @Graeme

2017-09-16 Thread fredvs
> Probably the only argument Free Pascal people will accept. ;-) 

Some wind says me that Code Typhon is busy to integrate Martin's patch into
next CT 6.4 release.
They are busy to test it on all their systems.

Fre;D





--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and docking.

2017-09-16 Thread fredvs
>> I have to check why I did add that file into ideU/src/, at the moment I do 
>> not remember why. 
>https://www.mail-archive.com/mseide-msegui-talk%40lists.sourceforge.net/msg11434.html

Huh, this mail was about StrumPract and Tslider, not about ideU project
(that does not uses, afaik, any Tslider).

But maybe I do not catch something.

PS: About StrumPract and Tslider, yes, I have to do code (asap).  But
without code, like it is now, it is not so bad.
It is more like "scratching" or fast forward-review but it works too.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Artifacts in form scrolling (was tdirdropdownedit with statfile)

2017-09-18 Thread fredvs
> A hint: the program crashes if compiled with -gh (heaptrace) there seems to
> be a memory error somewhere.

in uos code line 2878:

for x := 0 to (Data.OutFrames div ratio) do ...

Must be:

for x := 0 to (Data.OutFrames div ratio)  -1 do ...

Many thanks Martin and Heaptrace. ;-)

And for the memory leak:

All the created msetimers must be freed on Form.OnDestroy.
--> Done: -->

Heap dump by heaptrc unit
72271 memory blocks allocated : 39115233/39248848
72271 memory blocks freed : 39115233/39248848
0 unfreed memory blocks : 0
True heap size : 753664
True free heap : 753664

;-) 

> The problem is the negative shifts in
> mainfo.container.frame.frameimage_left

OK, I will study it.

Many thanks Martin.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Artifacts in form scrolling (was tdirdropdownedit with statfile)

2017-09-18 Thread fredvs
> The problem is the negative shifts in mainfo.container.frame

OK, removed that rounded "global"  frames. (that was not nice in fact).

Now, scrolling main form is perfect.

Well, MSE dock was hardly and deeply tested.

Verdict:

There are no limit.
Time to create now.

Many thanks and wow Martin.

Fre;D





--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] strumpract (was MSE and docking).

2017-09-18 Thread fredvs
> AFAIK heaptrace can not work with cmem. 

Aaargh, indeed, with cmem and using float 32 resolution:

Heap dump by heaptrc unit
0 memory blocks allocated : 0/0
0 memory blocks freed : 0/0
0 unfreed memory blocks : 0
True heap size : 0
True free heap : 0

Here without cmem and float 32 resolution:

Marked memory at $7FD6E9CD80D0 invalid
Wrong signature $F11E8A3B instead of C4C4C11E
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server
":0.0"
  after 2539 requests (2538 known processed) with 0 events remaining.

And here  without cmem and integer 32/16 resolution:

Heap dump by heaptrc unit
6964 memory blocks allocated : 3952422/3965960
6964 memory blocks freed : 3952422/3965960
0 unfreed memory blocks : 0
True heap size : 1179648
True free heap : 1179648

...

How to debug that, if somebody has a idea, he is welcome to share it ;-)

Thanks.

Fre;D




--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and docking.

2017-09-16 Thread fredvs
> Sorry but this is too simple for me.

Not so simple ;-(

OK, to give the position in label (not change the position of song) while
moving the trackbar + button still clicked.

But I would like, when the button is released, that the position of the song
changes on that new value (uos_seek()).

How to know that the button was released and assign something at that
moment?

Thanks.

Fre;D





--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Artifacts in form scrolling (was tdirdropdownedit with statfile)

2017-09-19 Thread fredvs
Hello Martin.

I am busy with the mercyless test of MSE dock.

Many wow.

At the moment I did only find this strange:

When docking all the windows into main window, sometimes the height of the
scrolled design canvas is too high.

See video:
mse_scrollheight.mp4
  


What cause that random different height ?
I did try many things, but always, randomely, a wrong height is assisgned.


And how to now if a scrollbar is visible ?

Something like:
if container.frame.sbvert.visible then

Thanks.

Fre;D





--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


[MSEide-MSEgui-talk] Application paused if no mouse event.

2017-09-22 Thread fredvs
Hello Martin.

I have a strange problem.

While using a timer, sometimes, the application pause itself.

But when moving the mouse, it re-works again.

See video.
mse_stopnomouse2.mp4
  

What could be the cause of this ?

Thanks.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] strumpract (was Artifacts in form scrolling (was tdirdropdownedit with statfile))

2017-09-22 Thread fredvs
>  si1.cx:= basedock.width; //do not change width 

OK only added it. ;-)

Works formidably now.

Many thanks Martin.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Application paused if no mouse event.

2017-09-23 Thread fredvs
Hello Martin.

> I can reproduce it now if not compiled with -gh

Ha here it appends even with -gh.

> But sometimes there is a libc memory error

How do you get that error ? Even with -ghl + debugger I cannot have errors.
Very difficult to debug then.

What could I do ?

Thanks.

Fre;D




--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] strumpract (was Artifacts in form scrolling (was tdirdropdownedit with statfile))

2017-09-23 Thread fredvs
> Bugs should be fixed not "workarounded". ;-) 

Huh, then, sorry, there is still something...

All works perfectly if all the forms are visible.

But if child-docked-forms are closed inside the main parent form, it has
still problems.

The canvas is not refreshed when floating all the visible forms.

But if you close the forms when they are floated, then it works.

(One more time,difficult to explain).

See the video, maybe it explain better:
mse_canvasprob.mp4
  

Thanks.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] strumpract (was Artifacts in form scrolling (was tdirdropdownedit with statfile))

2017-09-20 Thread fredvs
Hello Martin.

OK, i did apply your patch + compile with last MSE commit.

At loading, perfect the size of the main form is ok, scrolling refresh well
the canvas.

Sadly after there are few problems.

- Sometimes the vert scrollbar does not appear when all the forms are
dockked.

- And when it appears, canvas is not refreshed while scrolling.

See video:
mse_scrollheight2.mp4
  

Thanks.

Fre;D





--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] strumpract (was Artifacts in form scrolling (was tdirdropdownedit with statfile))

2017-09-21 Thread fredvs
Re-hello Martin.

Is it possible to hide the end buttons of a Tslider ?

If yes, how ?

Thanks.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] strumpract (was Artifacts in form scrolling (was tdirdropdownedit with statfile))

2017-09-21 Thread fredvs
Hello Martin.

Many thanks for your investigations.

It works perfectly now.

The height-size is perfect now.

Huh, why dont you like Timerwait ?

It was used to ajuste the main form width if a vertical scrollbar appear.
(Otherwise part of the docked forms are hidden, like the close buttons).

See picture:
 

But maybe there is a reason why you do not like Timerwait.

Many, many, many thanks.

Fre;D







--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and docking.

2017-09-13 Thread fredvs
> Ok, many thanks, I will re-create a new timagelist1. 

Aaargh, there is something that I do not catch.

I did delete image7 and replace by a other new (a jpg image of a line of 4
light gray pixels width, 1 pixel height) but it appears in timagelist as
height of 2 pixels.

OK, I will let it for later.

Fre;D





--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and docking.

2017-09-13 Thread fredvs
>Very strange because I did a "copy/paste" of timagelist1 from a other 
>project and the original did not have that white pixel. 

OK, I find back the original project.

It was a gift of Code DZ.

See attachment. tab.7z
  

And there timagelist1 has no white pixel...

Why that white pixel was added, this the mystery of informatics. ;-)

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and docking.

2017-09-13 Thread fredvs
>Image 7 of timagelist1 has a white pixel, see attachment. I assume it should
be transparent. 

Wow, well seen !

Very strange because I did a "copy/paste" of timagelist1 from a other
project and the original did not have that white pixel.

Ok, many thanks, I will re-create a new timagelist1.

Sorry for the noise.

Fre;D





--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] strumpract (was MSE and docking).

2017-09-17 Thread fredvs
> A hint: the program crashes if compiled with -gh (heaptrace) there seems to
be a memory error somewhere.

Huh, I think I get the guilty.  But if it is true, there is a **BIG**
problem with fpc 3.0.3.

I did just check demos of uos.  Now, **ALL* demos (console, fpGUI, MSE, LCL)
that use float resolution --> crash + memory leak when using -ghl.

If resolution is integer (16 or 32) no crash.

Maybe you may test by yourself.

Take the example SimplePlayer_MSE.prj from  https://github.com/fredvs/uos.

Compile it with -ghl and run it.  By default, the resolution is float 32.
--> it will crash + memory leak.
Now, reload the program but choose integer 16 or 32 bit resolution --> no
crash, no memory leak.

I insist to say that with previous fpc version, using  float 32 resolution
was ok.

Aaaargh, this is a **VERY BIG** problem.

Fre;D





--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] strumpract (was MSE and docking).

2017-09-17 Thread fredvs




--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] strumpract (was MSE and docking).

2017-09-17 Thread fredvs
Hello Martin.

Many thanks for your tips and patch.

I will study it deeply.

> A hint: the program crashes if compiled with -gh (heaptrace) there seems
> to be a memory error somewhere. 

Yep, I have seen it yesterday.  I have to check it.

Other thing.  I am busy with the file-list window (for dj).  But I have
problems with tdirdropdownedit and statfile.
If a statfile is assigned, when loading the application, the list of the
combobox is show (like when selecting).

Even if the form is hidden, the list of the combobox appears in the midle of
nowhere.

I cannot give a printscreen because thelist of combobox disappears when
doing a printscreen.

Thanks.

Fre;D

 






--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] strumpract (was MSE and docking).

2017-09-17 Thread fredvs
> A hint: the program crashes if compiled with -gh (heaptrace) there seems to
be a memory error somewhere. 

Yeeep, there is a solution:

--->

program strumpract;
uses
 cmem, ...

It solves everything, no memory errors, nor memory leaks.
Same for all uos examples.

Good to know.

;-)

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and docking.

2017-09-13 Thread fredvs
> OK, I will let it for later

Well, I deleted all the 4x4 pixels pictures where some blank pixels were
added (after copy/paste imagelist component).
And recreate new from scratch.

Now, all is ok. (see picture)
 

Sorry for the noise (but strange that those white pixels were added).

Thanks.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and docking.

2017-09-14 Thread fredvs
Hello Martin.

There is a problem with last commit and ttabwidget.

I did recompile ideU with last commit and the height of tabs is not correct
anymore.

See picture:
 

Here the correct height of tabs when compiling with previous commit:

See picture:
 

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] strumpract (was Artifacts in form scrolling (was tdirdropdownedit with statfile))

2017-09-22 Thread fredvs
> It is a matter of style. Personally I think one should not restrict the
users  if they want to change the window size.

I agree with that too. But the "all docked" layout is to give users a "out
of the box" nice layout.
They may change the size of some forms (but I prefer to let some forms
unsizable, like the players.

But some forms, like the files form, should be sizable in height (unsizable
in width), like the files form while docked.
But this, I was not able to do.
Also, when using menu "All float", sometimes (many times) the main form
(with height = emptyheight), the caption "Drag/drop the window into this
area" does not appear and it is not possible to drag/drop forms anymore.

I have to use timerwait and then all is more than perfect: --->

 procedure tmainfo.ontimerwait(const Sender: TObject);
begin 
timerwait.enabled := false;

// this for the height = emptyheight problem
if height <= emptyheight then
 begin
 basedock.height:= height - 20 ;
 basedock.width:= width - 20 ;
end;

// this for the scrolled width form:
if fs_sbverton in container.frame.state then
 width := fowidth + scrollwidth  else width := fowidth ;

 end;
end;

Martin, please do not take it as reproach, MSE docking is working
**PERFECT**, those changes are because now I touch all mini details.

And with above code, all is more than perfect, after many hard testing.

Many, many thanks.

Fre;D
 





--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] StrumPract is released !

2017-10-05 Thread fredvs
Hello Martin.

>From http://www.lazarusforum.de/viewtopic.php?f=53=11100 :

---> Ich wollte es compilieren, bekomme aber die Fehlermeldung Can't find
unit unixcp used by cwstring.

Huh, all the Windows compiled releases were done with Wine (Windows Emulator
in Linux) without problems.

But after the message of lazarusforum.de I did try to compile with the real
Windows 10.

And here, indeed, there is that "Can't find unit unixcp used by cwstring".

Very strange.

Must Linux be used to compile application for Windows? ( ;-) )

Fre;D 



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Parent font.color ?

2017-10-02 Thread fredvs
> That is wrong. Do you have a reproducible testcase? 

I will try and if ok, I will give a demo.

> Are you sure you did not change a  font color by accident? 

Maybe.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About MSE TSlider.

2017-10-02 Thread fredvs
> or better 

Huh, to not loose the last position in the tlabel ?

Yes, but it is done just after button is released by the audio thread.

But ok, it is better ;-)

Now the test:

Perfect, smooth, direct, no delay, no "scratch".

So, this works perfectly:

- audio thread event to TSlider:
 
 if not TrackBar.clicked then  .value:= sender.value;

- user event using  TSlider:

 .value:= sender.value; 
 if akind = sbe_thumbposition then   := sender.value; 

Many thanks Martin.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


[MSEide-MSEgui-talk] StrumPract is released !

2017-10-02 Thread fredvs
Hello.

I am happy to announce that StrumPract 1.4 is released.

StrumPract is various tools for musicians.

Like:
 
- Learn to play drums set in 4 lessons and develop your art.
- Practice your other instruments with a editable drums machine.
- Tune your guitar and bass.
- Play audio files and loop it.
- DJ console for mixing, with 2 players and direct-output of mic.
- Record your ideas-jam.

There are compiled executables for Linux 32/64, Windows 32/64, FreeBSD 64
and arm RPi.
All is included in the release, nothing to install. 

You may download the release from here:
 https://github.com/fredvs/strumpract/releases/

And the source from there:
 https://github.com/fredvs/strumpract/

Enjoy ;-)

Fre;D

PS: Thanks Martin.



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Parent font.color ?

2017-10-02 Thread fredvs
> Do you have a reproducible testcase?

See demo in attachement.

msefontcolor.zip
  

> Are you sure you did not change a  font color by accident? 

Yes.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] StrumPract is released !

2017-10-10 Thread fredvs
Hello.

StrumPract 1.5.0. is released!

https://github.com/fredvs/strumpract/releases/tag/1.5.0

It includes a complete DJ console.
With auto-mixing from file list (auto-load next song at end of song),
auto-slider custom-able, and much more...

About the RPi-arm version.
Now that the appropriate audio-latency is set, the audio-quality is
excellent.
And if you use a hdmi connexion with a good receptor (a good tv for
example), you can have a real 24 bit output resolution.

Nearly all the native sound cards can deal float 32 resolution but the litle
amplifier integrated in the sound-card (used for headphone output or
line-out) is produced by the conversion of a 16 bit integer signal.

And so the input, even if it was float 32 bit, is re-formated into integer
16 bit.

But if you use a hdmi output, then the sound card will not deal with his
integrated analog-amplifier and will sent a float 32 bit signal.

And if your hdmi receptor has a 24 bit converter, you will have the same
quality as the best expensive sound cards on big heavy machine.

About Windows > XP and synchro of Drums-Set loop.
After XP, Windows did a completely different audio-driver.
In short, if a audio-flux is paused, Windows make that flux idle and when
the flux is resumed, it will take a little time for Windows to re-activate
the flux. And makes the synchro bad.
The trick is to use a endless flux and if you need to pause it, just give a
"silent" flux to the audio-driver (samples = 0).

But all this make the latency different as the "suggested" latency given by
the sound-card.

Setting the mse timer.options := [to_highres] did not help a lot.

Conclusion, with Windows > XP, for the Drums Set, it could be necessary to
tune manually the latency to have perfect result.  It can be done in menu
"Audio Config". 

Have fun.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] StrumPract is released !

2017-10-05 Thread fredvs
> The problem is in project setting

Oooops, indeed, fixed, very sorry for the disagreement.

Also there was some tosysfilepath() missing for the Windows 64/32 version
--> "File does not exist...".

---> Fixed in Release 1.4.3.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Extended Tfilelistview.

2017-10-12 Thread fredvs
> datalist_files.adddirectory('./',fil_ext1,'"*.mp3" "*.wav" "*.ogg"
"*.flac"'); 

Perfect.

> Tip: Ctrl+LeftClick in source editor on "adddirectory" shows the the
> header definition: 

Huh, I use it lot of time but... I have to admit that const amask was well
hidden.
I have to wash my glasses.

Many thanks Martin and, one more time, big wow for mse stringgrid..

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and docking.

2017-09-08 Thread fredvs
> The size of the main form must be adjusted to the minimal sizes of the
docked forms.

Huh, it seems to be.

> I'll take a look. 

OK, thanks.

Other thing.

I was successfully able to translate PThread.h into pascal dynamic loading
header: --->

https://github.com/fredvs/dynx

It works perfectly for fpGUI (with MSE, I have to adapt code, but sure you
will do it better than me ;-)).

So the question:

Do you thing it could be possible to also dynamic load libdl.so (the library
for dynamically load libraries) ?
I did the translation of dl.h  into pascal dynamic loading header but was
not able to do it work.

But maybe it is normal that it does not work because libdl.so needs ...
libdl.so to dynamic load it self.
And so maybe the only working way is to do static linking for libdl.so.

(Once again, something difficult to explain, I hope you did understand).

Thanks.

Fre;D





--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and XLib.

2017-09-08 Thread fredvs
Hello Martin.

Did you know that you may combine static + dynamic linking?

I mean, take the advantage of static linking (adding some infos about the
library in ELF, more safe, ...)
and take the advantage of dynamic linking (using fast libdl.so library,
change name/dir of the lib, etc ...).

For example in dynamic X11 header add this:

---> Procedure dummy() ; cdecl; external libX11;

Because of the use of "external", fpc will add -lX11 for the linker and then
the lib infos in ELF.

in link.res --->

INPUT(
-ldl
-lX11  -->  This was added by "external"
)

But, like you and I only know, "external" is buggy and will cut the ·so.n·
part of libX11. ;-(

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and docking.

2017-09-11 Thread fredvs
> basedock.dragdock.currentsplitdir:= sd_tabed; 

OK, I will play with it, thanks.

About status.sta and strumpract:

procedure tmainfo.oncreatedform(const sender: TObject);
begin
ondockall(sender);
end;

I would like to not use ondockall(sender) at creation and use instead
status.sta for form position to save/load last layout.
 
Sadly, when doing this (after assigned status.sta for each form), after
closing + reloading the application, the layout is not the same.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and XLib.

2017-09-09 Thread fredvs
> Another advantage of ld-linux.so.2 is that it is possible to list the
needed libraries by "ldd ".

Huh, it is what I try to explain: you may use dlopen()/dlsym() and list list
the needed libraries by "ldd".
---> Add in dynamic linking code a {$linklib} statement (or Procedure
dummy() ; cdecl; external libX11; ).

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and docking.

2017-09-09 Thread fredvs
Hello Graeme.

For me the most important is that we are not in trouble ;-)

Thanks.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and XLib.

2017-09-09 Thread fredvs
> Then the application can not start if the library is not found and 
> it can not be compiled if there is no libX11.so -> ibX11.so.6 link. 

Of course the "double advantage" works only if buggy "external" was fixed !
;-)

> Maybe in compiler/link.pas:509 (TLinker.AddSharedCLibrary()).

OK, I will check.
Many thanks.

Each day it becomes clearer.

So, it I understand ok:

- There are 2 ways to load a library with Unix:

1)- With ld-linux.so.2
2)- With libdl.so.2

It seems (not sure, I want confirmation) that ld-linux.so.2 is better than
libdl.so.2 for speed, ressource used,...

Could it be possible to imagine a different dynlibs.pas ?
Actual dynlibs.pas is using libdl.so.2.
Could it be possible to use ld-linux.so.2 instead (with correspondent
methods, of course) ?

All this if the "external" bug was not fixed.

Otherwise, if the "external" bug is fixed, a custom name/path of the library 
may be used (and so have the advantage of a "dynlibs" way).  


Fre;D





--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and docking.

2017-09-09 Thread fredvs
> Please take the attached patch for inspiration.

Wow, thanks Martin.
Will test it tonight.

Write you later.

Fre;D




--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and XLib.

2017-09-09 Thread fredvs
Hello Martin.

Do you know where in fpc code (or how to find it) "external" is assigned and
'so.n' deleted ?

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and XLib.

2017-09-09 Thread fredvs
> > Maybe in compiler/link.pas:509 (TLinker.AddSharedCLibrary()). 

Procedure TLinker.AddSharedCLibrary(S:TCmdStr);
  begin
if s='' then
  exit;
{ remove prefix 'lib' }
if
Copy(s,1,length(target_info.sharedclibprefix))=target_info.sharedclibprefix
then
  Delete(s,1,length(target_info.sharedclibprefix));
{ remove extension if any }
if
Copy(s,length(s)-length(target_info.sharedclibext)+1,length(target_info.sharedclibext))=target_info.sharedclibext
then
 
Delete(s,length(s)-length(target_info.sharedclibext)+1,length(target_info.sharedclibext)+1);
{ ready to be added }
SharedLibFiles.Concat(S);
  end;

But... it is hypra-simple to fix.  And it would not make any trouble for
previous code, it will be still compatible.

Sincerely I do absolutely not understand.

Fre;D 
 



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and XLib.

2017-09-09 Thread fredvs
Re-hello.

Huh, in previous mail, at end please read this:

The last war would be "What is better: libdl.so.2 or ld-linux.so.2 ? 

Could it be possible to imagine a different dynlibs.pas ? 
Actual dynlibs.pas is using libdl.so.2. 
Could it be possible to use ld-linux.so.2 instead (with correspondent 
methods, of course) ? 

And for static linking that already uses ld-linux.so.2, 
if  if the "external" bug is fixed, a custom name/path of the library 
may be used and so have the advantage of a "dynlibs" way.


Fre;D




--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and XLib.

2017-09-09 Thread fredvs
> I do not understand...

OK, I do understand now.
So it will not be possible to use ld-linux.so.2 for calling the library form
where/ when you want.

> Please do not confuse "static" linking and "dynamic" 

OK. Let do like this:

"shared/dynamic" linking using  ld-linux.so.2:
I will call it "ld dynamic linking".

"shared/dynamic" linking using libdl.so.2.:
I will call it "dl dynamic linking".

ot confuse "static" linking and "dynamic" 

> ld-linux.so.2 uses tables and library names built in in binary by "ld" at
> compile time
  Ha ok,   Huh, no way to create that tables at run time (and not use the
built in in binary) and use them at run time with  ld-linux.so.2 ?

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and XLib.

2017-09-09 Thread fredvs
-- This is continuation from a other MSE topic --

>>On 2017-09-08 19:18, Martin Schreiber wrote: 
>> Free Pascal should allow to define the SONAME source in binding unit -
>> using 
>> dlopen()/dlsym() instead is a hack IMHO. 

>On 2017-09-08 20:18, Graeme wrote: 
>I think so too. 

OK, ok, I agree with you too.

But for "conventional" applications only.

Take the example of this project:

https://github.com/fredvs/uidesigner_ext

It allows "Only One Instance" feature.

So, if a instance is already running, a new instance will only sent a
message to the first instance and then close itself.
And then that second instance will not charge/load all the X11/Xft/PThread
stuffs before to sent the message.

I did try with integration into ideU and indeed the message is sent much
faster.

Fre;D





--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and docking.

2017-09-11 Thread fredvs
> See attachment.

WOW.  And this is exactly what I wanted since th beginning (but was not able
to do).

And it can save/retrieve  mix of floated and docked windows --> perfect.

OK, time to study what you changed.

Many thanks.

The git-patch feature is very impressive.
Thanks to have used the last strumpact commit for statfile.patch.

For first layout.patch, I did modification in code after last commit.
So I did a regression to be able to apply the patch (the patch was refused).
And after manually add the previous modifications.

But maye it is possible to apply a patch even if code was changed ?

Anyway layout.patch and statfile.patch where perfectly apply.
And I have exactly what I wanted.

Fre;D






--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and docking.

2017-09-11 Thread fredvs
Re-hello Martin.

Your patch is lovely.

I did only a little change:

procedure tmainfo.oncreatedform(const sender: TObject);
begin
if not fileexists(tstatfile1.filename) then ondockall(sender);
end;

This to have all the forms docked for first run.

Thanks.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and XLib.

2017-09-06 Thread fredvs
---> https://bugs.freepascal.org/view.php?id=32367

Answer: ... that will only lead to wars about what form should be default in
precompiled code.

--->  "You wanted to avoid war at the price of dishonor. You have dishonor
and you will have war." W Churchill.

Fre;D




--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and docking.

2017-09-13 Thread fredvs
Hello Martin.

>> This to give 3 layout options in main menu (Dock, Tab, Float). 
> You know that it is possible to switch to tabs by dragging the grip ?

Now I know ;-) --> magnifique.

> Split caption can be activated by
> .frame.grip_options go_showsplitcaption. 

OK, done but... what is it for? I do not see any change in hint of grip
panel I want to write in the hint of the grip what you explain just
before. But only in the hint of the grip, not change the caption of the
tabs.

>>The main form stay tabbed ;-( 
> basedock.dragdock.currentsplitdir:= sd_horz; 

Excellent, it works like charms.

> dragdock.onlayoutchanged will be called too,
> dragdock.activewidget returns the active docked widget, it can be nil. 

Perfect, I get what I want.

Other thing.
I try to customize the tabs of the main dock form.
For this I did:

---> basedock.drackdock.tab.frame.tframecomp1

where tframecomp1 has rounded corner in parameters (like in ideU-tabs).

But the tabs do not become rounded ;-(

It could be that tframecomp1 is not ok, but I checked and it has the same
parameters than ideU-tabs.

It is like it apply round corner for the main frame, not the tabs.

Also, this is ok for changing the height but the faceactivetab does not
change the color of tab: --->

procedure tmainfo.onchangelayout(const sender: tdockcontroller);
begin
if (basedock.dragdock.currentsplitdir = sd_tabed) and
(basedock.dragdock.activewidget <> nil) then 
begin
if basedock.dragdock.activewidget = drumsfo then 
begin
height := 275;
basedock.dragdock.tab_faceactivetab := drumsfo.tfacedrums
end else
if basedock.dragdock.activewidget = guitarsfo then 
begin
height := 105;
basedock.dragdock.tab_faceactivetab := guitarsfo.tfaceguitars;
end else
...
etc...

end;

Thanks.

Fre;D




--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and docking.

2017-09-10 Thread fredvs
> Set the statfile properties of the widgets/components which should store
the 
> state in the statfile to mainfo.tstatfile1. 

Ok done. Perfect, have test, no more problems, many thanks.

Huh,.., about "Tabbed dock" forms, is it possible to do it by code too
(switch from "normal" docked to "tab docked"?
With what propreties must I play ?

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and docking.

2017-09-10 Thread fredvs
> Why do you store layout information in statfile although you set the
position, 
> size and dock parent in code? 

I was thinking to keep all infos like checkbox.state, volume, paterns,
history, etc... via the statfile.

> Please clear the statfile property of the forms other than mainfo. 

OK, but then I will loose infos like checkbox.state, volume, paterns,
history, etc...

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and docking.

2017-09-10 Thread fredvs
Re-re-re hello Martin.

Aaargh, I monopolize you forum, sorry.

About problem of previous mail (load strumpract with a status.sta).

After some more test, no good news.  It still appends, even after reboot,
let say 1 times on 3.

To resume if open strumpract and close it, and reopen it, 1 time on 3, the
docking is not ok.

Fre;D




--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and docking.

2017-09-10 Thread fredvs
Re-re hello Martin.

About problem of previous mail (load strumpract with a status.sta), it
appends not every times .

Now, after reboot, it is ok every time.  So sorry for the noise (but maybe
you are a idea why sometimes it appends).

Thanks.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and docking.

2017-09-11 Thread fredvs
Hello Martin.

Im deep in mse dock.

OK, "simple" main dock form is working impressive perfectly.

Floated forms the same.

Now time to jump into "tabed" main dock form.

This to give 3 layout options in main menu (Dock, Tab, Float).

Maybe you remember when I was taking about the hint of the grip for docked
forms that does not appear like wanted.
What I did understand is to use for changing the hint of grip panel:

---> dragdock.caption := ' Use this to Drag Drop the Song Player window '

But for me it does not appear in grip-panel, in place the title of the form
appears as hint when moving mouse on grip panel.

But now I know where he is! 

This reveals where it was hidden:

--->  basedock.dragdock.currentsplitdir:= sd_tabed; 

See picture:
 

Could it be that it was inverted (the caption of the tab should be the title
of the form and reverse for the grip-panel) ?

Or maybe I am mixing things.

Anyway, I did change dragdock.caption to have correct tab title.
(Of course, if tab-layout is choosed, main-menu should have less items, but
that is for tonigth...).

See picture2.
 

Other thing.
When doing this:
--> basedock.dragdock.currentsplitdir:= sd_tabed;
OK, main form becomes tabbed.

But how to come back with a no-tabbed main dock form ?
This does not do the trick:
--> basedock.dragdock.currentsplitdir:= sd_none;

The main form stay tabbed ;-(

Other thing:
When selecting a tab, the heigth of main form is changed, how to keep or
change by code the size of main form when a tab is selected ?

And how to play with the tabs, how to know what tab was selected and assign
a method for each tab selected ?

The goal is to have auto-size of main form when a tab is selected to keep
the same size as the original size of the form selected by the tab.

OK, I stop for now.

Many thanks.

Fre;D




--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Application paused if no mouse event.

2017-09-25 Thread fredvs
Hello Martin.

I did play with lock()/unlock in uos but still those underrun errors.

There is something that I do not catch.

So I came back with {.$DEFINE mse} (that uses classical fpc thread +
queue()) and all synchros are ok without any error underrun message.

Also no more scratch when opening file dialog or switching from
float<>docked.

For the moment I will use fpc-threads but if somebody can make work
msethread synchro in uos, it would be a pleasure to use it instead.

Thans.

Fre;D 



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Application paused if no mouse event.

2017-09-24 Thread fredvs
Hello Martin.

...

WOW

...

>  Linux gui_getevent() breakes xfilterevent() loop if there is no message.

If I may, you did discover something **very** annoying.

My previous audio project: miXimum uses LCL + Bass audio library.
https://sites.google.com/site/fiensprototyping/

Because of that "random pause", I switched form GTK2 to Qt.

It works better for synchro but still that "random pause" when no mouse or
keyboard for a certain time.

And all my annoying post to Lazarus, Qt or Bass forum did not help.

I decided to stop to update miXimum in 2012 because of that random pause.

Also Bass library is not open-source and there are some things missing.

So I created uos the open source out of the box audio library.

I have to confess that I was desperate when same random pause appeared for
MSE gui too.

But you found the solution. ;-)

Like always, brillant.

This night will be a merciless test, StrumPract will be the dj all night
long.

Many, many thanks Brillant Martin.

Fre;D 

PS: @Graeme, maybe that MSE fix-code could help for fixing same random pause
with fpGUI.

 



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Mailing list problems

2017-09-28 Thread fredvs
Hello Martin.

I sent 3 mails yesterday.

There are still not here. ;-(

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About MSE TFilelistview.

2017-09-26 Thread fredvs
> Please use a tstringgrid or a twidgetgrid with the wanted columns and fill
it 
> with the data provided by a tfiledatalist in unit msefileutils. .

Ha, ok, I will try.

Thanks.

Fre;D




--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


[MSEide-MSEgui-talk] MSE Canvas.

2017-09-26 Thread fredvs
Hello Martin.

How to draw lines on a canvas with MSE ?

For example, 
LCL: Canvas.Line(x,y, cx, cy)...
fpGUI: Canvas.drawLine(x,y,cx,cy)...

Does it exist a demo of some use of MSE canvas/draw lines ?

Would it be possible to draw on the canvas of a TSlider.scrollbar.face ?
This to draw the wave-form of a song as background of a slider.

See simulated image:
 

Or maybe it will be easier to create a slider from scratch.

Thanks.

Fre;D




--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Application paused if no mouse event.

2017-09-26 Thread fredvs
> There is application.queueasynccall() 

OK, I will try this.

Asap.

Thanks.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE Canvas.

2017-10-01 Thread fredvs
>  Replace "visible:= true; visible:=

Ha, you did see this ;-)

I did try mywidget.redraw, mywidget.draw, mywidget.refresh,  but not
mywidget.invalidate.

Thanks for the tip.



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


[MSEide-MSEgui-talk] About MSE TSlider.

2017-10-01 Thread fredvs
Hello Martin.

Sorry to come back with this but I did not catch how to fire a event when
the right button is released from the slider-button.

I want to assign a event only when the button is released.

I did try with this tslider.onsetvalue:

procedure tsongplayer2fo.changepos(const Sender: TObject; var avalue:
realty; var accept: boolean);
begin
  if accept then
uos_InputSeek(theplayer, Inputindex, trunc(avalue * Inputlen));
 end;

But that way, "accept" is always true, even when the button is not released.

Thanks.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


[MSEide-MSEgui-talk] Color of symbol in button of tspinedit ?

2017-10-01 Thread fredvs
Hello.

Is it possible to change the color of the balck triangle-symbol of "up" and
"down" buttons of a trealspinedit ?
If yes , how ?

Thanks.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About MSE TSlider.

2017-10-01 Thread fredvs
> The purpose of "accept" is to reject a value. Set it to false if you don't
accept the value. 

Sorry, I still do not catch ;-(

Concretely, what must I change in code ?

What Tslider event?

And ainfo.eventkind = ek_buttonrelease, what Tslider event gives ainfo data?

Thanks.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About MSE TSlider.

2017-10-02 Thread fredvs
> >Sorry, I still do not catch ;-( 
> And I don^t understand what you want to achieve

OK, we are both then. :-).

Imagine that a song is playing.

So the audio thread sent, at each reading of the buffer, some data to the
main thread, like position in the sound.

Then there is a synchro: the button slider is set at the position given by
the audio thread.

If  I change the position manually while the song is playing, now, the
position is changed everytime while moving the slider-button.

It is not what I want, I would prefer that the position change only when I
release the button, and when the button is not released, only calculate the
"virtual position" and give it in the label-position..

(and it is why I did a "custom" TSlider with some public mouse-event that
you did not like).

I hope you did understand.

Fre;D




--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Parent font.color ?

2017-10-02 Thread fredvs
> Activate a local font instance either by clicking the ellipse button in
"font"

Huh, of course I did it, but there is still a problem .

But like explained in previous thread: one_of_the_forms.font.color := cl_red
---> all other child widgets, even from other forms become red-font.

But Martin, please forget this, I did manually change each widget-font color
(but not of a form) and I get what I want .

Thanks

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Color of symbol in button of tspinedit ?

2017-10-02 Thread fredvs
> trealspinedit.frame.colorglyph. 

Perfect (and indispensable for "Carbon" style).

 

Many thanks.

Fre;D




--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


[MSEide-MSEgui-talk] Parent font.color ?

2017-10-01 Thread fredvs
Hello Martin.

How to assign font color to children only ?

If there are multiple forms, doing this change the parent color of all other
forms:

one_of_the_forms.font.color := cl_red;

Idem if there is many groupboxes, assigning a font color to one groupbox -->
all other groupboxes change the color of the child.

Thanks.

Fre;D




--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Color of symbol in button of tspinedit ?

2017-10-01 Thread fredvs
Re-hello.

Suite...

And is it possible to change the color of the "X" of a tbooleanedit.value =
true ?

Thanks.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE Canvas.

2017-09-29 Thread fredvs
> Great!
Thanks!

> Attached a version with maybe better performance because it uses
> tface.image 
Many thanks, I will study it tonight.

Huh, I did test of resource consommation and, when synchronizing, the design
that needs the most ressource is the view meters of the console form.

But sure it was not a good idea to use groupbox as view meters. (but easy
for first test).
It must recalculate things not needed.

What do you think, what would use the less ressource for view meters?
I was thinking a simple canvas and draw it at each synchro.
Or maybe it exist a low ressource mse widget (like box-rectangle-circle). 

By the way, I did test on RPi3.

Your last commits for threads did a big difference in synchro and quality of
sound.
And replacing Lock()/Unlock() by queueasynccall() solves all the "crack" in
sound.

Really, the result on the RPi3/Arm in quality of sound with built in
sound-card and graphic synchro is equivalent than a i386.

Fre;D





--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE Canvas.

2017-09-29 Thread fredvs
> PS: Demo asap. 

Hello.

Here image (not simulated) of MSE Tslider with custom canvas:

<http://mseide-msegui-talk.13964.n8.nabble.com/file/t2/mse_scrollbar.png> 

To see and listen it:

https://github.com/fredvs/strumpract

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE Canvas.

2017-09-29 Thread fredvs
> Attached a version

OK, your patch is committed 8848320.

Many thanks.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] StrumPract is released !

2017-10-03 Thread fredvs
> f you could provide a video and/or some screenshots I would make an
announcement on lazarusforum.de. 

Yes, of course.

But it will be without sound. ;-(

My screen recorder gives bad sound and I prefer that people do not think
that StrumPract has the same quality of sound.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Parent font.color ?

2017-10-03 Thread fredvs
Hello Martin.

OK, thanks.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] StrumPract is released !

2017-10-03 Thread fredvs
> If you could provide a video and/or some screenshots I would make an
announcement on lazarusforum.de. 

---> 

strumpract_demo.mp4
  

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] StrumPract is released !

2017-10-03 Thread fredvs
> http://www.lazarusforum.de/viewtopic.php?f=53=11100

Thanks ;-)

Here some pictures:

StrumPract in DJ:
 

You practicing and StrumPract in background playing + recording:
 

All together + recording:
 

PS: There is already a new release: 1.4.1. 
In 1.4. there was bad anchors for buttons in FileList and the audio-latency
for cpu arm was not not set as the best.
Sorry for the disappointment.

Fre;D









--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] strumpract (was Artifacts in form scrolling (was tdirdropdownedit with statfile))

2017-09-25 Thread fredvs
> which sets the size of the form -> there will be scrollbars if basedock is
too 
> big. I meant set the size of basedock too, somethin like: 

> basedock.size:=  
> height := emptyheight; 
>  width := fowidth; 

Ha, ok, you mean to add the code of "TimerWait Workaround" ?

;-)

Ok, many thanks.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Application paused if no mouse event.

2017-09-25 Thread fredvs
> How do you do that? application.lock()/unlock()?

Maybe. I have to check uos code.
It uses {$DEFINE mse} and so uses msethreads and
application.lock()/unlock().
Maybe there are not placed on the right place...

application.lock()/unlock() is not used in Strumpact forms.

> An alternative is...
Ha, ok I will explore it.

> Another option...
Yep, I will explore it too.

Many thanks.

Fre;D






--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


[MSEide-MSEgui-talk] About MSE TFilelistview.

2017-09-25 Thread fredvs
About TFilelistview

Hello.

In filelist.opions you may sort the filelist by name, time, size...

Perfect.

But is it possible to have a filelist with those data too in extra columns? 

Or maybe only the name can be displayed.

Is it possible to apply a filter?
What would be the syntax to assign as filter, for example: '*.you, *.she,
*.me' ?

Thanks.

Fre;D





--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Application paused if no mouse event.

2017-09-25 Thread fredvs
> This night will be a merciless test, StrumPract will be the dj all night.

Hello Martin.

OK, the night was white.

Strumpact did his DJ job perfectly, no crash, no pause.

The only detail is when a thread is synchronizing graphic of a other form
(not the parent form of the thread).

It produce some underrun of the external thread.  The result is some
"scratch" in sound.
(I did add a checkbox to disable view meter in Commander form.  If enabled
---> underrun.)

But maybe it is not a good idea to synchronize things of a other form than
parent-thread form.

See picture:
 

Thanks.

Fre:D




--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] strumpract (was Artifacts in form scrolling (was tdirdropdownedit with statfile))

2017-09-25 Thread fredvs




--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] strumpract (was Artifacts in form scrolling (was tdirdropdownedit with statfile))

2017-09-25 Thread fredvs
>  height := emptyheight;  //basedock is still big -> mainfo has scrollbar(s) 
>  width := fowidth;   

Huh, it is already there in code and did not help without "timerwait
workaround".

 (see line 401 of procedure tmainfo.onfloatall(const sender: TObject) -->
main.pas).

PS: It is not important.

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and LLVM

2017-08-26 Thread fredvs
In previous mail, please read:

"Your card number does *NOT* accept transaction, please contact your bank". 

Fre;D



--
View this message in context: 
http://mseide-msegui-talk.13964.n8.nabble.com/MSE-and-LLVM-tp44p51.html
Sent from the mseide-msegui-talk mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] MSE and LLVM

2017-08-26 Thread fredvs
>> If you like to donate to the MSE projects please use the links on
>> http://msegui.com/?q=node/7

>I will.

Hello Martin.
I have try with my MasterCard ---> "Your card number does accept
transaction, please contact your bank".
I went to bank ---> "It should work, retry it..."
I did try everyday, still same "Your card number does accept transaction,
please contact your bank".

Huh, in your country, it seems that there are banks too.
Could you give simply your bank account ?

Fre;D



--
View this message in context: 
http://mseide-msegui-talk.13964.n8.nabble.com/MSE-and-LLVM-tp44p50.html
Sent from the mseide-msegui-talk mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] About MSE TFilelistview.

2017-09-26 Thread fredvs
>> Is it possible to apply a filter? 
> tfilelistview.mask:= '"*.you" "*.she" "*.me"'. 

Does not work here:

filelistfo.list_files.path := dir.value;
filelistfo.list_files.mask := '"*.mp3" "*.wav" "*.ogg" "*.flac"';

---> 

 

Fre;D



--
Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


  1   2   3   4   5   6   7   8   9   10   >