![]() | |
#11
| |||
| |||
|
|
Batch 4 Private Sub Place01_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) * * CtlMouseDown CInt(Right(Screen.ActiveControl.Name, 2)), X, Y End Sub Private Sub Place01_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single) * * If Button And acLeftButton Then * * * * CtlMouseMove CInt(Right(Screen.ActiveControl.Name, 2)), X, Y * * End If * * CtlMouseUp CInt(Right(Screen.ActiveControl.Name, 2)) End Sub There is a lot of other stuff about setting the angle of the control and fitting the control to the data (fTextWidth routine) My main problem, and that is why I will have to abandone the project is that Stephen's ActiveX control does not support the BackStyle property, which I need to be transparent. If I have 2 spaces with the tecxt at 45 degrees, there are 2 squares, each about one and 1 half inches overlapping each other and the corner of one square obscures the text in the other square. I desparately need someone who can add the additional property to Stephen's ActiveX control, I have the source code, but no idea wher to begin. Suspect that being well into my 70's it's getting a bit late to start learning VB Anything more, please come back. Incidently, very successfully, I have used a similar system for planing the seating arangement for our formal dining events, where I drag the dining tables around, alter their sizes and all the chairs move along with the tables and the right number of chairs appear depending on the length of the table (and how tightly we sppace the seats) Phil |
#12
| |||
| |||
|
|
On Mar 7, 6:36*pm, "Phil" <p... (AT) stantonfamily (DOT) co.uk> wrote: Batch 4 Private Sub Place01_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) * * CtlMouseDown CInt(Right(Screen.ActiveControl.Name, 2)), X, Y End Sub Private Sub Place01_MouseUp(Button As Integer, Shift As Integer, X As Sin gle, Y As Single) * * If Button And acLeftButton Then * * * * CtlMouseMove CInt(Right(Screen.ActiveControl.Name, 2)), X , Y * * End If * * CtlMouseUp CInt(Right(Screen.ActiveControl.Name, 2)) End Sub There is a lot of other stuff about setting the angle of the control and fitting the control to the data (fTextWidth routine) My main problem, and that is why I will have to abandone the project is t hat Stephen's ActiveX control does not support the BackStyle property, which I need to be transparent. If I have 2 spaces with the tecxt at 45 degrees, there are 2 squares, each about one and 1 half inches overlapping each ot her and the corner of one square obscures the text in the other square. I desparately need someone who can add the additional property to Stephen's ActiveX control, I have the source code, but no idea wher to begin. Suspe ct that being well into my 70's it's getting a bit late to start learning VB Anything more, please come back. Incidently, very successfully, I have used a similar system for planing t he seating arangement for our formal dining events, where I drag the dining tables around, alter their sizes and all the chairs move along with the tables and the right number of chairs appear depending on the length of t he table (and how tightly we sppace the seats) Phil Phil, You are correct about the created PDF being non-interactive, not that that can't be done. I don't think you're going to like my advice. What you are trying to do came up for me when a customer wanted to use software for "what if" scenarios for placing pool tables within his establishment. While looking for a good way to do that, I viewed one of the PDC 05 sessions about GDI+. I even had a dream that night about creating objects on a "canvas" by using mouse clicks. I went out an purchased the following book: GDI+ Programming in C# and VB.NET APress 2002 Nick Symmonds ISBN 1-59059-035-X Note: I got it quite inexpensively, used on Amazon. Later I got another GDI+ book: Graphics Programming with GDI+ Addison-Wesley 2004 Mahesh Chand ISBN 0-321-16077-0 and Pro .NET 2.0 Graphics Programming Building Custom Controls using GDI+ APress 2006 Eric White ISBN 1-59059-445-2 Instead of jury-rigging an Access form, an interesting use BTW, I think you will find it more productive to work with WPF, GDI+ and managed code such as C# or VB.NET. Exporting the results to Excel is still an option, but you are already taking Access' role a bit over the top IMO. It might be nice later to gentrify Access with such .NET possibilities, but Access doesn't seem to be the right tool at present. I'm not saying that you can't get Access to do it somehow, I'm just recommending doing it without using Access. You're never too old to learn :-). James A. Fortune CDMAPoster (AT) FortuneJames (DOT) com |
#13
| |||
| |||
|
|
I am involved with a yacht club and we need a diagram of the space number where each boat is parked and who owns the boat. |
#14
| |||
| |||
|
|
"Phil" <phil (AT) stantonfamily (DOT) co.uk> wrote in news:il3orn$pe8$1 (AT) speranza (DOT) aioe.org: I am involved with a yacht club and we need a diagram of the space number where each boat is parked and who owns the boat. I think I'd avoid the whole issue and just present "current diagram" (pick space you want to move) and then "desired new diagram" that would allow the user to click on the destination spot. While it's not nearly as spiffy an interface as drag-and-drop, it's an order of magnitude easier to program. |
#15
| |||
| |||
|
|
On 09/03/2011 18:22:45, "David-W-Fenton" wrote: "Phil" <phil (AT) stantonfamily (DOT) co.uk> wrote in news:il3orn$pe8$1 (AT) speranza (DOT) aioe.org: I am involved with a yacht club and we need a diagram of the space number where each boat is parked and who owns the boat. I think I'd avoid the whole issue and just present "current diagram" (pick space you want to move) and then "desired new diagram" that would allow the user to click on the destination spot. While it's not nearly as spiffy an interface as drag-and-drop, it's an order of magnitude easier to program. David - where's your sense of adventure? It's sooo close, other than finding out what program I have to learn to modify Stephens Rotate Text AcliveX. Other than the transparancy issue with the rotated control, it's there. Any idea what you use to create an OCX? The source appears to be some form of basic. Don't think it is n C++ It's probably VB5 or VB6, neither of which you are going to be able to use |
#16
| |||
| |||
|
|
On 09/03/2011 18:22:45, "David-W-Fenton" wrote: "Phil" <phil (AT) stantonfamily (DOT) co.uk> wrote in news:il3orn$pe8$1 (AT) speranza (DOT) aioe.org: I am involved with a yacht club and we need a diagram of the space number where each boat is parked and who owns the boat. I think I'd avoid the whole issue and just present "current diagram" (pick space you want to move) and then "desired new diagram" that would allow the user to click on the destination spot. While it's not nearly as spiffy an interface as drag-and-drop, it's an order of magnitude easier to program. David - where's your sense of adventure? It's sooo close, other than finding out what program I have to learn to modify Stephens Rotate Text AcliveX. Other than the transparancy issue with the rotated control, it's there. Any idea what you use to create an OCX? The source appears to be some form of basic. Don't think it is n C++ |
#17
| |||
| |||
|
|
On 09/03/2011 18:22:45, "David-W-Fenton" wrote: "Phil" <phil (AT) stantonfamily (DOT) co.uk> wrote in news:il3orn$pe8$1 (AT) speranza (DOT) aioe.org: I am involved with a yacht club and we need a diagram of the space number where each boat is parked and who owns the boat. I think I'd avoid the whole issue and just present "current diagram" (pick space you want to move) and then "desired new diagram" that would allow the user to click on the destination spot. While it's not nearly as spiffy an interface as drag-and-drop, it's an order of magnitude easier to program. David - where's your sense of adventure? It's sooo close, other than finding out what program I have to learn to modify Stephens Rotate Text AcliveX. Other than the transparancy issue with the rotated control, it's there. Any idea what you use to create an OCX? The source appears to be some form of basic. Don't think it is n C++ |
#18
| |||
| |||
|
|
"Phil" <phil (AT) stantonfamily (DOT) co.uk> wrote in news:il8lg2$dak$1 (AT) speranza (DOT) aioe.org: On 09/03/2011 18:22:45, "David-W-Fenton" wrote: "Phil" <phil (AT) stantonfamily (DOT) co.uk> wrote in news:il3orn$pe8$1 (AT) speranza (DOT) aioe.org: I am involved with a yacht club and we need a diagram of the space number where each boat is parked and who owns the boat. I think I'd avoid the whole issue and just present "current diagram" (pick space you want to move) and then "desired new diagram" that would allow the user to click on the destination spot. While it's not nearly as spiffy an interface as drag-and-drop, it's an order of magnitude easier to program. David - where's your sense of adventure? It's sooo close, other than finding out what program I have to learn to modify Stephens Rotate Text AcliveX. Other than the transparancy issue with the rotated control, it's there. Any idea what you use to create an OCX? The source appears to be some form of basic. Don't think it is n C++ Also, I learned in my Paradox days that one of the biggest mistakes you can make is to try to make your tools work in a way different from what they were intended. I didn't like the Paradox WAIT TABLE approach, nor the default keyboard commands. So I wrote all sorts of code to try to do the same things and remap the keyboard to something that made sense. The end result was a complete mess that never really worked well. Had I just used Paradox the way it was designed, I would have saved all that time writing all that code and would have had a working app much sooner (and one that was much more reliable, in fact). To me, you're trying to engineer something that Access was never intended to do, and you're investing a huge amount of time in something that may never work -- the problem you're encountering right now may be completely insurmountable (I don't know if it is or not, but NEITHER DO YOU!). To me, that's a sign that you're either mis-using your tools or you're using the wrong tools entirely. You can either switch to something else, or change the way you use your tools. I vote for the latter. Also, you're fixated on a particular solution to the problem, instead of on solving the problem by whatever method is easiest to do so. This is something I hate with clients, who tell me HOW they want something done instead of just telling me what the problem is that needs to be solved and letting me design the solution. |
![]() |
| Thread Tools | |
| Display Modes | |
| |