[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] strumpract (was Artifacts in form scrolling (was tdirdropdownedit with statfile))

2017-09-22 Thread Martin Schreiber
On Friday 22 September 2017 14:49:03 fredvs wrote:
>
> 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.

Set bounds_cxmin = bounds_cxmax = bounds_cx.

> 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: --->
>
Bugs should be fixed not "workarounded". ;-)

"
diff --git a/src/main.pas b/src/main.pas
index 65b4d94..28c4353 100644
--- a/src/main.pas
+++ b/src/main.pas
@@ -260,6 +260,7 @@ begin
si1.cx:= maxwidth;
if visiblecount = 0 then begin
 si1.cy:= emptyheight;
+si1.cx:= basedock.width; //do not change width
end
else begin
 si1.cy:= totheight + (visiblecount-1) * basedock.dragdock.splitter_size;
"

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