Div with background will not make properly
Hello
I hope you can help out me. I'm a newbie, but I appreciate learning Dreamweaver and learning * with * DW as well. I have successfully set up a site with DW, but a second has me baffled. With this site, I try to use a photo as the background for a main div. I was experimenting with different looks, and when I removed the #main height/width and then pasted in the height/width of the div, the div will not return to the old height/width front. I tried all sorts of changes to see what else could have changed, but I don't know that this css is exactly the same than when made correctly.
My goal is to create a page with a sidebar on the left and a main div with the background of the photo and a title on the page and a footer at the bottom.
Here's the URL: www.learningtreefarm.org/mainindex.html
Here's the CSS:
{body
margin: 0;
padding: 0;
text-align: center;
}
#container {}
Width: 80%;
background-color: # 9-9;
margin: 0 auto;
overflow: hidden;
text-align: left;
}
#sidebar {}
Width: 13em;
do-family: Calibri, Arial, without serif.
float: left
padding-top: 15px;
padding-right: 0;
padding-bottom: 15px;
padding-left: 0;
}
#main {}
background-image: url (.. / images/webLTFbankbarnandpasture.jpg);
height: 575 px;
Width: 773 px;
float: right;
background-repeat: no-repeat;
do-family: "Monotype Corsiva";
font size: 350%;
color: #FFF;
text-align: left;
margin: 0px;
padding: 0px;
}
#container #sidebar img {}
padding-top: 15px;
padding-right: 20px;
padding-bottom: 5px;
padding-left: 30px;
}
#container #sidebar ul {}
padding-left: 40px;
}
#footer {}
height: 100px;
do-family: Calibri, Arial, without serif.
text-align: center;
Clear: both;
padding: 0px;
border-top-width: thin;
border-top-style: solid;
border-bottom-color: #000;
}
#container #footer HR {}
Color: #000;
padding-top: 15px;
}
Hope that gives you enough information to see my problem.
annbdavis wrote:
Thank you, Osgood, but I don't want the background through the entire site, just to the main div. The sidebar and the footer
will be part of a model for future pages, but this is the first page of the site. I'm sure I know how to maintain the size of the div with just the background and the text line. My confusion is why, when I removed the size properties and then glued hide them, did not the div return to what it was before?
abdavis4
Your main
#main {}
background-image: url (.. / images/webLTFbankbarnandpasture.jpg);
height: 575 px;
Width: 773 px;
float: right;
background-repeat: no-repeat;
do-family: "Monotype Corsiva";
font size: 350%;
color: #FFF;
text-align: left;
margin: 0px;
padding: 0px;
}
Tags: Dreamweaver
Similar Questions
-
Speed Up video will not make properly
IM using CS4 Premiere Pro,
I use uncompressed TGA images at 23.98 frames per second video,.
I accelerate up to 106.8% but when I go to preview, it dosent accelerate and it is off the scale.
When I export, it is fine.
can anyone help?
Hmmm, the DV AVI type 2 NTSC 720 x 480 is good for the first... normally that's what you get mini capture DV tape... SD video...
If you can get Streamclip and place your AVI (xvid) file, you can export it to an AVI file and get rid of the Xvid...
If it sounds good (try to import for the first maybe.. .see if it looks good in there as a computer game with a video player)... then you can put THAT AVI in virtualDub and export your TGA images...
Maybe it will work OK...
Not that crazy and the idea, as I've used Quicktime pro to import MOV files and exported in the form of files MOV... to make changes to the file... better it...
stem
-
recently updated the Canon mark II, mark iii, and the images taken of the mark iii will not make previews in bridge. Bridge will show previews for the images taken with the mark ii, but not the mark iii. I have adobe cc and am using camera raw 9.2. I checked the updates and it is said that there is not. I also tried to purge the cache several times and that didn't work either. Any help with this would be so appreciated its driving me crazy!
Take a look at this: generic icons | Files camera raw | Adobe Bridge
-
Whenever I start my computer, my internal card reader must be disabled and then enabled in before Device Manager it will not work properly. I put an SD card in there and auto does not work. I check my computer and it shows that it is there, but when I double click on it to open it I get a message saying: Please insert the SD card. When I go to Device Manager and disable and enable fine orks. I tried different cards, but it makes no difference.
I installed a different card reader, but another did the same thing. This leads me to think it's a matter of Windows.
I tried to do a repair install, but it ends and said that the upgrade has failed?
Anyone have any ideas on how to solve this problem.I am running Windows 7 Pro 64-bit. It is a Renesas controller and I use the 2.1.28.0 with firmware driver 4015.
I'm not sure but I may have found the problem. I see where a guy here was having a similar problem and it was caused by Acronis. I recently installed Acronis 2012. I have been lucky to uninstall, but I will update this post when I do. He was also running windows 7-64 bit on a motherboard ASUS!
Acronis was the problem. I uninstalled Acronis and now my card reader works as it should. Strange!
-
My laptop Sony VAIO with Vista will not connect and stay connected to my wireless internet.
My laptop Sony VAIO with Vista will not connect and stay connected to my wireless internet. All other laptops in the House are perfectly. Internet disconnects, says local only, then reconnects constantly making internet hard work.
Hi Tinkerbellfancolorado,
- When is this last work fine?
- Do you receive an error message or error codes?
- Recent changes on the computer?
There could be several causes for this problem.
Try starting with these methods.
Method 1
Step 1
- Open Network Diagnostics by right-clicking the network icon in the notification area, and then click diagnose and repair.
- Make sure that all cables are connected (for example, make sure that your modem is connected to a working jack or cable phone connection, either directly or through a router).
- Reset your modem and router. Remove the power cord from the modem or router, wait at least 10 seconds, then plug in the modem and/or router back.
Step 2
Another reason may be windows disable your network adapter to save power. Turn off the power saving option in the properties of the network (wired network only cards) card:
- Open network connections by clicking the Start button, clicking Control Panel, clicking network and Internet, click network and sharing Center, and then clicking manage network connections.
- Right-click on the connection and then click Properties. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
- On the Networking tab, click Configure.
- On the power management tab, clear the allow the computer to turn off this device to save power option, and then click OK.
http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-Internet-connection-problems
Method 2
Temporarily disable the firewall, and check the status.
NOTE: To re-enable the firewall after check you the status. If you are connected to the Internet or a network during the time that your /firewall antivirus software is disabled, your computer is vulnerable to attacks.
http://Windows.Microsoft.com/en-us/Windows-Vista/turn-Windows-Firewall-on-or-off
Hope that was heloful.
Bindu S - Microsoft Support
Visit our Microsoft answers feedback Forum and let us know what you think -
iPhone 6 will not make a sound when I receive messages
MY iPhone 6 will not make a sound when I receive messages. What can I check to see what is the problem?
If it makes sounds of other alerts, calls, etc. :
Settings > sounds > your text >
-
Aero will not make changes IE delete themes
aero wallpaper will do as requested... will not remove topics... adds background on its own. How can I fix it?
Hello
See the steps mentioned in the article:
How to remove an aero theme?
http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-desktop/how-do-i-accomplish-deleting-a-theme-from-Aero/13fae01b-6bd3-4cbc-A92C-7e08da38b795Hope this information helps. Please reply with the status so that we can help you.
-
Satellite P850 - Windows 8 will not restart properly
Does anyone know why Windows 8 will not restart correctly on the laptop Satellite P850?
It seems that whenever I have to restart, especially after the installation of an update, it crashes right on the screen of "Reboot" and I usually find myself having to hold the power button down to completely stop and then turn upwards again. Sometimes, I still have to do to make it stop.
I would be very grateful for any help that anyone can give me please.
I have no idea why the Windows 8 will not restart correctly, but this document should help you to repair or restore the system of Windows 8 on your Satellite P850
+ Windows 8 recovery & Repair +.
http://APS2.toshiba-tro.de/KB0/TSB2A03ES0000R01.htmPlease post comments if this helped and how you can solve this problem!
-
The iPhone running Skype, will not take a call, it's like the ring time is set to zero, it takes callers I would but gives the caller a busy year, any help please, thank you Ken
I had the same problem - fixed it:
https://support.Skype.com/en/FAQ/FA10981/how-do-i-delete-my-shared-XML-file
Make sure that you log out of Skype on your iPhone and PC. After you delete the file, restart Skype on your computer and connect to recreate the file. The journal of Skype on your computer and in to Skype on your iPhone.
-
Want 5530 printer will not align properly
Hello
I had to change my black cartridge in my printer HP Envy 5530. Alignment printed document, I noticed that the color cartridge should also be replaced if I interrupted the process (this may have been a bad idea) and installed a new color cartridge. When the process is restarted, correct alignment of printed document, but when I put it on the glass in order to complete the process, alignment failed. It appeared that the document could not be read, and I received a message about the configuration of the cartridges to 'default' all that meant.
Then I went to copy a document (in black) and, to my surprise, it came out white. It seemed that the alignment document could not be read. I thought that the scanner have been damaged, but I was able to scan documents. I was able to print, but the quality was poor.
I tried the following without result:
1 removed the cartridges and Redid the alignment process.
2 unplug the printer and Redid the alignment process.
3. reinstall the printer.
4 Ran own process of heads and repeat the alignment.
5 etc.
I discover that the system copy so I used the color option.
I'd appreciate the help.
Thank you.
Badger66
Hello Badger66,
Welcome to the HP Forums!
I understand that your craving for 5530 will not align correctly. I will do my best to help you! I want to thank you for providing such a detailed post. Please make sure that the printer is connected to a live wall, not a surge protector. Then, please follow these steps in order:
Remove all printer ink cartridges, and then close the door
Remove the power cord from the printer (do not press the power button)
Wait for 60 seconds or more, then reconnect the power cord to the
Wait for the printer to turn completely, and then install ink cartridges
Try printing another alignmentPlease let me know if this page has been accepted or not. I will seek forward to hearing from you.
Have a good night!
-
Vista Windows freezing guard, does not and will not close properly
My computer freezing guard, does not, and it not stop correctly. What should I do to solve this problem! I tried to delete the temporary files and running a virus scan and no help
Hello
What antivirus/antispyware/security products do you have on the machine? Be one you have
EVER had on this machine, including those you have uninstalled (they leave leftovers behind which)
may cause strange problems).----------------------------------------------------
Follow these steps:
Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN
Enter this at the command prompt - sfc/scannow
How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
generates in Windows Vista cbs.log
http://support.Microsoft.com/kb/928228Also run CheckDisk, so we cannot exclude as much as possible of the corruption.
How to run the check disk at startup in Vista
http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html==========================================
After the foregoing:
How to troubleshoot a problem by performing a clean boot in Windows Vista
http://support.Microsoft.com/kb/929135
How to troubleshoot performance issues in Windows Vista
http://support.Microsoft.com/kb/950685Optimize the performance of Microsoft Windows Vista
http://support.Microsoft.com/kb/959062
To see everything that is in charge of startup - wait a few minutes with nothing to do - then right-click
Taskbar - the Task Manager process - take a look at stored by - Services - this is a quick way
reference (if you have a small box at the bottom left - show for all users, then check that).How to check and change Vista startup programs
http://www.Vistax64.com/tutorials/79612-startup-programs-enable-disable.htmlA quick check to see that load method 2 is - using MSCONFIG then put a list of
those here.
--------------------------------------------------------------------Tools that should help you:
Process Explorer - free - find out what are the files, registry keys and other objects processes have
Open, which DLLs they have loaded and more. This exceptionally effective utility will show same
you who owns each process.
http://TechNet.Microsoft.com/en-us/Sysinternals/bb896653.aspxAutoruns - free - see what programs are configured so that it starts automatically when your system
boots and you login. Autoruns shows you the full list of registry and file locations where
applications can configure Auto-start settings.
http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx
Process Monitor - Free - monitor the system files, registry, process, thread and DLL real-time activity.
http://TechNet.Microsoft.com/en-us/Sysinternals/bb896645.aspxThere are many excellent free tools from Sysinternals
http://TechNet.Microsoft.com/en-us/Sysinternals/default.aspx-Free - WhatsInStartUP this utility displays the list of all applications that are loaded
automatically when Windows starts. For each request, the following information
appears: Type of startup (registry/Startup folder), Command - Line String, name of the product;
File Version, company name, location in the registry or the file system and more. It allows you to
allows you to easily disable or remove unwanted programs that runs in your Windows startup.
http://www.NirSoft.NET/utils/what_run_in_startup.htmlThere are many excellent free tools to NirSoft
http://www.NirSoft.NET/utils/index.htmlWindow Watcher - free - do you know what is running on your computer? Maybe not. The
Window Watcher says it all, reporting of any window created by running programs, if
the window is visible or not.
http://www.KarenWare.com/PowerTools/ptwinwatch.aspMany excellent free tools and an excellent newsletter at Karenware
http://www.KarenWare.com/===========================================
Vista and Windows 7 updated drivers love then here's how update the most important.
This is my generic how updates of appropriate driver:
This utility, it is easy see which versions are loaded:
-Free - DriverView utility displays the list of all device drivers currently loaded on your system.
For each driver in the list, additional useful information is displayed: load address of the driver,
Description, version, product name, company that created the driver and more.
http://www.NirSoft.NET/utils/DriverView.htmlFor drivers, visit manufacturer of emergency system and of the manufacturer of the device that are the most common.
Control Panel - device - Graphics Manager - note the brand and complete model
your video card - double - tab of the driver - write version information. Now click on
Driver update (this can do nothing as MS is far behind the certification of drivers) - then right
Click on - uninstall - REBOOT it will refresh the driver stack.Repeat this for network - card (NIC), Wifi network, sound, mouse, and keyboard if 3rd party
with their own software and drivers and all other main drivers that you have.Now in the system manufacturer (Dell, HP, Toshiba as examples) site (in a restaurant), peripheral
Site of the manufacturer (Realtek, Intel, Nvidia, ATI, for example) and get their latest versions. (Look for
BIOS, Chipset and software updates on the site of the manufacturer of the system here.)Download - SAVE - go to where you put them - right click - RUN AD ADMIN - REBOOT after
each installation.Always check in the Device Manager - drivers tab to be sure the version you actually install
presents itself. This is because some restore drivers before the most recent is installed (sound card drivers
in particular that) so to install a driver - reboot - check that it is installed and repeat as
necessary.Repeat to the manufacturers - BTW on device at the DO NOT RUN THEIR SCANNER - manually check by model.
Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htmHow to install a device driver in Vista Device Manager
http://www.Vistax64.com/tutorials/193584-Device-Manager-install-driver.htmlIf you update the drivers manually, then it's a good idea to disable the facilities of driver under Windows
Updates, this leaves ONE of Windows updates, but it will not install the drivers who will be generally
be older and cause problems. If updates offers a new driver and then HIDE it (right click on it) and
Then, get new ones manually if you wish.How to disable automatic driver Installation in Windows Vista - drivers
http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspx===========================================
Refer to these discussions because many more excellent advice however don't forget to check your antivirus
programs, the main drivers and BIOS update and also solve the problems with the cleanboot method
first.Problems with the overall speed of the system and performance
http://support.Microsoft.com/GP/slow_windows_performance/en-usPerformance and Maintenance Tips
http://social.answers.Microsoft.com/forums/en-us/w7performance/thread/19e5d6c3-BF07-49ac-a2fa-6718c988f125Explorer Windows stopped working
http://social.answers.Microsoft.com/forums/en-us/w7performance/thread/6ab02526-5071-4DCC-895F-d90202bad8b3Hope these helps.
Rob - bicycle - Mark Twain said it is good.
-
nothing to do with java will not load on my computer - HELP!
the Java console does not work,
any site unrelated to java closes my browserno idea what's wrong?
Scan with your Virus program to see if your system is infected.
Open Internet Explorer and click Tools, manage add-ons.
Use the drop-down menu on the left side of the bottom to check all the addons.
Check to see Java are listed as being activated, otherwise click on, then click on activate, bottom right.
If they will not help or your question is uninstall Java and download www.java.com
To uninstall: Control Panel, programs and features, right click on Java, click on uninstall.
-
Traffic from internal hosts will NAT address works ok, but what speaks tests it traffic never connects.
get the 10.1.12.232 NAT host would be 172.27.63.133 and past through the VPN tunnel to 10.24.4.65 without problem. However when 10.24.4.65 tries to ping or connect to 172.27.63.133 traffic does not make inside host 10.1.12.232
ASA-1 #.
!
network object obj - 172.27.73.0
172.27.73.0 subnet 255.255.255.0
network object obj - 172.27.63.0
172.27.63.0 subnet 255.255.255.0
network object obj - 10.1.0.0
10.1.0.0 subnet 255.255.0.0
network object obj - 10.24.4.64
subnet 10.24.4.64 255.255.255.224
network object obj - 172.27.73.0 - 172.27.73.255
range 172.27.73.0 172.27.73.255
the object of the 10.0.0.0 network
subnet 10.0.0.0 255.0.0.0
network object obj - 24.173.237.212
Home 24.173.237.212
network object obj - 10.1.12.232
Home 10.1.12.232
network object obj - 172.27.63.133
Home 172.27.63.133
the DM_INLINE_NETWORK_9 object-group network
object-network 10.0.0.0 255.255.255.0
object-network 10.0.11.0 255.255.255.0
object-network 10.0.100.0 255.255.255.0
object-network 10.0.101.0 255.255.255.0
object-network 10.0.102.0 255.255.255.0
object-network 10.0.103.0 255.255.255.0
the DM_INLINE_NETWORK_16 object-group network
object-network 10.1.11.0 255.255.255.0
object-network 10.1.12.0 255.255.255.0
object-network 10.1.13.0 255.255.255.0
object-network 10.1.3.0 255.255.255.0
!
outside_1_cryptomap list extended access permitted ip object-group DM_INLINE_NETWORK_16-group of objects DM_INLINE_NETWORK_9
access extensive list ip 172.27.73.0 outside_8_cryptomap allow 255.255.255.0 10.24.4.64 255.255.255.224
access extensive list ip 172.27.63.0 outside_8_cryptomap allow 255.255.255.0 10.24.4.64 255.255.255.224
!
list of allowed outside access extended ip 10.24.4.64 255.255.255.224 172.27.63.0 255.255.255.0
list of allowed outside access extended ip 10.24.4.64 255.255.255.224 10.1.0.0 255.255.0.0
list of allowed outside access extended ip 172.27.63.0 255.255.255.0 10.1.0.0 255.255.0.0
!
NAT (inside, all) source static obj - 172.27.73.0 obj - 172.27.73.0 destination static obj - 10.24.4.64 obj - 10.24.4.64 no-proxy-arp-search to itinerary
NAT (inside, all) source static obj - 172.27.63.0 obj - 172.27.63.0 destination static obj - 10.24.4.64 obj - 10.24.4.64 no-proxy-arp-search to itinerary
NAT (inside, outside) source dynamic obj - 10.66.0.0 obj - 172.27.73.0 - 172.27.73.255 destination static obj - 10.24.4.64 obj - 10.24.4.64
NAT (inside, outside) source dynamic obj - 10.70.0.0 obj - 172.27.73.0 - 172.27.73.255 destination static obj - 10.24.4.64 obj - 10.24.4.64
NAT (inside, outside) source dynamic obj - 10.96.228.0 obj - 172.27.73.0 - 172.27.73.255 destination static obj - 10.24.4.64 obj - 10.24.4.64
NAT (inside, outside) source dynamic obj - 10.96.229.0 obj - 172.27.73.0 - 172.27.73.255 destination static obj - 10.24.4.64 obj - 10.24.4.64
NAT (inside, outside) source dynamic obj - 192.168.5.0 obj - 172.27.73.0 - 172.27.73.255 destination static obj - 10.24.4.64 obj - 10.24.4.64
NAT (inside, outside) source dynamic obj - 10.75.0.0 obj - 172.27.73.0 - 172.27.73.255 destination static obj - 10.24.4.64 obj - 10.24.4.64
NAT (inside, outside) source dynamic obj - 10.11.0.0 obj - 172.27.73.0 - 172.27.73.255 destination static obj - 10.24.4.64 obj - 10.24.4.64
NAT (inside, outside) source static obj - 10.1.3.37 obj - 10.71.0.37 destination static obj - 50.84.209.140 obj - 50.84.209.140
NAT (inside, outside) source static obj - 10.1.3.38 obj - 10.71.0.38 destination static obj - 50.84.209.140 obj - 50.84.209.140
NAT (inside, outside) source static obj - 10.1.12.232 obj - 172.27.63.133 destination static obj - 10.24.4.64 obj - 10.24.4.64
NAT (inside, outside) source dynamic obj - 10.1.0.0 obj - 172.27.73.0 - 172.27.73.255 destination static obj - 10.24.4.64 obj - 10.24.4.64
!
NAT (exterior, Interior) source static obj - 10.24.4.64 obj - 10.24.4.64 destination static obj - 172.27.63.133 obj - 10.1.12.232
NAT (outside, outside) source static obj - 10.24.4.64 obj - 10.24.4.64 destination static obj - 172.27.63.133 obj - 10.1.12.232the object of the 10.0.0.0 network
NAT (inside, outside) dynamic obj - 24.173.237.212
!
NAT (VendorDMZ, outside) the after-service automatic source dynamic obj - 192.168.13.0 obj - 24.173.237.212
outside access-group in external interface
Route outside 0.0.0.0 0.0.0.0 24.173.237.209 1
Route inside 10.1.0.0 255.255.0.0 10.1.10.1 1
Route inside 10.2.1.0 255.255.255.248 10.1.10.1 1
!
Crypto ipsec transform-set ikev1 SHA-ESP-3DES esp-3des esp-sha-hmac
Crypto ipsec transform-set ikev1 ESP-AES-256-SHA esp-aes-256 esp-sha-hmac
Crypto ipsec transform-set ikev1 ESP-AES-256-MD5 esp-aes-256 esp-md5-hmac
Crypto ipsec transform-set ikev1 ESP-3DES-SHA-DH2-esp-3des esp-sha-hmac
Crypto ipsec pmtu aging infinite - the security association
!
card crypto GEMed 8 corresponds to the address outside_8_cryptomap
card crypto GEMed 8 set peer 64.245.57.4
card crypto GEMed 8 set ikev1 transform-set ESP-AES-256-SHA ESP-AES-256-MD5
GEMed outside crypto map interface
!
: end
ASA-1 #.Hello
First of all, I would like to remove these two lines because they do nothing productive
nat (outside,inside) source static obj-10.24.4.64 obj-10.24.4.64 destination static obj-172.27.63.133 obj-10.1.12.232nat (outside,outside) source static obj-10.24.4.64 obj-10.24.4.64 destination static obj-172.27.63.133 obj-10.1.12.232
Then, I was running packet - trace to see what NAT rule actually hit you.packet-tracer input inside 10.1.12.232 12345 10.24.4.65 12345
-
Folios with videos will not download
We had a problem with folios does not download. Here is the app that we have worked with: Viridian Toolkit 2.0 on the App Store on iTunes
We tried the following:
- Update and publish everything in the Folio Producer
- update to v. 32
- the folio reuploading
But, for the moment, nothing seemed to work. I was told that if we tried the update of the app and were still running on these issues to contact the support staff with a link to the app we are working with. Any help would be much appreciated.
Thanks in advance!
Your current application is a 32.0.3 viewer.
We got out a fix (32.1) on September 29, concerning large downloads - see below
Digital Publishing Suite help | DPS Bug Fix Release Notes
Download the failures of large files With v32 iOS apps, download of the significant assets via a slow connection caused a timeout to occur, resulting in a failure of a transfer. Specifically, this problem occurred when a part of a Folio took longer than 120 seconds to download on the device. This problem has been resolved with version v32.1. The solution is to reconstruct and resubmit your iOS app.
-
TouchEvent only will not work properly with two mobile fingers
Hello
I'm not quite sure what the problem. My code running, sometimes, this mobile finger 1 causes actions that could only be triggered by moving the finger 2. When mobile fingers 2, then, further actions are triggered, which could be invoked by the 2 finger, so it seems to be a bit strange. It's also a little messy to debug. Anyone ideas? Is this a case for the Issue Tracker?
private int lastX1; private int lastY1; private int lastX2; private int lastY2; private int lastAngle; private boolean fingerOne = false; private boolean fingerTwo = false; boolean touchEvent(TouchEvent message) { switch(message.getEvent()) { case TouchEvent.DOWN: if(message.getX(1) > -1) { lastX1 = message.getX(1); lastY1 = message.getY(1); fingerOne = true; } if(message.getX(2) > -1) { lastX2 = message.getX(2); lastY2 = message.getY(2); lastAngle = Fixed32.atand2(lastX1 - lastX2, lastY1 - lastY2); fingerTwo = true; } return false; case TouchEvent.MOVE: if(message.getX(1) > -1 && (lastX1 != message.getX(1) || lastY1 != message.getY(1))) { //do some action here lastX1 = message.getX(1); lastY1 = message.getY(1); if(fingerTwo) { lastAngle = Fixed32.atand2(lastX1 - lastX2, lastY1 - lastY2); } } if(message.getX(2) > -1 && (lastX2 != message.getX(2) || lastY2 != message.getY(2))) { lastX2 = message.getX(2); lastY2 = message.getY(2); final int lastAngle = this.lastAngle; this.lastAngle = Fixed32.atand2(lastX1 - lastX2, lastY1 - lastY2); final int rotation = Fixed32.toRoundedInt(this.lastAngle - lastAngle); //do other action with rotation here } return false; case TouchEvent.UP: if(message.getX(1) > -1)fingerOne = false; if(message.getX(2) > -1)fingerTwo = false; } return false; }
I'm not sure what the problem is that you meet, but there is a problem with the TouchEvent return incorrect values if the two points of contact Cross (IE if you touch the left and right of the screen and then move your fingers together, once they cross the X 1 value will now follow the finger instead of finger 1 2).
Maybe you are looking for
-
Update to ios 9.3.1
I use the iphone 4S with ios 8.4.1. I tried to upgrade to ios 9.3.1 but whenever it is said there was error and impossible to pass. Is it because the iphone 4S does not support ios 9.3.1? Is it possible to upgrade in any case without having to buy a
-
Continuously generate a sine wave
Is there a way to generate a waveform in Labview without user input to stop it permanently? All shipping LV examples require the user to press a button to stop. I need to automate that in Teststand. I want to: Step 1 - generate a sine wave continuo
-
I can't get the cable USB converter to RS - 485 to work with Modbus RTU communication. My system works with the third-party USB-rs485 converter but not with the cable OR. I installed the driver properly, and the communication parameters are correct
-
I recently bought a HP laptop. The product number is F9H90UA #ABA and the model is 15-g071nr. Whenever I run online of youtube videos, the computer will crash. I get the error, SYSTEM_THREAD_EXCEPTION_NOT_HANDLED (ATIKMDAG. (SYS). Is this a comm
-
Boot fail error bios checksum after bios update
Oh, im so nervous I "update" the bios of my Compaq SR5027CL with this http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=pv-66758-1&lc=en&dlc=en&cc=us&... I have download and run this patch and the program tells me that the bios ha