Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #2871 > unrolled thread

BBRowser 3 issue

Started byMartin <spam@spam.spam>
First post2012-01-25 17:22 +0000
Last post2012-01-31 16:55 +0000
Articles 7 — 4 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  BBRowser 3 issue Martin <spam@spam.spam> - 2012-01-25 17:22 +0000
    Re: BBRowser 3 issue "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2012-01-26 12:35 +1100
      Re: BBRowser 3 issue Martin <spam@spam.spam> - 2012-01-26 09:05 +0000
        Re: BBRowser 3 issue "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2012-01-27 12:19 +1100
          Re: BBRowser 3 issue "richard.townsendrose" <richard.townsendrose@gmail.com> - 2012-01-27 03:43 -0800
    Re: Browser 3 issue "Jamal" <vodotnet_nospam@yahoo.com> - 2012-01-25 16:50 -0500
    Re: BBRowser 3 issue Martin <spam@spam.spam> - 2012-01-31 16:55 +0000

#2871 — BBRowser 3 issue

FromMartin <spam@spam.spam>
Date2012-01-25 17:22 +0000
SubjectBBRowser 3 issue
Message-ID<ZSWTq.2887$EN5.1064@newsfe21.ams2>
Hello

I have 3 browsers ona screen, but when I maximise the mouse thinks it is 
still following the original locations of the browsers.

So when they went up the mouse clicks on the second browse but the top 
browse responds as the bottom of the top browse was in this location.

WAS          IS
              +---------
+--------    |
|            |
|            +---------
+-------     +---------
+---------   |
|            |

Any ideas please?

I am having a little panic on this

Thanks

Martin

[toc] | [next] | [standalone]


#2872

From"Stephen Quinn" <stevejqNO@bigpondSPAM.net.au>
Date2012-01-26 12:35 +1100
Message-ID<852Uq.2162$v14.134@viwinnwfe02.internal.bigpond.com>
In reply to#2871
Martin

LeftMouseButtonClick or RightMouseButtonClick??

When you maximise the window - are you also resizing the bbrowsers??
How are you detecting where the mouse is in regards to the bbrowser 
locations??

You could reset focus() (or move the mouse over/up/down) to whichever 
bbrowser had focus prior to the maximisation

Alternative - don't maximise the window<bg>


CYA
Steve 

[toc] | [prev] | [next] | [standalone]


#2873

FromMartin <spam@spam.spam>
Date2012-01-26 09:05 +0000
Message-ID<3H8Uq.7$Sg5.3@newsfe26.ams2>
In reply to#2872
Calling this in postinit, just after Init

METHOD SetupAlign			CLASS DailyDelView

// Route Browse
Self:oDCAreaTotBr:OwnerAlignment			:= OA_WIDTH

Self:oTPDDVRoute:AreaTotBr:OwnerAlignment	:= OA_WIDTH_HEIGHT
Self:oTPDDVRoute:OwnerAlignment				:= OA_WIDTH_HEIGHT
Self:oDCDDVTab:OwnerAlignment				:= OA_WIDTH

Self:oTPDDVRoute:AreaTotBr:EnableDragSelection(True)
Self:oTPDDVRoute:AreaTotBr:DragDropMode		:= BDDM_CLIENT


// Right Box
Self:oDCViewGroupBox1:OwnerAlignment		:= OA_X
Self:oDCDEL_ORDTOT:OwnerAlignment			:= OA_X
Self:oDCDEL_LINE:OwnerAlignment				:= OA_X
Self:oDCDEL_TOTENT:OwnerAlignment			:= OA_X
Self:oDCDEL_LEAF:OwnerAlignment				:= OA_X
Self:oDCDEL_UAREA:OwnerAlignment			:= OA_X
Self:oDCDEL_WEIGHT:OwnerAlignment			:= OA_X
Self:oDCDEL_ORDTOTTXT:OwnerAlignment		:= OA_X
Self:oDCDEL_LINETOTTXT:OwnerAlignment		:= OA_X
Self:oDCDEL_UNITTOTTXT:OwnerAlignment		:= OA_X
Self:oDCDEL_WGHTTOTTXT:OwnerAlignment		:= OA_X
Self:oDCDEL_AreaTotalTxt:OwnerAlignment		:= OA_X
Self:oDCDEL_LEAFTOTTXT:OwnerAlignment		:= OA_X
Self:oDCDEL_AreaTotalTxt1:OwnerAlignment	:= OA_X
Self:oDCDEL_AreaTotalTxt2:OwnerAlignment	:= OA_X

// Drop Browse
Self:oDCDrops:OwnerAlignment		:= OA_WIDTH

Self:oDCDrops:EnableDragSelection(True)
Self:oDCDrops:SelectionMode			:= #Multiple
Self:oDCDrops:CurrentMode			:= #Line
Self:oDCDrops:DragDropMode			:= BDDM_CLIENT + BDDM_SERVER + 
BDDM_DRAGALLFIELDSOFSERVER

Self:oCCRB1All:OwnerAlignment 		:= OA_X
Self:oCCRB2Route:OwnerAlignment		:= OA_X
Self:oCCRB3RouteDrop:OwnerAlignment := OA_X
Self:oDCDropDets:OwnerAlignment		:= OA_X
Self:oDCDDOrdersBr:OwnerAlignment	:= OA_WIDTH_HEIGHT

Self:oDCDDOrdersBr:EnableDragSelection(True)
Self:oDCDDOrdersBr:SelectionMode		:= #Multiple
Self:oDCDDOrdersBr:CurrentMode			:= #Line
Self:oDCDDOrdersBr:Editable				:= False
Self:oDCDDOrdersBr:RowHeightMax			:= 100
Self:oDCDDOrdersBr:DragDropMode			:= BDDM_CLIENT + BDDM_SERVER + 
BDDM_DRAGALLFIELDSOFSERVER

RETURN NIL



On 26/01/2012 01:35, Stephen Quinn wrote:
> Martin
>
> LeftMouseButtonClick or RightMouseButtonClick??
>
> When you maximise the window - are you also resizing the bbrowsers??
> How are you detecting where the mouse is in regards to the bbrowser
> locations??
>
> You could reset focus() (or move the mouse over/up/down) to whichever
> bbrowser had focus prior to the maximisation
>
> Alternative - don't maximise the window<bg>
>
>
> CYA
> Steve
>
>

[toc] | [prev] | [next] | [standalone]


#2875

From"Stephen Quinn" <stevejqNO@bigpondSPAM.net.au>
Date2012-01-27 12:19 +1100
Message-ID<WXmUq.2448$%E2.449@viwinnwfe01.internal.bigpond.com>
In reply to#2873
Martin

Do you have a
    oBB:Recalculate()     // for each oBB you change
after all those changes??

Might not be necessary but ya never know<g>
----------------

That's the setup
    - you say your problem is when you 'Maximise' the window and the mouse 
doesn't want to play nice.

If oBB1 had focus prior to maximising then it'll retain focus unless you 
click oBB2, so a bit more detail on what your actually doing would be nice 
to know.

If you are clicking oBB2 then something is very wrong with the code that 
identifies which oBB is under the mouse.

CYA
Steve 

[toc] | [prev] | [next] | [standalone]


#2877

From"richard.townsendrose" <richard.townsendrose@gmail.com>
Date2012-01-27 03:43 -0800
Message-ID<741dd42c-38ab-433d-b571-364978101889@1g2000yqv.googlegroups.com>
In reply to#2875
Martin

an idea

a) get the selected browse, its row and column
b) after the resize, reposition the mouse ...

may be see ContextMenuShow(oEvent) CLASS MySeekbBrowser as to where to
start

richard

[toc] | [prev] | [next] | [standalone]


#2874 — Re: Browser 3 issue

From"Jamal" <vodotnet_nospam@yahoo.com>
Date2012-01-25 16:50 -0500
SubjectRe: Browser 3 issue
Message-ID<jfptfk$cf0$1@dont-email.me>
In reply to#2871
Most likely your browsers owner alignment settings are not correct.

Jamal

"Martin"  wrote in message news:ZSWTq.2887$EN5.1064@newsfe21.ams2... 

Hello

I have 3 browsers ona screen, but when I maximise the mouse thinks it is 
still following the original locations of the browsers.

So when they went up the mouse clicks on the second browse but the top 
browse responds as the bottom of the top browse was in this location.

WAS          IS
              +---------
+--------    |
|            |
|            +---------
+-------     +---------
+---------   |
|            |

Any ideas please?

I am having a little panic on this

Thanks

Martin

[toc] | [prev] | [next] | [standalone]


#2880

FromMartin <spam@spam.spam>
Date2012-01-31 16:55 +0000
Message-ID<I1VVq.1379$w31.1219@newsfe02.ams2>
In reply to#2871
OK it has been solved due to another issue.

I was hiding a browser and making another bigger in a certain condition, 
I just removed that condition and forced the use of all 3

Also moved the aligns back into Init

All is OK now

Thanks

Martin

On 25/01/2012 17:22, Martin wrote:
> Hello
>
> I have 3 browsers ona screen, but when I maximise the mouse thinks it is
> still following the original locations of the browsers.
>
> So when they went up the mouse clicks on the second browse but the top
> browse responds as the bottom of the top browse was in this location.
>
> WAS IS
> +---------
> +-------- |
> | |
> | +---------
> +------- +---------
> +--------- |
> | |
>
> Any ideas please?
>
> I am having a little panic on this
>
> Thanks
>
> Martin

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web