Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #7920 > unrolled thread
| Started by | Jeff Rollo <jrollo64@gmail.com> |
|---|---|
| First post | 2015-04-03 21:15 -0700 |
| Last post | 2015-04-06 15:47 -0700 |
| Articles | 12 — 4 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
Making a window unmovable? Jeff Rollo <jrollo64@gmail.com> - 2015-04-03 21:15 -0700
Re: Making a window unmovable? JohnMartens <martens@tennishulp.info> - 2015-04-04 09:33 +0200
Re: Making a window unmovable? Jeff Rollo <jrollo64@gmail.com> - 2015-04-04 01:56 -0700
Re: Making a window unmovable? JohnMartens <martens@tennishulp.info> - 2015-04-04 11:06 +0200
Re: Making a window unmovable? Jeff Rollo <jrollo64@gmail.com> - 2015-04-04 15:51 -0700
Re: Making a window unmovable? "Jamal Assaf" <someone@example.com> - 2015-04-05 16:55 -0400
Re: Making a window unmovable? Jeff Rollo <jrollo64@gmail.com> - 2015-04-05 20:04 -0700
Re: Making a window unmovable? Fabio PinBitmap <pinbitmap@gmail.com> - 2015-04-05 14:44 -0700
Re: Making a window unmovable? Jeff Rollo <jrollo64@gmail.com> - 2015-04-05 20:04 -0700
Re: Making a window unmovable? Jeff Rollo <jrollo64@gmail.com> - 2015-04-05 21:22 -0700
Re: Making a window unmovable? "Jamal Assaf" <someone@example.com> - 2015-04-06 14:39 -0400
Re: Making a window unmovable? Jeff Rollo <jrollo64@gmail.com> - 2015-04-06 15:47 -0700
| From | Jeff Rollo <jrollo64@gmail.com> |
|---|---|
| Date | 2015-04-03 21:15 -0700 |
| Subject | Making a window unmovable? |
| Message-ID | <40d62467-eb29-42bc-ba3b-49b2adada8eb@googlegroups.com> |
Any idea how to stop a window from being moved? Basically making a static window that can't be dragged around the screen? TIA :)
[toc] | [next] | [standalone]
| From | JohnMartens <martens@tennishulp.info> |
|---|---|
| Date | 2015-04-04 09:33 +0200 |
| Message-ID | <mfo428$b7c$1@dont-email.me> |
| In reply to | #7920 |
It is not the most elegant way but you can store the Origin when opening a window, when there is a move event then punt the windows orgini back to the one you started with. In the way teh windows wil "bounce" back to it's fixed place I'm having a "status" window with a fixed place which seems to stay at it's original position with these settings: SELF:EnableSystemMenu(FALSE) SELF:EnableMinBox(FALSE) SELF:EnableMaxBox(FALSE) SELF:EnableBorder(WINDOWNOBORDER) JOhn Jeff Rollo schreef op 4-4-2015 om 6:15: > Any idea how to stop a window from being moved? Basically making a static window that can't be dragged around the screen? TIA :) >
[toc] | [prev] | [next] | [standalone]
| From | Jeff Rollo <jrollo64@gmail.com> |
|---|---|
| Date | 2015-04-04 01:56 -0700 |
| Message-ID | <e95e4c49-2f41-49b0-9d37-7d71f7987844@googlegroups.com> |
| In reply to | #7921 |
On Saturday, 4 April 2015 18:33:18 UTC+11, JohnMartens wrote: > It is not the most elegant way but you can store the Origin when opening > a window, when there is a move event then punt the windows orgini back > to the one you started with. > > In the way teh windows wil "bounce" back to it's fixed place > > I'm having a "status" window with a fixed place which seems to stay at > it's original position with these settings: > SELF:EnableSystemMenu(FALSE) > SELF:EnableMinBox(FALSE) > SELF:EnableMaxBox(FALSE) > SELF:EnableBorder(WINDOWNOBORDER) > > JOhn > > > Jeff Rollo schreef op 4-4-2015 om 6:15: > > Any idea how to stop a window from being moved? Basically making a static window that can't be dragged around the screen? TIA :) > > Thanks John, I've tried your code but it won't work .... but thanks :)
[toc] | [prev] | [next] | [standalone]
| From | JohnMartens <martens@tennishulp.info> |
|---|---|
| Date | 2015-04-04 11:06 +0200 |
| Message-ID | <mfo9fs$r04$1@dont-email.me> |
| In reply to | #7922 |
The Move solution wil always work hvae you tried that one ? Jeff Rollo schreef op 4-4-2015 om 10:56: > On Saturday, 4 April 2015 18:33:18 UTC+11, JohnMartens wrote: >> It is not the most elegant way but you can store the Origin when opening >> a window, when there is a move event then punt the windows orgini back >> to the one you started with. >> >> In the way teh windows wil "bounce" back to it's fixed place >> >> I'm having a "status" window with a fixed place which seems to stay at >> it's original position with these settings: >> SELF:EnableSystemMenu(FALSE) >> SELF:EnableMinBox(FALSE) >> SELF:EnableMaxBox(FALSE) >> SELF:EnableBorder(WINDOWNOBORDER) >> >> JOhn >> >> >> Jeff Rollo schreef op 4-4-2015 om 6:15: >>> Any idea how to stop a window from being moved? Basically making a static window that can't be dragged around the screen? TIA :) >>> > > Thanks John, I've tried your code but it won't work .... but thanks :) >
[toc] | [prev] | [next] | [standalone]
| From | Jeff Rollo <jrollo64@gmail.com> |
|---|---|
| Date | 2015-04-04 15:51 -0700 |
| Message-ID | <dbc2a8dd-731b-44bb-b165-88413d144cac@googlegroups.com> |
| In reply to | #7920 |
On Saturday, 4 April 2015 15:15:34 UTC+11, Jeff Rollo wrote: > Any idea how to stop a window from being moved? Basically making a static window that can't be dragged around the screen? TIA :) No, I didn't try that yet John. I remember being able to do it many years ago, just by calling a function or a method but can't remember how. It may even have been in an external library...
[toc] | [prev] | [next] | [standalone]
| From | "Jamal Assaf" <someone@example.com> |
|---|---|
| Date | 2015-04-05 16:55 -0400 |
| Message-ID | <mfs7fv$ihi$1@news.albasani.net> |
| In reply to | #7920 |
Just create a borderless "dialog" window. Set Caption Bar property in the Styles tab to No Caption Bar. Make sure you create a button to close dialog with EndDialog(). Jamal "Jeff Rollo" wrote in message news:40d62467-eb29-42bc-ba3b-49b2adada8eb@googlegroups.com... Any idea how to stop a window from being moved? Basically making a static window that can't be dragged around the screen? TIA :)
[toc] | [prev] | [next] | [standalone]
| From | Jeff Rollo <jrollo64@gmail.com> |
|---|---|
| Date | 2015-04-05 20:04 -0700 |
| Message-ID | <084126de-f40c-47aa-8037-8653d9e1bb55@googlegroups.com> |
| In reply to | #7927 |
On Monday, 6 April 2015 06:55:28 UTC+10, Jamal Assaf wrote: > Just create a borderless "dialog" window. > > Set Caption Bar property in the Styles tab to No Caption Bar. > > Make sure you create a button to close dialog with EndDialog(). > > Jamal > > "Jeff Rollo" wrote in message > news:40d62467-eb29-42bc-ba3b-49b2adada8eb@googlegroups.com... > > Any idea how to stop a window from being moved? Basically making a static > window that can't be dragged around the screen? TIA :) Thanks Jamal! That sure seems to do the trick! Thanks very much :)
[toc] | [prev] | [next] | [standalone]
| From | Fabio PinBitmap <pinbitmap@gmail.com> |
|---|---|
| Date | 2015-04-05 14:44 -0700 |
| Message-ID | <d396ed5d-901f-4e40-a0e8-7ec2b1217028@googlegroups.com> |
| In reply to | #7920 |
Hello Jeff! Try this: In the dispatch method of the window: IF oEvent:Message == WM_NCLBUTTONDOWN .and. oEvent:wParam == HTCAPTION // Left mousebutton in title bar: start of drag action -> cancel! RETURN 1L ENDIF In the postinit method: SELF:EnableBorder( WINDOWNONSIZINGBORDER ) SELF:EnableMaxBox( FALSE ) SetWindowPos( SELF:Handle(), NULL_PTR, 0, 0, 0, 0, _or( SWP_FRAMECHANGED,; SWP_NOZORDER, SWP_NOSIZE, SWP_NOMOVE ) ) Hope this helps, Fábio Romling Rotheia
[toc] | [prev] | [next] | [standalone]
| From | Jeff Rollo <jrollo64@gmail.com> |
|---|---|
| Date | 2015-04-05 20:04 -0700 |
| Message-ID | <6d1d537e-50a6-4ca9-be08-b2f9d278e330@googlegroups.com> |
| In reply to | #7928 |
On Monday, 6 April 2015 07:44:31 UTC+10, Fabio PinBitmap wrote: > Hello Jeff! > > Try this: > > In the dispatch method of the window: > IF oEvent:Message == WM_NCLBUTTONDOWN .and. oEvent:wParam == HTCAPTION > // Left mousebutton in title bar: start of drag action -> cancel! > RETURN 1L > ENDIF > > In the postinit method: > SELF:EnableBorder( WINDOWNONSIZINGBORDER ) > SELF:EnableMaxBox( FALSE ) > SetWindowPos( SELF:Handle(), NULL_PTR, 0, 0, 0, 0, _or( SWP_FRAMECHANGED,; > SWP_NOZORDER, SWP_NOSIZE, SWP_NOMOVE ) ) > > Hope this helps, > Fábio Romling Rotheia Thanks for the help Fabio, couldn't seem to make it work...
[toc] | [prev] | [next] | [standalone]
| From | Jeff Rollo <jrollo64@gmail.com> |
|---|---|
| Date | 2015-04-05 21:22 -0700 |
| Message-ID | <5997d3c3-9bec-4c79-a2a3-a1169fc5f4ab@googlegroups.com> |
| In reply to | #7920 |
On Saturday, 4 April 2015 15:15:34 UTC+11, Jeff Rollo wrote: > Any idea how to stop a window from being moved? Basically making a static window that can't be dragged around the screen? TIA :) OK, initial problem sorted, thanks Jamal, but if I click off it, it hides behind the parent window. How do I stop this behavior please?
[toc] | [prev] | [next] | [standalone]
| From | "Jamal Assaf" <someone@example.com> |
|---|---|
| Date | 2015-04-06 14:39 -0400 |
| Message-ID | <mfujso$2v7$1@news.albasani.net> |
| In reply to | #7931 |
You need to set the dialog window style to "modeless". Jamal "Jeff Rollo" wrote in message news:5997d3c3-9bec-4c79-a2a3-a1169fc5f4ab@googlegroups.com... On Saturday, 4 April 2015 15:15:34 UTC+11, Jeff Rollo wrote: > Any idea how to stop a window from being moved? Basically making a static > window that can't be dragged around the screen? TIA :) OK, initial problem sorted, thanks Jamal, but if I click off it, it hides behind the parent window. How do I stop this behavior please?
[toc] | [prev] | [next] | [standalone]
| From | Jeff Rollo <jrollo64@gmail.com> |
|---|---|
| Date | 2015-04-06 15:47 -0700 |
| Message-ID | <452201e4-ccd8-4413-b7df-8347347e8aa6@googlegroups.com> |
| In reply to | #7933 |
On Tuesday, 7 April 2015 04:39:21 UTC+10, Jamal Assaf wrote: > You need to set the dialog window style to "modeless". > > Jamal > > "Jeff Rollo" wrote in message > news:5997d3c3-9bec-4c79-a2a3-a1169fc5f4ab@googlegroups.com... > > On Saturday, 4 April 2015 15:15:34 UTC+11, Jeff Rollo wrote: > > Any idea how to stop a window from being moved? Basically making a static > > window that can't be dragged around the screen? TIA :) > > OK, initial problem sorted, thanks Jamal, but if I click off it, it hides > behind the parent window. How do I stop this behavior please? Thanks Jamal, it's all slowly coming back. It's been almost 20 years!
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web