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

2017-09-26 Thread Martin Schreiber
On Tuesday 26 September 2017 15:57:29 fredvs wrote:
> >> Is it possible to apply a filter?
> >
> > tfilelistview.mask:= '"*.you" "*.she" "*.me"'.
>
> Does not work here:
>
> filelistfo.list_files.path := dir.value;

That sets the mask and loads the files.
"
filelistfo.list_files.path:= './*.mp3';
"
loads the mp3 files of currentdirectory.

> filelistfo.list_files.mask := '"*.mp3" "*.wav" "*.ogg" "*.flac"';
>
sets the mask for next readlist() command.
"
filelistfo.list_files.directory:= './';
"
sets the directory for the next readlist() command.
"
 filelistfo.list_files.readlist();
"
reads the mp3, wav, ogg and flac files of the current directory.

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] Application paused if no mouse event.

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

Ha, ** VERY MUCH ** better. ;-)

---> No more underrun error, no scratch when opening dialog files, no
scratch when switching float<>tab or opening/closing forms.

Synchronization: perfect. (maybe even better than fpc-queue()).

OK, re-come back to {$DEFINE mse} when using uos (that was updated, of
course).

Well done 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] 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


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


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

2017-09-26 Thread Martin Schreiber
On Monday 25 September 2017 20:58:57 fredvs wrote:
>
> But is it possible to have a filelist with those data too in extra columns?
>
> Or maybe only the name can be displayed.
>
tfilelistview inherits from tlistview which shows tlistitem objects.

Please use a tstringgrid or a twidgetgrid with the wanted columns and fill it 
with the data provided by a tfiledatalist in unit msefileutils.

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

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