⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 abmain.c

📁 phab_sample
💻 C
字号:
/* M a i n l i n e                                       *//*                            AppBuilder Photon Code Lib *//*                                         Version 1.12E */#ifdef __USAGE%C - This is a QNX/Photon Application.%C [options]Options:  -s server   Server node or device name  -x x        Initial x position  -y y        Initial y position  -h h        Initial h dimension  -w w        Initial w dimensionExamples:%C -s4  Run using Photon server on node 4%C -s//4/dev/photon  Same as above%C -x10 -y10 -h200 -w300  Run at initial position 10,10 with initial   dimension of 200x300.#endif/* Standard headers */#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>/* Toolkit headers */#include <Ph.h>#include <Pt.h>#include <Ap.h>/* Local headers */#include "abimport.h"#include "proto.h"#include "abwidgets.h"#include "ablinks.h"#include "abdefine.h"#include "abevents.h"#include "abvars.h"/* AppBuilder globals */char		ab_exe_path[PATH_MAX];static void ApClassInit( void );voidmain ( int argc, char *argv[] )	{	ab_winstate = 0;	/* AppBuilder Initialization */	ApInitialize( argc, argv );	/* Setup class table used by this application */	ApClassInit( );	/* Display main window */	ApLinkWindow( NULL, &appl_links[0], NULL );	/* Loop until user quits application */	PtMainLoop( );	}static voidApClassInit( void )	{	ApAddClass( "PtWindow", &PtWindow );	ApAddClass( "PtScrollArea", &PtScrollArea );	ApAddClass( "PtButton", &PtButton );	ApAddClass( "PtGroup", &PtGroup );	ApAddClass( "PtPane", &PtPane );	ApAddClass( "PtText", &PtText );	ApAddClass( "PtLabel", &PtLabel );	}

⌨️ 快捷键说明

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