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

2017-09-17 Thread Martin Schreiber
On Saturday 16 September 2017 23:31:18 fredvs wrote:
> > 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?
>
Set tslider1.scrollbar.options sbo_thumbtrack to false. onsetvalue then will 
be triggered at button up.

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] 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] 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] MSE and docking.

2017-09-16 Thread Martin Schreiber
On Saturday 16 September 2017 15:29:45 fredvs wrote:
> > Please see attachment. The *.ppu and *.o are in src/units/
>
> Ooops, ok, captio, you are talking about the custom msegraphedits.pas.
>
> 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

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] MSE and docking.

2017-09-15 Thread Martin Schreiber
On Friday 15 September 2017 07:15:47 Martin Schreiber wrote:
> On Friday 15 September 2017 01:33:42 fredvs wrote:
> > 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.
>
> The definition of the tab padding has been changed. From VERSION.TXT:
> "
> MSEide+MSEgui breaking changes version history
> **
> 2017-09-14
>  Definition of the inner active area of buttons is made with
>  the new tframe property frameo_* instead of framei_*,
>  framei_* is used in order to adjust the caption rect.
>  ttabs.captionframe_* replaced by tframe.framei_*.
> "
> Did you have special settings? In principle it should be converted
> automatically on first load, I'll take a look.
>
It probably happened by wrong conversion of ttabwidget.captionframe_*, should 
be fixed now.
You still need to reset files_tab.tab_frame.framei_* and to set 
files_tab.tab_frametab.framei_* manually because of the failed conversion.

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] MSE and docking.

2017-09-15 Thread Martin Schreiber
On Friday 15 September 2017 01:33:42 fredvs wrote:
> 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
>
files_tab.tab_frame has framei settings, see attachment.

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] MSE and docking.

2017-09-14 Thread Martin Schreiber
On Friday 15 September 2017 01:33:42 fredvs wrote:
> 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.
>
ideU does not compile with original MSEgui. Can you provide a simple testcase 
which shows the problem?

Thanks, 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] MSE and docking.

2017-09-14 Thread Martin Schreiber
On Friday 15 September 2017 01:33:42 fredvs wrote:
>
> See picture:
> 
>
BTW, http://mseide-msegui-talk.13964.n8.nabble.com/file/t2/oldtabok.png also 
shows the white frame pixel in tabs.

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] MSE and docking.

2017-09-14 Thread Martin Schreiber
On Friday 15 September 2017 01:33:42 fredvs wrote:
> 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.

The definition of the tab padding has been changed. From VERSION.TXT:
"
MSEide+MSEgui breaking changes version history
**
2017-09-14
 Definition of the inner active area of buttons is made with
 the new tframe property frameo_* instead of framei_*,
 framei_* is used in order to adjust the caption rect.
 ttabs.captionframe_* replaced by tframe.framei_*. 
"
Did you have special settings? In principle it should be converted 
automatically on first load, I'll take a look.

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] 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] 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] MSE and docking.

2017-09-14 Thread Martin Schreiber
On Wednesday 13 September 2017 20:01:03 Martin Schreiber wrote:
>
> Maybe a special hint property is necessary for your case, I'll take a look.
>

git master 90076e9113892e138c70356df70d9d4836d43233 has tgripframe.grip_hint.

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] 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-14 Thread Graeme Geldenhuys

On 2017-09-14 03:42, fredvs wrote:

Now, all is ok. (see picture)
  


Small tip:
  NEVER use JPG format for screenshots. It generates way to much
  compression noise in the image. Use preferably PNG or GIF. If
  PNG images seem to large, switch them to Indexed PNG's (limited to
  a 256 color palette based on the colors of the image). The GIMP is
  you friend. ;-)  Any good screenshot tool worth buying would also
  support Indexed PNG's as well as RGB/normal based PNG's.

Regards,
  Graeme

--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp

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

On 2017-09-14 11:08, fredvs wrote:

I noted too that with jpg, transparency does not appear like wanted.


JPG doesn't support transparency - period.  The JPG format is only good 
for photos like taken with a digital camera. My personal oppinion - if 
you work with software, only use PNG.


Regards,
  Graeme

--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp

--
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-13 Thread Martin Schreiber
On Wednesday 13 September 2017 23:41:04 fredvs wrote:
> > 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.

The size of the added image must be 4x4 pixels. Better to use png instead jpg 
because of the needed pixel precision.

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] 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-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] MSE and docking.

2017-09-13 Thread Martin Schreiber
On Wednesday 13 September 2017 20:23:27 fredvs wrote:
>
> 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.
>
Image 7 of timagelist1 has a white pixel, see attachment. I assume it should 
be transparent.

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

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-13 Thread Martin Schreiber
On Wednesday 13 September 2017 12:57:20 fredvs wrote:
> > Split caption can be activated by
> > .frame.grip_options go_showsplitcaption.
>
> OK, done but... what is it for? 

See attachment.

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

Maybe a special hint property is necessary for your case, I'll take a look.

>
> 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 ;-(
>
git master 9da262377d41e2eb1d6486b6138ebbe2fbc86c10 has 
tdockcontroller.tab_frametab.
>
> Also, this is ok for changing the height but the faceactivetab does not
> change the color of tab: --->
>
git master 9da262377d41e2eb1d6486b6138ebbe2fbc86c10 has 
tdockcontroller.colortab, coloractivtab, facetab and faceactivetab 
(experimental).

> 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;
>
Please try again with git master 9da262377d41e2eb1d6486b6138ebbe2fbc86c10.

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] 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-12 Thread code dz
you're right , you fixed it already ;)
thanks .

--
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-12 Thread Martin Schreiber
On Tuesday 12 September 2017 11:51:46 code dz wrote:
> Hi Martin
> i got divition by zero error while docking .
> i am using the current git

Are you sure that you use current git master? I recently fixed the broken 
tabbed docking.

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] MSE and docking.

2017-09-12 Thread Martin Schreiber
On Monday 11 September 2017 23:03:33 fredvs wrote:
> 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).
>
You know that it is possible to switch to tabs by dragging the grip to the 
center of the window? Switching back to split mode happens by dragging the 
grip to the bottom or the left border of the window.

> 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.
>
Split caption can be activated by .frame.grip_options 
go_showsplitcaption.

> 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 ;-(
>
 basedock.dragdock.currentsplitdir:= sd_horz;

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

You probably need to check "currentsplitdir" in mainfo.updatelayout() and act 
accordingly.

> And how to play with the tabs, how to know what tab was selected and assign
> a method for each tab selected ?
>
"onshow" of the selected docked form will be called. 
.dragdock.onlayoutchanged will be called too, dragdock.activewidget 
returns the active docked widget, it can be nil.

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] MSE and docking.

2017-09-12 Thread code dz
Hi Martin
i got divition by zero error while docking .
i am using the current git
--
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] 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 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 Martin Schreiber
On Monday 11 September 2017 12:07:42 fredvs wrote:
>
> Sadly, when doing this (after assigned status.sta for each form), after
> closing + reloading the application, the layout is not the same.
>
See attachment.

Martin


statfile.patch.7z
Description: application/7z
--
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 docking.

2017-09-11 Thread Martin Schreiber
On Sunday 10 September 2017 19:28:12 fredvs wrote:
>
> 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 ?
>
"
 basedock.dragdock.currentsplitdir:= sd_tabed;
"
Please use MSEgui current git master version, I broke tabbed docking recently 
while trying to make docking more robust for your application, sorry.

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] 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 Martin Schreiber
On Sunday 10 September 2017 18:33:12 fredvs wrote:
> > 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...
>
Set the statfile properties of the widgets/components which should store the 
state in the statfile to mainfo.tstatfile1.

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] 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 Martin Schreiber
On Sunday 10 September 2017 14:28:23 fredvs wrote:
> 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.
>
Why do you store layout information in statfile although you set the position, 
size and dock parent in code? Please clear the statfile property of the forms 
other than mainfo.

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] 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-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 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 docking.

2017-09-09 Thread Graeme Geldenhuys

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.


I think so too. I source of the problem is FPC, and that is where the 
fix should go.


I do applaud Fred for his efforts and energy to come up with something 
that solves his problem though.


Regards,
  Graeme

--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp

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

2017-09-08 Thread Martin Schreiber
On Friday 08 September 2017 15:21:42 fredvs wrote:
> Hello Martin.
>
> I have some trouble with myform.dragdock.dockto().
>
> Sometimes the forms are not sized as wanted (see video).
>
> https://sites.google.com/site/fredvsbinaries/mse_dock2.mp4
>
The size of the main form must be adjusted to the minimal sizes of the docked 
forms. I'll take a look.

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