473,327 Members | 2,065 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

problem of drawing round and others

I plan to use access to manage a small tea house, but I was frustrated at
the first step.

The prolem is:

1. Within in the main form I would like to draw squares to symbolize 6
square tables (which is easy), and round to symbolize 3 round tables, I
failed to draw a round for the whole afternoon, I did not find any tool to
draw a round (circle) .

2. There is a table called "table", it is not difficult to use list box to
show all 9 tables in the main form, but what I want is to give tables shapes
(square or round) so that they will be very concrete and direct to the
users. How can I do this?

Thanks.

Paul
Nov 13 '05 #1
8 1608
use something like MS Paint and save the files as GIFS, then place them on
your form. It may also pay to investigate if you can add transparency to
them.

Let me know how you get on, because it sounds like a very interesting
concept.
Nov 13 '05 #2
Thank you WindAndWaves for your good idea. This is what I get on:

I got the round tables with MS PAINT and placed them in the main form. The
result is: they have dramatically increased the size of the app (5.5mb an
almost empty mdb with only 5 gif files!). Ok, the size of the app is not a
big issue, but the most difficult thing is how to make this possible:

you click the gif pic1 on the form and the name of the related tea house
table, say, "table 1" will automatically appear in a text control called
"table" on the same form, when you click gif pic2, then it will be shown
"table 2", etc....

any idea? Any help will be very much appreciated.

Paul

"WindAndWaves" <ac****@ngaru.com> дÈëÏûÏ¢ÐÂÎÅ
:8_*****************@news.xtra.co.nz...
use something like MS Paint and save the files as GIFS, then place them on
your form. It may also pay to investigate if you can add transparency to
them.

Let me know how you get on, because it sounds like a very interesting
concept.

Nov 13 '05 #3
Paul,
Look at the mousedown event - I have used it on images to show when the XY
coordinate range is clicked

Private Sub Image1_MouseDown(Button As Integer, Shift As Integer, X As
Single, Y As Single)
If Button = acLeftButton Then
Me!Text0 = X
Me!Text2 = Y
'comment- for demo purposes, puts coordinates in textboxes
End If
If X < 1830 And (Y > 1425 And Y < 4335) Then
MsgBox "you clicked on Table 1"
End If
and so on.......
If I were designing this, I would put all my shapes in a single pic and show
on a single form. Then when a table is selected, your code will show which
one was clicked.

HTH
Damon
"Paul T.Rong" <et***@hotmail.com> wrote in message
news:gE******************@news.chello.at...
Thank you WindAndWaves for your good idea. This is what I get on:

I got the round tables with MS PAINT and placed them in the main form. The
result is: they have dramatically increased the size of the app (5.5mb an
almost empty mdb with only 5 gif files!). Ok, the size of the app is not a
big issue, but the most difficult thing is how to make this possible:

you click the gif pic1 on the form and the name of the related tea house
table, say, "table 1" will automatically appear in a text control called
"table" on the same form, when you click gif pic2, then it will be shown
"table 2", etc....

any idea? Any help will be very much appreciated.

Paul

"WindAndWaves" <ac****@ngaru.com> дÈëÏûÏ¢ÐÂÎÅ
:8_*****************@news.xtra.co.nz...
use something like MS Paint and save the files as GIFS, then place them on your form. It may also pay to investigate if you can add transparency to them.

Let me know how you get on, because it sounds like a very interesting
concept.


Nov 13 '05 #4
Damon,

great idea! too good. Thanks for advise.
"Damon Heron" <da******@hotmail.com> дÈëÏûÏ¢ÐÂÎÅ
:Ko********************@comcast.com...
Paul,
Look at the mousedown event - I have used it on images to show when the XY
coordinate range is clicked

Private Sub Image1_MouseDown(Button As Integer, Shift As Integer, X As
Single, Y As Single)
If Button = acLeftButton Then
Me!Text0 = X
Me!Text2 = Y
'comment- for demo purposes, puts coordinates in textboxes
End If
If X < 1830 And (Y > 1425 And Y < 4335) Then
MsgBox "you clicked on Table 1"
End If
and so on.......
If I were designing this, I would put all my shapes in a single pic and show on a single form. Then when a table is selected, your code will show which one was clicked.

HTH
Damon
"Paul T.Rong" <et***@hotmail.com> wrote in message
news:gE******************@news.chello.at...
Thank you WindAndWaves for your good idea. This is what I get on:

I got the round tables with MS PAINT and placed them in the main form. The
result is: they have dramatically increased the size of the app (5.5mb an almost empty mdb with only 5 gif files!). Ok, the size of the app is not a big issue, but the most difficult thing is how to make this possible:

you click the gif pic1 on the form and the name of the related tea house
table, say, "table 1" will automatically appear in a text control called
"table" on the same form, when you click gif pic2, then it will be shown
"table 2", etc....

any idea? Any help will be very much appreciated.

Paul

"WindAndWaves" <ac****@ngaru.com> дÈëÏûÏ¢ÐÂÎÅ
:8_*****************@news.xtra.co.nz...
use something like MS Paint and save the files as GIFS, then place
them on your form. It may also pay to investigate if you can add transparency to them.

Let me know how you get on, because it sounds like a very interesting
concept.



Nov 13 '05 #5
check that the gifs themselves are small, by saving them as separate data.
They should only be a couple of Kbytes.

It sounds like you have a great idea going there. Please feel free to ask
more questions. I would be keen to see your application as I work for a
restaurant myself.

Thank you

- Nicolaas
Nov 13 '05 #6
yes, Nicolaas, I made a mistake, I placed bmp files.... thanks again.

"WindAndWaves" <ac****@ngaru.com> дÈëÏûÏ¢ÐÂÎÅ
:Cr******************@news.xtra.co.nz...
check that the gifs themselves are small, by saving them as separate data.
They should only be a couple of Kbytes.

It sounds like you have a great idea going there. Please feel free to ask
more questions. I would be keen to see your application as I work for a
restaurant myself.

Thank you

- Nicolaas

Nov 13 '05 #7
yeah, I am not sure who at MS invented BMPs, but they are pretty useless in
my experience.
Nov 13 '05 #8
WindAndWaves wrote:
yeah, I am not sure who at MS invented BMPs, but they are pretty useless in
my experience.

That's a bit like saying who invented 386, bit useless compared to a
modern PC.

--
Error reading sig - A)bort R)etry I)nfluence with large hammer
Nov 13 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: JK | last post by:
HI I have a application which is developed using VB.6.0 The application contains a Frame and Button. when the user click the button then the existing powerpoint(path hot coded) will open and fit...
0
by: eruess | last post by:
Here's the scenario: I've got a whole bunch (for the sake of argument, let's say thousands) of different little 32x14 .png files that act as buttons all over a very large website. Each button...
2
by: Peter Proost | last post by:
Hi group, I got the following piece of code which draws a square with stars round it, now I want the stars to rotate round the square, I can do this with the mx.rotate and a timer and an...
1
by: asdf | last post by:
I just started my first project where i draw lines and strings on the screen. I sucessfully drew what i needed on the screen, then realized that when it updated it just drew over the same area w/o...
1
by: Scott F K Hooper | last post by:
VB.NET 2.0 project... I have an Access database with a table that has one primary key. I have used the Add TableAdapter wizard in VS2005 to create my TableAdapter. Next I added an ObjectDataSource...
1
by: daniel_xi | last post by:
Hi all, I am running a VS 2003 .NET project on my client machine (Win 2000 SP4, ..NET framework 1.1), running an ASP.NET application on a remote web server (Win 2000 Server, IIS 6.0, .NET...
1
by: =?Utf-8?B?RjVGNUY1?= | last post by:
I have created a control by inheriting ToolStripMenuItem that has an image property called LargeImage. ------ public class EventSubMenuItem : ToolStripMenuItem { private Image _largeImage =...
16
by: =?Utf-8?B?R1ROMTcwNzc3?= | last post by:
Hi All, I have a neat little script that calculates price based on quantity without refreshing the page.. the script is - <script type="text/javascript"> function OpenWin(url) {...
1
by: Adrienne Boswell | last post by:
Gazing into my crystal ball I observed =?Utf-8?B?R1ROMTcwNzc3?= <GTN170777@discussions.microsoft.comwriting in news:443E2509-7F0E-4CEC-B243-D6EDC931DB7F@microsoft.com: ASP has no knowledge of...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.