?? abmain.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 + -