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


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

MDI Taskbar

Started bycoogee.2015@gmail.com
First post2015-05-21 16:51 -0700
Last post2015-05-25 02:22 -0700
Articles 4 — 3 participants

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


Contents

  MDI Taskbar coogee.2015@gmail.com - 2015-05-21 16:51 -0700
    Re: MDI Taskbar Mathias <mathias.hakansson@consultec.se> - 2015-05-22 00:19 -0700
      Re: MDI Taskbar "Glen Townsley" <glent@pronamics.com.au> - 2015-05-23 05:01 +1000
        Re: MDI Taskbar Mathias <mathias.hakansson@consultec.se> - 2015-05-25 02:22 -0700

#8123 — MDI Taskbar

Fromcoogee.2015@gmail.com
Date2015-05-21 16:51 -0700
SubjectMDI Taskbar
Message-ID<a695171b-6aa9-481f-99e0-7000a4554b48@googlegroups.com>
I am using Don Carslaw's excellent MDI Taskbar and have got it working 
rather well in VO 2.8 (I can email an image). I now need to extend the 
functionality so that I can drag from one window to drop on another. My plan 
is for the drag operation to highlight the button belonging to window the 
drop is to occur on and it will select that tab. For example, in the 
attached image, I would drag a resource from the resource explorer, hover 
over the Contract items button which would select the contract items window 
and allow me to drop.

I can't get a message to fire that I can trap to do the selection. I've 
tried using

oEvt:Message == WM_MOUSEMOVE .AND. oEvt:wParam == MK_LBUTTON

in the dispatch of the window that owns the buttons but that doesn't seem to 
work for me and I don't know where to look now.

Anyone got any ideas that I could try.

Cheers

Glen Townsley

[toc] | [next] | [standalone]


#8124

FromMathias <mathias.hakansson@consultec.se>
Date2015-05-22 00:19 -0700
Message-ID<86e13240-623a-4e16-84c7-e39efe4ae913@googlegroups.com>
In reply to#8123
Here is something to work with...

/MathiasH

do case
        	case (uMsg == WM_KEYDOWN) .or. (uMsg == WM_KEYUP) .or. (uMsg == WM_CHAR)
	            lShiftOn := logic(_cast, _and(GetKeyState(VK_SHIFT), short(_cast, 0x8000)))
	            lCtrlOn  := logic(_cast, _and(GetKeyState(VK_CONTROL), short(_cast, 0x8000)))
	            lExtSel  := lShiftOn .and. ((uMsg == WM_KEYDOWN) .or. (uMsg == WM_KEYUP)) .and.;
	            ((wParam == VK_LEFT) .or. (wParam == VK_RIGHT) .or. (wParam == VK_END) .or. (wParam == VK_HOME))
	            if !((lAllowSelection .and. lExtSel) .or. (lCtrlOn .and. (uMsg != WM_CHAR)))

Den fredag 22 maj 2015 kl. 01:51:51 UTC+2 skrev cooge...@gmail.com:
> I am using Don Carslaw's excellent MDI Taskbar and have got it working 
> rather well in VO 2.8 (I can email an image). I now need to extend the 
> functionality so that I can drag from one window to drop on another. My plan 
> is for the drag operation to highlight the button belonging to window the 
> drop is to occur on and it will select that tab. For example, in the 
> attached image, I would drag a resource from the resource explorer, hover 
> over the Contract items button which would select the contract items window 
> and allow me to drop.
> 
> I can't get a message to fire that I can trap to do the selection. I've 
> tried using
> 
> oEvt:Message == WM_MOUSEMOVE .AND. oEvt:wParam == MK_LBUTTON
> 
> in the dispatch of the window that owns the buttons but that doesn't seem to 
> work for me and I don't know where to look now.
> 
> Anyone got any ideas that I could try.
> 
> Cheers
> 
> Glen Townsley

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


#8129

From"Glen Townsley" <glent@pronamics.com.au>
Date2015-05-23 05:01 +1000
Message-ID<mjnuff$uvv$1@speranza.aioe.org>
In reply to#8124
Mathias,

That's a different approach, I give it a try.

Cheers

Glen

"Mathias"  wrote in message 
news:86e13240-623a-4e16-84c7-e39efe4ae913@googlegroups.com...

Here is something to work with...

/MathiasH

do case
        case (uMsg == WM_KEYDOWN) .or. (uMsg == WM_KEYUP) .or. (uMsg == 
WM_CHAR)
            lShiftOn := logic(_cast, _and(GetKeyState(VK_SHIFT), 
short(_cast, 0x8000)))
            lCtrlOn  := logic(_cast, _and(GetKeyState(VK_CONTROL), 
short(_cast, 0x8000)))
            lExtSel  := lShiftOn .and. ((uMsg == WM_KEYDOWN) .or. (uMsg == 
WM_KEYUP)) .and.;
            ((wParam == VK_LEFT) .or. (wParam == VK_RIGHT) .or. (wParam == 
VK_END) .or. (wParam == VK_HOME))
            if !((lAllowSelection .and. lExtSel) .or. (lCtrlOn .and. (uMsg 
!= WM_CHAR)))

Den fredag 22 maj 2015 kl. 01:51:51 UTC+2 skrev cooge...@gmail.com:
> I am using Don Carslaw's excellent MDI Taskbar and have got it working
> rather well in VO 2.8 (I can email an image). I now need to extend the
> functionality so that I can drag from one window to drop on another. My 
> plan
> is for the drag operation to highlight the button belonging to window the
> drop is to occur on and it will select that tab. For example, in the
> attached image, I would drag a resource from the resource explorer, hover
> over the Contract items button which would select the contract items 
> window
> and allow me to drop.
>
> I can't get a message to fire that I can trap to do the selection. I've
> tried using
>
> oEvt:Message == WM_MOUSEMOVE .AND. oEvt:wParam == MK_LBUTTON
>
> in the dispatch of the window that owns the buttons but that doesn't seem 
> to
> work for me and I don't know where to look now.
>
> Anyone got any ideas that I could try.
>
> Cheers
>
> Glen Townsley 

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


#8134

FromMathias <mathias.hakansson@consultec.se>
Date2015-05-25 02:22 -0700
Message-ID<58e2e554-3165-448a-b2a6-3956391bbf03@googlegroups.com>
In reply to#8129
Don't, that code is for trapping key strokes.

You should listen to WM_LBUTTONDBLCLK, WM_LBUTTONDOWN and WM_LBUTTONUP.

/MathiasH

Den fredag 22 maj 2015 kl. 21:02:12 UTC+2 skrev Glen Townsley:
> Mathias,
> 
> That's a different approach, I give it a try.
> 
> Cheers
> 
> Glen
> 
> "Mathias"  wrote in message 
> news:86e13240-623a-4e16-84c7-e39efe4ae913@googlegroups.com...
> 
> Here is something to work with...
> 
> /MathiasH
> 
> do case
>         case (uMsg == WM_KEYDOWN) .or. (uMsg == WM_KEYUP) .or. (uMsg == 
> WM_CHAR)
>             lShiftOn := logic(_cast, _and(GetKeyState(VK_SHIFT), 
> short(_cast, 0x8000)))
>             lCtrlOn  := logic(_cast, _and(GetKeyState(VK_CONTROL), 
> short(_cast, 0x8000)))
>             lExtSel  := lShiftOn .and. ((uMsg == WM_KEYDOWN) .or. (uMsg == 
> WM_KEYUP)) .and.;
>             ((wParam == VK_LEFT) .or. (wParam == VK_RIGHT) .or. (wParam == 
> VK_END) .or. (wParam == VK_HOME))
>             if !((lAllowSelection .and. lExtSel) .or. (lCtrlOn .and. (uMsg 
> != WM_CHAR)))
> 
> Den fredag 22 maj 2015 kl. 01:51:51 UTC+2 skrev cooge...@gmail.com:
> > I am using Don Carslaw's excellent MDI Taskbar and have got it working
> > rather well in VO 2.8 (I can email an image). I now need to extend the
> > functionality so that I can drag from one window to drop on another. My 
> > plan
> > is for the drag operation to highlight the button belonging to window the
> > drop is to occur on and it will select that tab. For example, in the
> > attached image, I would drag a resource from the resource explorer, hover
> > over the Contract items button which would select the contract items 
> > window
> > and allow me to drop.
> >
> > I can't get a message to fire that I can trap to do the selection. I've
> > tried using
> >
> > oEvt:Message == WM_MOUSEMOVE .AND. oEvt:wParam == MK_LBUTTON
> >
> > in the dispatch of the window that owns the buttons but that doesn't seem 
> > to
> > work for me and I don't know where to look now.
> >
> > Anyone got any ideas that I could try.
> >
> > Cheers
> >
> > Glen Townsley

[toc] | [prev] | [standalone]


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


csiph-web