buildingblocks3.rss

来自「《UIQ 3 The Complete Guide》书的源代码」· RSS 代码 · 共 724 行 · 第 1/2 页

RSS
724
字号
						slot_id = EQikItemSlot2;
						type = EEikCtEdwin;
						itemflags = EQikCtrlFlagIsFocusing;

						// a 1 line editor
						unique_handle = EAppEdwin1; 
						control = EDWIN
							{
							flags = 0;
							lines = 1;
							width = 16;
							maxlength = 64;
							};
						}
					};
				};
			},

		QIK_CONTAINER_ITEM_CD_LI
			{
			type = EQikCtIconTwolineBuildingBlock;
			control = QIK_SYSTEM_BUILDING_BLOCK
				{
				flags = EQikBuildingBlockDividerBelow;
				content =
					{
					QIK_SLOT_CONTENT_DIRECT
						{
						slot_id = EQikIconSlot1;
						type = EEikCtImage;
						control = IMAGE
							{
							bmpfile="*";
							bmpid=EMbmBuildingblocks3Icon0;
							bmpmask=EMbmBuildingblocks3Icon0mask;
							};
						},
					QIK_SLOT_CONTENT_DIRECT
						{
						slot_id = EQikItemSlot1;
						type = EEikCtEdwin;
						itemflags = EQikCtrlFlagIsFocusing;

						// a 2 line editor
						unique_handle = EAppEdwin2; 
						control = EDWIN
							{
							flags = 0;
							lines = 2;
							width = 16;
							maxlength = 64;
							};
						}
					};
				};
			},

		QIK_CONTAINER_ITEM_CD_LI
			{
			type = EQikCtHalflineHalflineBuildingBlock;
			control = QIK_SYSTEM_BUILDING_BLOCK
				{
				flags = EQikBuildingBlockDividerBelow;
				content =
					{
					QIK_SLOT_CONTENT 
						{
						slot_id = EQikItemSlot1;
						caption = "Password"; 
						},
					QIK_SLOT_CONTENT_DIRECT
						{
						slot_id = EQikItemSlot2;
						type = EEikCtSecretEd;
						itemflags = EQikCtrlFlagIsFocusing;

						// a 1/2 line secret editor
						unique_handle = EAppEdwin3; 
						control = SECRETED
							{
							num_letters = 8;
							};
						}
					};
				};
			},
		QIK_CONTAINER_ITEM_CD_LI
			{
			type = EQikCtHalflineHalflineBuildingBlock;
			control = QIK_SYSTEM_BUILDING_BLOCK
				{
				flags = EQikBuildingBlockDividerBelow;
				content =
					{
					QIK_SLOT_CONTENT 
						{
						slot_id = EQikItemSlot1;
						caption = "Num editor"; 
						},
					QIK_SLOT_CONTENT_DIRECT
						{
						slot_id = EQikItemSlot2;
						type = EQikCtNumberEditor;
						itemflags = EQikCtrlFlagIsFocusing;

						// a 1/2 line number editor
						unique_handle = EAppEdwin4; 
						control = QIK_NUMBER_EDITOR
							{
							min=10;
							max=100;
							};
						}
					};
				};
			},

		QIK_CONTAINER_ITEM_CD_LI
			{
			type = EQikCtHalflineHalflineBuildingBlock;
			control = QIK_SYSTEM_BUILDING_BLOCK
				{
				flags = EQikBuildingBlockDividerBelow;
				content =
					{
					QIK_SLOT_CONTENT 
						{
						slot_id = EQikItemSlot1;
						caption = "Float pt editor"; 
						},
					QIK_SLOT_CONTENT_DIRECT
						{
						slot_id = EQikItemSlot2;
						type = EQikCtFloatingPointEditor;
						itemflags = EQikCtrlFlagIsFocusing;

						// a 1/2 line floating point number editor
						unique_handle = EAppEdwin5; 
						control = QIK_FLOATING_POINT_EDITOR
							{
							min=0.0;
							max=9.9e3;
							};
						}
					};
				};
			},

		QIK_CONTAINER_ITEM_CD_LI
			{
			type = EQikCtHalflineHalflineBuildingBlock;
			control = QIK_SYSTEM_BUILDING_BLOCK
				{
				flags = EQikBuildingBlockDividerBelow;
				content =
					{
					QIK_SLOT_CONTENT 
						{
						slot_id = EQikItemSlot1;
						caption = "IP editor"; 
						},
					QIK_SLOT_CONTENT_DIRECT
						{
						slot_id = EQikItemSlot2;
						type = EQikCtIpEditor;
						itemflags = EQikCtrlFlagIsFocusing;

						// a 1/2 line ip editor
						unique_handle = EAppEdwin6; 
						control = QIK_IP_EDITOR
							{
							};
						}
					};
				};
			}
		};
	}




////////////////////////////////////////////////////////////////////
RESOURCE QIK_CONTAINER_SETTINGS r_page3_control
	{
	controls =
		{
		QIK_CONTAINER_ITEM_CD_LI
			{
			type = EQikCtCaptionedOnelineBuildingBlock;
			control = QIK_SYSTEM_BUILDING_BLOCK
				{
				flags = EQikBuildingBlockDividerBelow;
				content =
					{
					QIK_SLOT_CONTENT 
						{
						slot_id = EQikItemSlot1;
						caption = "Time editor"; 
						},
					QIK_SLOT_CONTENT_DIRECT
						{
						slot_id = EQikItemSlot2;
						type = EQikCtTimeEditor;
						itemflags = EQikCtrlFlagIsFocusing;
						unique_handle = EAppDateTime1;
						control = QIK_TIME_EDITOR
							{
							minTime = TIME
								{
								second=0;
								minute=0;
								hour=0;
								};
							// restrict time to a max of 8 hrs, 59 mins, 59 secs
							maxTime = TIME
								{
								second=59;
								minute=59;
								hour=8;
								};
							};
						}
					};
				};
			},

		QIK_CONTAINER_ITEM_CD_LI
			{
			type = EQikCtCaptionedOnelineBuildingBlock;
			control = QIK_SYSTEM_BUILDING_BLOCK
				{
				flags = EQikBuildingBlockDividerBelow;
				content =
					{
					QIK_SLOT_CONTENT 
						{
						slot_id = EQikItemSlot1;
						caption = "Date editor"; 
						},
					QIK_SLOT_CONTENT_DIRECT
						{
						slot_id = EQikItemSlot2;
						type = EQikCtDateEditor;
						itemflags = EQikCtrlFlagIsFocusing;
						unique_handle = EAppDateTime2; 
						control = QIK_DATE_EDITOR
							{
							minDate = DATE
								{
								day=0;
								month=0;
								year=1999;
								};
							maxDate = DATE
								{
								day=6;
								month=11;
								year=2021;
								};
							};
						}
					};
				};
			},

		QIK_CONTAINER_ITEM_CD_LI
			{
			type = EQikCtCaptionedOnelineBuildingBlock;
			control = QIK_SYSTEM_BUILDING_BLOCK
				{
				flags = EQikBuildingBlockDividerBelow;
				content =
					{
					QIK_SLOT_CONTENT 
						{
						slot_id = EQikItemSlot1;
						caption = "Date + Time editor"; 
						},
					QIK_SLOT_CONTENT_DIRECT
						{
						slot_id = EQikItemSlot2;
						type = EQikCtTimeAndDateEditor;
						itemflags = EQikCtrlFlagIsFocusing;
						unique_handle = EAppDateTime3; 
						control = QIK_TIME_AND_DATE_EDITOR
							{
							minTimeAndDate = TIME_AND_DATE
								{
								second=0;
								minute=0;
								hour=0;		// 00:00:00 on
								day=0;		// 1st of
								month=0;	// January
								year=1999;	// 1999
								};
							maxTimeAndDate = TIME_AND_DATE
								{
								second=59;
								minute=59;
								hour=23;	// 23:59:59 on
								day=6;		// 7th of
								month=11;	// Dec
								year=2021;	// 2021
								};
							flags=EQikTimeForce24HourFormat;
							};
						}
					};
				};

			},

		QIK_CONTAINER_ITEM_CD_LI
			{
			type = EQikCtCaptionedOnelineBuildingBlock;
			control = QIK_SYSTEM_BUILDING_BLOCK
				{
				flags = EQikBuildingBlockDividerBelow;
				content =
					{
					QIK_SLOT_CONTENT 
						{
						slot_id = EQikItemSlot1;
						caption = "Duration editor"; 
						},
					QIK_SLOT_CONTENT_DIRECT
						{
						slot_id = EQikItemSlot2;
						type = EQikCtDurationEditor;
						itemflags = EQikCtrlFlagIsFocusing;
						unique_handle = EAppDateTime4; 
						control = QIK_DURATION_EDITOR
							{ // displays as hrs:mins on uiq3
							minDuration = DURATION
								{
								seconds=0;
								};
							maxDuration = DURATION
								{
								seconds=3600; // = 3600/60 mins = 1hr 
								};
							};
						}
					};
				};
			}
		};
	}

////////////////////////////////////////////////////////////////////////////////////////
RESOURCE TBUF r_str_view_title			{ buf="View title";}

// Dont change the order of these as the C++ code assumes they are sequential.
RESOURCE TBUF r_str_list_content_1		{ buf="South Africa";}
RESOURCE TBUF r_str_list_content_2		{ buf="Australia";}
RESOURCE TBUF r_str_list_content_3		{ buf="Sri Lanka";}
RESOURCE TBUF r_str_list_content_4		{ buf="India";}
RESOURCE TBUF r_str_list_content_5		{ buf="New Zealand";}
RESOURCE TBUF r_str_list_content_6		{ buf="West Indies";}
RESOURCE TBUF r_str_list_content_7		{ buf="England";}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?