Wednesday, August 4, 2010

Adaptive base class for window screen resolution



Adaptive screen resolution to make a window as an application base class of all forms. This entire process can be a good change to adapt to screen resolution. The principle is very simple to achieve, is to RESIZE the window to open when the control window and the window size, position. See the following source code, can easily understand.

1. Create a new window.

Write a function for the window f_resize () most of the work here.
No input parameters
Return value is shaping:

environment env
integer ii_ScreenWidth, ii_ScreenHeight
double WRadio, HRadio, Radio
integer ii_WinBolderWidth, ii_WinBolderHeight
getenvironment (env)
ii_WinBolderWidth = this.width - this.WorkSpaceWidth () / / get the border width of the form
ii_WinBolderHeight = this.height - this.WorkSpaceHeight ()
ii_ScreenWidth = env.screenwidth
ii_ScreenHeight = env.screenheight
/ / Compute the radio that need be resize

WRadio = ii_ScreenWidth/800 / / standard that the screen resolution of 800 * 600
HRadio = ii_ScreenHeight/600 / / calculate the relative 800 * 600 screen resolution variation
Radio = Min (WRadio, HRadio)
if Radio = 1.0 then / / if the screen is default 800 * 600
return 0
end if
this.hide ()
this.width = (this.width - ii_WinBolderWidth) * Radio + ii_WinBolderWidth
this.height = (this.height - ii_WinBolderHeight) * Radio + ii_WinBolderHeight
integer i
dragobject temp / / used to take a variety of control

for i = 1 to upperbound (this.control)
temp = this.control [i] / / adjust the size, location
temp.width = temp.width * Radio
temp.x = temp.x * Radio
temp.y = temp.y * Radio
temp.Height = temp.Height * Radio
choose case typeof (temp)
case tab!
tab mtab
mtab = temp
mtab.textsize = mtab.textsize * Radio / / set the font
case commandbutton!
commandbutton cb
cb = temp
cb.textsize = cb.textsize * Radio

case singlelineedit!
singlelineedit sle
sle = temp
sle.textsize = sle.textsize * Radio
case editmask!
editmask em
em = temp
em.textsize = em.textsize * Radio

case statictext!
statictext st
st = temp
st.textsize = st.textsize * Radio

case datawindow! / / datawindows get zoomed
datawindow dw
dw = temp
dw.Object.DataWindow.zoom = string (int (Radio * 100)) / / Note DATAWINDOW different from other control

case picturebutton!
picturebutton pb
pb = temp
pb.textsize = pb.textsize * Radio

case checkbox!
checkbox cbx
cbx = temp
cbx.textsize = cbx.textsize * Radio

case dropdownlistbox!
dropdownlistbox ddlb
ddlb = temp
ddlb.textsize = ddlb.textsize * Radio

case groupbox!
groupbox gb
gb = temp
gb.textsize = gb.textsize * Radio

case listbox!
listbox lb
lb = temp
lb.textsize = lb.textsize * Radio

case multilineedit!
multilineedit mle
mle = temp
mle.textsize = mle.textsize * Radio

case radiobutton!
radiobutton rb
rb = temp
rb.textsize = rb.textsize * Radio

end choose
next
this.show ()
return 0

Function written after the events in the form of OPEN can call the function.







Recommended links:



International surveys: one year loss of 10,000 practitioners in the game



convert Mpeg to avi



Different CAD-output



Storage Search Or Lookup Tools



Deletion of posts by the company, "3.15" price hike: prices starting at 20,000 yuan



EVALUATE Graphic



Thunder ruthless anti-piracy or abandoned by advertisers



Mkv



Open-source framework for thinking about [3]



CSS Color And Background Properties



Articles about Communications Tools



Chemistry teachers and multimedia courseware



convert MPG to mov



dvd audio ripper



HTML form tags and attributes



Top Browser Tools



Monday, July 26, 2010

Out errors to make your writing more efficient CSS



According to some CSS experience in writing, how to improve rendering efficiency and consumption of resources by occupation, we come to look at CSS rendering of the efficiency of writing efficient CSS.

1, hexadecimal color value of the median and the case

Write hex color value you may use lower-case letters or omitted into 3-digit, no wording on it to find concrete data to prove the efficiency of the browser's rendering is affected, but the hexadecimal value of the default standard color is capitalized and 6-digit mark. In unknown circumstances, do not want to risk the lower the efficiency of rendering.

* Do not agree-color: # f3a;

* Suggested-color: # FF33AA;

2, display the differences with the visibility

They are used to set or retrieve the display object. display hidden object does not retain the physical space, visibility reserved for the hidden objects occupy the physical space. When the browser rendering of physical space to be occupied, there will be consumption of resources.

* Do not agree-visibility: hidden;

* To use the-display: none;

3, border: none; and border: 0; the difference between

And display a similar relationship with the visibility were not retained and reserved space. More of a border: 0; despite the border to hide out, but it will for you to retain the right to use border-color/border-style.

* Do not agree-border: 0;

* To use the-border: none;

4, should not be too small background image tile

A background image 1px wide and high, although the file size is very small, rendering high-500px wide plate need to repeat the tile 2500. Improve the efficiency of the background image rendering with the image size and volume, and the maximum image file size for about 70KB.

* Do not agree - Wide high 8px below the background image tile

* The proposed use - medium size and measure the background image size

5, IE filter

IE filter in addition to consumption of resources has more compatibility issues. Among them, to make a transparent PNG filter, GIF or JPG can be used through non-transparent approach seems to avoid the use of this filter. Proposed that only a transparent GIF in IE6 applications, because IE7 has support PNG transparency above.

* Do not agree, abuse of consumption of resources as IE filters also have compatibility problems.

* To use, the best choice to use other methods to avoid filters.

6, * (margin: 0; padding: 0;) to avoid differences in browser style

* Is wildcard for all tags are initialized again, the browser's rendering consumes certain resources. Some of the label in the different browsers is almost no difference, or some have been deprecated tag (because you do not use it), they do not need to re-initialize the wildcard again this can save a little resources.

* Do not support the use of wildcard asterisk

* Do not agree, divspanbuttonbtable tag into a wildcard such as internal and external control of fill styles

* To use, to selectively control the use of wildcards within and outside the fill style.

7, do not add additional labels to describe the class or id

If you have a selector based on id as the key selector, do not add the extra tag name up. Because the ID is the only, do not exist for a reason not reduce the efficiency of matching.

* Do not agree-button # backButton ()

* Does not support -. menu-left # newMenuIcon ()

* Suggested - # backButton ()

* Suggested - # newMenuIcon ()

8, try to choose the most specific class to hold the selector

Reduce the efficiency of the system one of the largest class in the label because we used too much of the selector. By adding a class to the elements, we can be subdivided into categories of class type, so no need to waste time on a label too many choices to meet the match.

* Do not agree-treeitem [mailfolder = "true"]> treerow> treecell ()

* Suggested -. treecell-mailfolder ()

9, to avoid children and grandchildren selector

Children CSS selector is the most consumed resources selector. He is very resource intensive, especially in the tag selector to use when the class or general class. In many cases, we really want is the child selector. Unless clearly stated, is strictly prohibited in UICSS descendants selector of.

* Do not agree-treeheadtreerowtreecell ()

* Better, but still not work (see next)-treehead> treerow> treecell ()

10, the label should not contain sub-class selectors

Do not use the sub-tag class selectors. Otherwise, each element in the emergence of an additional increase would match the time. (Especially when the selector seems to mostly be matched case)

* Do not agree-treehead> treerow> treecell ()

* Suggested -. treecell-header ()

11, note the use of all child selector

Careful use of child selector. If you can not think of a way to use him, then do not use. Especially in the RDF tree and the menu will often use child selectors, like this.

* Do not agree-treeitem [IsImapServer = "true"]> treerow>. Tree-folderpane-icon ()

Remember RDF properties can be copied in the template! Advantage of this, we can copy those who want to change the child based on the attributes of RDF XUL element attributes.

* Suggested -. tree-folderpane-icon [IsImapServer = "true"] ()







Recommended links:



Flv To Swf



convert mp4 To 3gp free



E world "means the consumer through a" good FINANCIAL management easy



The pressure of free memory



mpeg4 to avi



Mp3 To Mp4 Converter



Symbian Association David Wood: Open Source, Unity And Progress



Picked Games Kids



Forbes: Goodbye, Alibaba?



"Abnormal" Jason Jiang: year one is moral derailment



Guide Audio Speech



Their "pot of gold" mean?



Selection Of Confusion Under The Weight Of



Wednesday, July 21, 2010

On the Sasser worm pleaded guilty to 19-year-old faces 5 years to prison


NEW YORK, July 6 hearing last year, "Sasser" (Sasser) worm swept across the scene of the terrorist network still is fresh in my memory. July 5, worm authors, 19-year-old Jonsson (Sven Jaschan) a court in Germany for data manipulation, computer system damage and interfere with the company pleaded guilty to charges of business. He could face five years in prison and penalties for financial compensation.

Last year in May from the onset of the "Sasser" worm spread through Microsoft's Windows operating system, affecting the world's 100 million households, or to the computer. Victims and even the British Coast Guard, the European Union headquarters and renowned institutions such as Goldman Sachs. Some securities companies will be referred to as the history of "mass destruction" the largest network virus.

Jonsson is a Microsoft offering a reward of 250,000 U.S. dollars raised after the arrest. Since last year, when the crime under 18 years old, July 5 trial is not open to the public. Prosecutors in court on the trial expressed satisfaction with the progress and possible decision to disclose Thursday (July 7) to make.

Prosecutors said that in addition to a maximum up to 5 years imprisonment, Jonsson users also need to compensate the loss. However, there have been reported economic losses have reached 13 million euros, if the rest of the world users claim for compensation, compensation payments will reach astronomical figures. The Jonsson how that compensation is unknown.

It was reported earlier Jonsson has admitted before the "Sasser" series his "masterpiece", his "work" there NetSky virus. He is believed to the preparation of these viruses are intended to identify and "kill" the other virus.






Recommended links:



MS Proxy Usage (1)



Explosion DVD to M4V



How To Convert Mp3 To Mp4



introduction Graphic EDITORS



Convert dvd to wmv



mp4 CONVERTER to avi



Power CD+G to Video Karaoke Converter



Articles about Strategy And War Games



Merry CD CD-R VQF to AC3 Backup



JSP page translation OF the principle of



Explosion RMVB Converter



matroska video file



AoreSoft Video Converter Pro



AlltoDVD DVD To Mobile



Friday, July 2, 2010

Convert to Ringtone Wizard

Convert your music files to WAV, MP3, AMR, MMF or QCP ringtones and send them to mobile phone without cables. Convert to Ringtone Wizard allows you create polyphonic ringtones directly from WAV, MP3, WMA, OGG, APE and FLAC audio files. You can convert entire songs or select any part you prefer. Convert to Ringtone Wizard also helps you to choose ringtone formats supported by your phone. Just pick your phone model to let the Wizard select ringtone format that fits your phone. Convert to Ringtone Wizard can place created ringtones to the folder on your computer and send them to your phone via the Internet, SMS or MMS without extra fees. Convert to Ringtone Wizard make ringtones sound loudly and clearly even if your original music isn't loud enough. Its step-by-step interface is very clear even for novices, it supports all phone models and mobile providers.

Get more information on Convert to Ringtone Wizard at: http://www.convertringtone.com



Recommand Link:



DVD to Sony NWZ-E436FRED conversion



iSkysoft DVD Ripper for Windows



Bluesea Flash to Blackberry FLV SWF



Youtube FLV To Flash Top Rated



Ever M4P MP3 to MPC Backup



My favorite Wizards And Components



Explosion Pocket PC Converter



HD to iAudio 9 CONVERSION



New Mathematics Education



avchd to mov



HD to iRiver P7 converter



WorldCup DVD To PDA



Digital CD AMR Audio To Midi Burner



Explosion IPhone Converter



My favorite Firewall AND Proxy Servers



Thursday, June 17, 2010

Alcsoft Video Converter

Popular Video Converter is a powerful yet easy-to-use video converter.

With Popular Video Converter, you can easily convert between all popular video formats, including HD video and Flash; rip your DVDs; save video for all popular mobile devices; join multiple video files; tweak your video with easy-to-use editing tools, and much more!

Here's just a taster of what you can do with Popular Video Converter:

- Convert video between any popular formats, including the latest ones
- NEW! Convert to and from HD formats - enjoy high-def without limitations
- Save video & DVD for iPod, iPhone, PSP, Zune, PDA/Pocket PC (including Blackberry), any cellphones
- Rip your DVD collection - save unprotected DVDs to any video format. Choose your preferred language and subtitles, extract soundtracks, even upload to your mobile device
- Use ready-made ouput format presets OR fine-tune any output video settings manually
- NEW! Specify quality level and file size of the output video with a single click. With this new 'Target Quality' feature, Popular Video Converter will set all the other video parameters automatically to deliver the quality level you specify
- Improve video quality and tweak your video with easy-to-use editing tools: split, merge, crop and rotate video, apply video filters, add watermark
- Extract soundtracks and still images from your video
- NEW! Convert a whole video library while you sleep with Automatic Shutdown feature
- Save time with high-performance conversion technology that utilizes batch conversion and multithreading

--Format Reference--

Popular Video Converter supports a great variety of media formats:

Video Formats: AVI (incl. DivX, XviD, and other codecs), DV AVI, MPEG 1,2, MP4 (incl. H.263, H.264, and other codecs), WMV, ASF, 3GP (3GPP, 3GPP2), QuickTime (MOV, QT), DVD (VOB, IFO), MOD, DAT
NEW: M2T, MTS, MKV, VRO, Flash (FLV)
Output Audio Formats: MP3, WAV, WMA. NEW: OGG, AAC
Output Image Formats: JPEG, PNG, BMP, GIF



Recommand Link:



DVD To Sony NWZ-E438F Software



Youtube Movie to Psion Box



YOUTUBE FLV to Blackberry Utility



COOL Video Converter



Directory Fax Tools



what is appdomain? how to Use and what purpose of appdomain?



comparison REFERENCE Tools



Youtube Video to Divx Utility



AaleSoft Mobile Video Converter



Youtube To Xbox 360 Pack



YOUTUBE FLV to Xbox Mixer



Happiness CD M3U Midi to MP2 Copy



Explosion SWF Converter



Perpetually VCD MPEG FLV Convert



AviSplit Classic



comparison GENEALOGY



Hope SWF to iPod



Monday, June 7, 2010

Wondershare Video to PSP Converter


Wondershare Video to PSP Converter is designed for users who want to convert video formats to PSP and put the converted files on PSP. This powerful PSP Video Formats Converter and PSP Movie Converter can both convert video/movie to PSP video MP4 and extract audio from video to MP3 and M4A. It?ˉll be the best Sony PSP Video Formats Converter for PSP Lite 3000, PSP Slim 2000, PSP 1000 users.

This Platstation Video Converter is also expert as Video to PS3 Converter, which can convert video to PS3 MP4 Video format, include 480p (720*480), 720p (1280*720 high quality), 1080p (1920*1080 high definition video).

Wondershare Video to PSP Converter provides you with various options to edit your video files, such as trimming file length, cropping video, converting multiple files at a time, customizing video and audio output settings, applying video effects, and even capturing images from your video files and so on.

key features:
1. Convert video to PSP video and PSP audio
Convert regular video formats to PSP MP4 format and extract audio from video to MP3 and WMA. The supported video files include AVI, WMV, MOV, RM, RMVB, DAT, FLV, ASF, MPG, MPEG etc.
2. Convert Video to PS3 Video
Convert video to PS3 MP4 Video format, support various resolutions including 480p (720*480), 720p (1280*720 high quality), 1080p (1920*1080 high definition video).
3. Integrated PSP Movie Manager
Provide you with built-in Wondershare Movie Manger that can transfer your PSP movies between your PSP and your computer without renaming the converted files.
4. Support various resolutions
Convert Video to PSP MP4 with output resolutions ranging from 640*480 to 1280* 720.
5. Crop video
Crop your movie video to remove the black video sides.
6. Trim movie length
Trim your video files to convert your favorite movie clips.
7. Support different video output aspect ratios including 16:9, 4:3, keep original and full screen.
8. Support capturing your favorite movie pictures and saving them as JPEG o



相关链接:



Merry RM WMA to VQF Ripper



Easy Seasonal - Screen Savers



CoreSoft DVD to iPhone Video Converter



Video Workshop



Best freeware software lists



Open FLV Converter



Articles about Languages Education



Explosion RM To DVD



Youtube Video to MPG Products



Youtube To MPEG Online



Youtube Video Backup + Converter Mixer



Science - Screen Savers Expert



Cool Music Card



Christmas-Idea DVD to PDA



Thursday, May 27, 2010

Subject Search Scanner CD Edition

SSScanner CD Edition is a full-text search utility which scans files on DVD or flash drives looking for a given word or phrase. It is capable of finding paragraphs in which your search phrase has been altered, modified or even misspelled! The product is to be burnt and distributed on CD, DVD or flash drives along with your data files, and does not require any installation on your customer's machines. All findings are grouped together into a single report allowing your customers to quickly locate documents of their interest. The product supports searches in 39 languages and processes files in multiple formats including texts, MS Word, Excel, and PowerPoint documents, PDF, HLP, Rich Text and HTML files as well as binary or executable ones. The ultimate power and performance make SSScanner an irreplaceable tool for text searches.



Recommand Link:



Apolo DVD Burner



LasVegas RM to DVD



Comment Food And Drink



Hot Server APPLICATIONS



Daniusoft Digital Media to PSP Converter



ABCMenuman



Bluesea DVD-Audio M4A Midi to Sound Copy



Evaluate RELIGION



Youtube Save + Player Pro



Happiness DVD To DivX



AmoK Playlist Copy



Professional CDA VQF to AC3 Editor



Youtube FLV to Treo Today



MuvAudio



Youtube FLV to Xbox Gold



cool freeware download Site



iSkysoft DVD to PSP CONVERTER for Mac