VC wrote a color selection box, imitation Office style with VC wrote a color marquee, imitation office style, no MFC what the framework, call very simple to specify the display position point and the default color, such as:
POINT pt; pt.x = 100; pt.y = 100; CColorPicker *clrpk = new CColorPicker(pt, HexClr(0xFF0000));
Effect Chart:
Color Pickup box for C + +
Code:
ColorPicker.h#define HEXCLR (RGB) ((DWORD) (rgb>>16) | ( RGBAMP;0XFF00) | ((RGB
This effect is needed for a small project recently. after the project is completed today, we will share this effect with you. The principle is to use a text (or textarea) control, and then add a move effect to move the text control up. The key point is to obtain the control height in the creationcomplete event. Otherwise, the height error may be too large.
Source code For example:
XML version = "1.0" encoding = "UTF-8"
?>
MX: Application
Xmlns: MX
= "Http://www.adobe.com/2006/
,Type: ' Vertical '});})$ (function () {$ (' #wrap9 '). Marquee ({Auto:false,SPEED:500,Shownum:3,Steplen:3,Prevelement: $ (' #prev9 '),Nextelement: $ (' #next9 '),Prevbefore:function () {Alert (' prev before callback~ ')},Prevafter:function () {Alert (' prev after callback~ ')},Nextbefore:function () {Alert (' Next before callback~ ')},Nextafter:function () {Alert (' Next after callback~ ')}});})
, it can basically cover all the features of t
radius of rotation amplitude, this is a guess.yradius:0,//The vertical radius of the rotation amplitude, this is guessed, because the path of the rotation is an ellipse, you know.Altbox:null,//Show picture the style name of the ALT attributeTitlebox:null,//display the style name of the title property of the pictureFPS:30,//I guess the step of the rotational motionAutorotate: ' No ',//whether auto play, set "left" or "right" to play automaticallyautorotatedelay:1500,//Play delayspeed:0.2,//playb
In C # , the multi-box component is:checkbox. As with the radio box, it is also a relatively common component. The main properties of the Multi box are:Name,Text,Checked. The Name property represents the names of this component. the Text property represents the title of this component. Checked Indicates whether this component is already selected. The main event is the checkedchanged event. For example: Choose multiple choices of your personal interests and hobbies. The relevant effects and code
How to connect JS $ ("#pdelete"). Click (function () { var pdelete = confirm ("Confirm delete"); var a = Document.getelementsbyname ("title"); var a = $ (". Title");This can be understood as receiving a list of things like Java, or it can be understood as an array var bb = ""; var temp = ""; for (var i = 0; i JS pick up the value of the marquee
Document directory
Direction
Method
Loop
Speed
Latency
Align
Background Color
Area
Blank (margins)
Moving text (marquee)
Basic syntax
La la, I will move it!
Text movement attribute settings
Direction
La la, I move from right to left!
La la, I move from left to right!
Method
La la, I walked around in a circle!
La la! I just took a rest onc
The effect is as follows:Code:"Div_group"> class="Rule-multi-porp"> "Cblgroupid"> "Cblgroupid_0"Type="checkbox"Name="cblgroupid$0"Value="1"/> for="Cblgroupid_0"> Registered Members "cblgroupid_1"Type="checkbox"Name="cblgroupid$1"Value="2"/> for="cblgroupid_1"> Senior Members "cblgroupid_2"Type="checkbox"Name="cblgroupid$2"Value="3"/> for="cblgroupid_2"> Intermediate Members "Cblgroupid_3"Type="checkbox"Name="cblgroupid$3"Value="4"/> for="Cblgroupid_3"> Diamond Members Code: class="Rule-sing
Use of the marquee attribute
(09:45:59)
ReprintedBytes
Mobile attribute settings, such movement is not limited to text, but can also be applied to images, tables, and so on.
Mouse Properties
OnMouseOut = this. start () ...... scroll out of the mouse
OnMouseOver = this. stop ()...
Direction
Method
Loop
Speed
Latency
Layout settings
Align)
Background ColorBlack, Olive, Teal, Red, Blue, Maroon, Navy, Gray, Lime,Fuchsia, White, Gree
Syntax:
By using the mobile property marquee, you can not only dance your text, but also apply it to images, tables, and so on.
Direction = left, indicating the direction. The text above shows "Welcome to kiccom Youth Learning Channel !" Move from right to left! In addition, the direction is right, up, down.
In addition to direction, we can also add other restricted elements:
How to move:
Loop movement: loop = n (n, indicating the number of ti
LED marquee 2, led headlight
This is the address of the previous Article: http://blog.csdn.net/pandeng4639088/article/details/46550257
In the previous article, I analyzed the principles and rules of the running horse lamp. Although the story would have ended there, I thought about it again on my way to lunch, since A hypothetical length is added to object A, why not map the hypothetical length to object? In real life, this effect also exists, that is,
;= pbox.width-lbmsg.width)//determines whether the end of the text collides to the right edge of the container - { theFlag =true; + } A } the } + #endregionMethod1 #regionMarquee Thread2 NewThread (() =3 {4 while(true)5 {6 Try7 {8 Labelrunex ();9 }Ten Catch { } OneThread.Sleep ( -); A
controls?It's actually very simple:Typically a control with a data source will specify ItemTemplate (DataTemplate), the Datatemplate.createcontent method can generate ItemTemplate specified content, and then the resulting content of the BindingContext is specified as data in the data source.1 PrivateView Getchildview (Objectdata) {2View view =NULL;3 if( This. ItemTemplate! =NULL) {4 if( This. ItemTemplate! =NULL)5View = (view) This. Itemtemplate.createcontent ();6 7 if(View!
1. Other functionsobj = setinterval (' function name ', number of milliseconds); Clearinterval (obj); ---> This is equivalent to a timer;obj = SetTimeout (' function name ', number of milliseconds); Cleartimeout (obj);2. Scroll bar! doctypehtml>Run results650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/89/46/wKioL1gOkMPBSRncAAAI1AfveRs827.png-wh_500x0-wm_3 -wmp_4-s_1529369556.png "title=" Qq20161024203244.png "alt=" Wkiol1gokmpbsrncaaai1afvers827.png-wh_50 "/>3. Happy LanternRun resul
1. Basic syntaxInput, you can also add checked= "checked" to indicate the default check value2. Precautions:In the Radio box, to ensure that the name of each option is the same value, to achieve the single selection effect.However, in the check box, the name is not the same as the multi-select effect1 formname= "Test"Mathod= "POST"Action= "Http://www.baidu.com">2Do you like to travel?BR/>3 inputtype= "ratio"name= "Love"value= "1"checked= "Checked">like4 inputtype= "ratio"name= "Love"value= "2" >
1.a:link{color:black. Control link Effect2.a:visited{color:red;} controls the effect of the mouse point3.a:hover{color:yellow: Controls the effect of mouse slide4.a;active{color:black: The effect of control chain contact after5.cursor:pointer; Mouse Change Hand type6. Make the selected check box change text to red so that the input box automatically gets the text in the focus becomes redInput:focus{color:red;}input[type= "checkbox"]:checked+span{color:#f00;}1 DOCTYPE HTML>2 HTML>3 Head>4 MetaCha
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.