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

2017-10-02 Thread Martin Schreiber
On Monday 02 October 2017 23:25:53 fredvs wrote:
> Hello.
>
> I am happy to announce that StrumPract 1.4 is released.
>
Congrats!

If you could provide a video and/or some screenshots I would make an 
announcement on lazarusforum.de.

Martin

--
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


[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] 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


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 Martin Schreiber
On Monday 02 October 2017 16:23:20 Martin Schreiber wrote:
>
> Use tslider.scrollbar.onafterevent and
> "
> procedure tmainfo.aftereventev(const sender: tcustomscrollbar;
>const akind: scrolleventty; const avalue: Real);
> begin
>  if akind = sbe_thumbposition then begin
>   := sender.value;
>  end
>  else begin
>   .value:= sender.value;
>  end;
> end;
> "
>
or better
"
procedure tmainfo.aftereventev(const sender: tcustomscrollbar;
   const akind: scrolleventty; const avalue: Real);
begin
 .value:= sender.value;
 if akind = sbe_thumbposition then begin
  := sender.value;
 end;
end;
"
Martin



--
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 Martin Schreiber
On Monday 02 October 2017 16:02:45 fredvs wrote:
> > 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,

Aha, yes, all  fonts of children use the next activated font upwards 
in the widget hierarchy.

> even from other forms become red-font. 
>
That is wrong. Do you have a reproducible testcase? Are you sure you did not 
change a  font color by accident?

Martin

--
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 Martin Schreiber
On Monday 02 October 2017 15:50:59 fredvs wrote:
> > trealspinedit.frame.colorglyph.
>
> Perfect (and indispensable for "Carbon" style).
>
> 
>
It is also possible to change the RGB value of symbolic colors by 
"
 setcolormapvalue(cl_glyph,cl_white);
"
in startup code before creating the forms. All glyphs use cl_glyph by default. 
The color values also can be defined with tskincontroller.colors[n].

Martin

--
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 Martin Schreiber
On Monday 02 October 2017 15:44:32 fredvs wrote:
> > >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..
>
Use tslider.scrollbar.onafterevent and
"
procedure tmainfo.aftereventev(const sender: tcustomscrollbar;
   const akind: scrolleventty; const avalue: Real);
begin
 if akind = sbe_thumbposition then begin
  := sender.value;
 end
 else begin
  .value:= sender.value;
 end;
end;
"

Martin

--
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


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