本文整理汇总了C++中NextPage函数的典型用法代码示例。如果您正苦于以下问题:C++ NextPage函数的具体用法?C++ NextPage怎么用?C++ NextPage使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了NextPage函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: FormKeyDown
static bool
FormKeyDown(unsigned key_code)
{
switch (key_code) {
case KEY_UP:
wDetails->ScrollVertically(-3);
return true;
case KEY_DOWN:
wDetails->ScrollVertically(3);
return true;
case KEY_LEFT:
#ifdef GNAV
case '6':
#endif
((WndButton *)wf->FindByName(_T("cmdPrev")))->SetFocus();
NextPage(-1);
return true;
case KEY_RIGHT:
#ifdef GNAV
case '7':
#endif
((WndButton *)wf->FindByName(_T("cmdNext")))->SetFocus();
NextPage(+1);
return true;
default:
return false;
}
}
开发者ID:MindMil,项目名称:XCSoar,代码行数:32,代码来源:dlgChecklist.cpp
示例2: FormKeyDown
static bool
FormKeyDown(unsigned key_code)
{
assert(wf != NULL);
switch (key_code) {
case KEY_LEFT:
#ifdef GNAV
case '6':
// Key F14 added in order to control the Analysis-Pages with the Altair RemoteStick
case KEY_F14:
#endif
((WndButton *)wf->FindByName(_T("cmdPrev")))->SetFocus();
NextPage(-1);
return true;
case KEY_RIGHT:
#ifdef GNAV
case '7':
// Key F13 added in order to control the Analysis-Pages with the Altair RemoteStick
case KEY_F13:
#endif
((WndButton *)wf->FindByName(_T("cmdNext")))->SetFocus();
NextPage(+1);
return true;
default:
return false;
}
}
开发者ID:Adrien81,项目名称:XCSoar,代码行数:30,代码来源:dlgAnalysis.cpp
示例3: FormKeyDown
static bool
FormKeyDown(WndForm &Sender, unsigned key_code)
{
(void)Sender;
switch (key_code) {
case VK_LEFT:
#ifdef GNAV
case '6':
#endif
((WndButton *)wf->FindByName(_T("cmdPrev")))->set_focus();
NextPage(-1);
return true;
case VK_RIGHT:
#ifdef GNAV
case '7':
#endif
((WndButton *)wf->FindByName(_T("cmdNext")))->set_focus();
NextPage(+1);
return true;
default:
return false;
}
}
开发者ID:galippi,项目名称:xcsoar,代码行数:26,代码来源:dlgAnalysis.cpp
示例4: OnGesture
static void
OnGesture(const TCHAR* gesture)
{
if (_tcscmp(gesture, _T("R")) == 0)
NextPage(-1);
else if (_tcscmp(gesture, _T("L")) == 0)
NextPage(+1);
}
开发者ID:Adrien81,项目名称:XCSoar,代码行数:8,代码来源:dlgAnalysis.cpp
示例5: WinKeyL
void CTextWindow::WinKeyL(const TKeyEvent &aKey,const TTime &)
{
if (iDrawMode!=EDrawModeFonts || (aKey.iCode==EKeyEscape || NextPage()))
CActiveScheduler::Stop();
else
iWin.Invalidate();
}
开发者ID:kuailexs,项目名称:symbiandump-os1,代码行数:7,代码来源:TTEXT.CPP
示例6: switch
bool ScrollBar::HorzKey(dword key) {
if(!IsVisible() || !IsEnabled() || GetRect().IsEmpty())
return false;
switch(key) {
case K_CTRL_LEFT:
PrevPage();
break;
case K_CTRL_RIGHT:
NextPage();
break;
case K_LEFT:
PrevLine();
break;
case K_RIGHT:
NextLine();
break;
case K_HOME:
Begin();
break;
case K_END:
End();
break;
default:
return false;
}
return true;
}
开发者ID:pedia,项目名称:raidget,代码行数:27,代码来源:ScrollBar.cpp
示例7: GetMousePart
void ScrollBar::LeftDown(Point p, dword) {
push = GetMousePart();
LLOG("ScrollBar::LeftDown(" << p << ")");
LLOG("MousePos = " << GetMousePos() << ", ScreenView = " << GetScreenView()
<< ", rel. pos = " << (GetMousePos() - GetScreenView().TopLeft()));
LLOG("GetWorkArea = " << GetWorkArea());
LLOG("VisibleScreenView = " << GetVisibleScreenView());
LLOG("PartRect(0) = " << GetPartRect(0));
LLOG("PartRect(1) = " << GetPartRect(1));
LLOG("PartRect(2) = " << GetPartRect(2));
LLOG("ScrollBar::LeftDown: mousepart = " << (int)push << ", rect = " << GetPartRect(push)
<< ", overthumb = " << style->overthumb << ", slider = " << Slider());
LLOG("thumbpos = " << thumbpos << ", thumbsize = " << thumbsize);
if(push == 2)
delta = GetHV(p.x, p.y) - thumbpos;
else {
if(jump) {
delta = thumbsize / 2;
Drag(p);
}
else
if(push == 0)
PrevPage();
else
NextPage();
}
SetCapture();
Refresh();
WhenLeftClick();
}
开发者ID:pedia,项目名称:raidget,代码行数:30,代码来源:ScrollBar.cpp
示例8: PutPsFile
void
PutPsFile(void)
{
Prologue();
Variables();
CurvesInit();
DoTitleAndBox();
if (multipageflag) {
Key(); // print multi-page key even if there are more than 20 bands
NextPage();
}
Axes();
if (!multipageflag && (TWENTY != 0)) Key();
Curves();
if (!yflag) Marks();
fprintf(psfp, "showpage\n");
}
开发者ID:23Skidoo,项目名称:ghc,代码行数:25,代码来源:PsFile.c
示例9: dlgChecklistShowModal
void
dlgChecklistShowModal(void)
{
static bool first = true;
if (first) {
LoadChecklist();
first = false;
}
wf = LoadDialog(CallBackTable, XCSoarInterface::main_window,
Layout::landscape ?
_T("IDR_XML_CHECKLIST_L") : _T("IDR_XML_CHECKLIST"));
if (!wf)
return;
nTextLines = 0;
wf->SetKeyDownNotify(FormKeyDown);
((WndButton *)wf->FindByName(_T("cmdClose")))->SetOnClickNotify(OnCloseClicked);
wDetails = (WndProperty*)wf->FindByName(_T("frmDetails"));
assert(wDetails != NULL);
page = 0;
NextPage(0); // JMW just to turn proper pages on/off
wf->ShowModal();
delete wf;
}
开发者ID:macsux,项目名称:XCSoar,代码行数:31,代码来源:dlgChecklist.cpp
示例10: NextLine
/*****************************************************************************
* Advance by one line. I crossed page boundary, go to next page
*****************************************************************************/
static void NextLine( void )
{
row++;
column = 0;
if ( row == HIWORD( dwCharExtent ) )
NextPage();
}
开发者ID:ErisBlastar,项目名称:osfree,代码行数:10,代码来源:print.c
示例11: dlgChecklistShowModal
void
dlgChecklistShowModal()
{
static bool first = true;
if (first) {
LoadChecklist();
first = false;
}
wf = LoadDialog(CallBackTable, UIGlobals::GetMainWindow(),
Layout::landscape ?
_T("IDR_XML_CHECKLIST_L") : _T("IDR_XML_CHECKLIST"));
if (!wf)
return;
nTextLines = 0;
wf->SetKeyDownNotify(FormKeyDown);
wDetails = (WndProperty*)wf->FindByName(_T("frmDetails"));
assert(wDetails != NULL);
page = 0;
NextPage(0); // JMW just to turn proper pages on/off
wf->ShowModal();
delete wf;
}
开发者ID:damianob,项目名称:xcsoar,代码行数:29,代码来源:dlgChecklist.cpp
示例12: PrevPage
void ScrollBar::LeftRepeat(Point p, dword) {
if(jump || push < 0 || push == 2) return;
if(push == 0)
PrevPage();
else
NextPage();
Refresh();
}
开发者ID:pedia,项目名称:raidget,代码行数:8,代码来源:ScrollBar.cpp
示例13: switch
bool
WaypointDetailsWidget::KeyPress(unsigned key_code)
{
switch (key_code) {
case KEY_LEFT:
previous_button.SetFocus();
NextPage(-1);
return true;
case KEY_RIGHT:
next_button.SetFocus();
NextPage(+1);
return true;
default:
return false;
}
}
开发者ID:Andy-1954,项目名称:XCSoar,代码行数:18,代码来源:dlgWaypointDetails.cpp
示例14: FormKeyDown
static int FormKeyDown(WindowControl * Sender, WPARAM wParam, LPARAM lParam){
(void)lParam; (void)Sender;
switch(wParam & 0xffff){
case VK_LEFT:
case '6':
SetFocus(((WndButton *)wf->FindByName(TEXT("cmdPrev")))->GetHandle());
NextPage(-1);
//((WndButton *)wf->FindByName(TEXT("cmdPrev")))->SetFocused(true, NULL);
return(0);
case VK_RIGHT:
case '7':
SetFocus(((WndButton *)wf->FindByName(TEXT("cmdNext")))->GetHandle());
NextPage(+1);
//((WndButton *)wf->FindByName(TEXT("cmdNext")))->SetFocused(true, NULL);
return(0);
}
return(1);
}
开发者ID:rafagdn,项目名称:LK8000,代码行数:18,代码来源:dlgWayPointDetails.cpp
示例15: dlgChecklistShowModal
void dlgChecklistShowModal(void){
static bool first=true;
if (first) {
LoadChecklist();
first=false;
}
// WndProperty *wp;
if (!ScreenLandscape) {
char filename[MAX_PATH];
LocalPathS(filename, TEXT("dlgChecklist_L.xml"));
wf = dlgLoadFromXML(CallBackTable,
filename,
hWndMainWindow,
TEXT("IDR_XML_CHECKLIST_L"));
} else {
char filename[MAX_PATH];
LocalPathS(filename, TEXT("dlgChecklist.xml"));
wf = dlgLoadFromXML(CallBackTable,
filename,
hWndMainWindow,
TEXT("IDR_XML_CHECKLIST"));
}
nTextLines = 0;
if (!wf) return;
wf->SetKeyDownNotify(FormKeyDown);
((WndButton *)wf->FindByName(TEXT("cmdClose")))->SetOnClickNotify(OnCloseClicked);
wDetails = (WndListFrame*)wf->FindByName(TEXT("frmDetails"));
ASSERT(wDetails!=NULL);
wDetailsEntry =
(WndOwnerDrawFrame*)wf->FindByName(TEXT("frmDetailsEntry"));
ASSERT(wDetailsEntry!=NULL);
wDetailsEntry->SetCanFocus(true);
wDetails->SetBorderKind(BORDERLEFT);
page = 0;
NextPage(0); // JMW just to turn proper pages on/off
wf->ShowModal();
delete wf;
wf = NULL;
}
开发者ID:braun,项目名称:LK8000,代码行数:54,代码来源:dlgChecklist.cpp
示例16: NextPage
DIntermissionController::DIntermissionController(FIntermissionDescriptor *Desc, bool DeleteDesc, BYTE state)
{
mDesc = Desc;
mDeleteDesc = DeleteDesc;
mIndex = 0;
mAdvance = false;
mSentAdvance = false;
mScreen = NULL;
mFirst = true;
mGameState = state;
NextPage();
}
开发者ID:BadSanta1980,项目名称:gzdoom,代码行数:12,代码来源:intermission.cpp
示例17: NextPage
bool ComixFrameHandler::KeyPressed( const OIS::KeyEvent &arg )
{
if( arg.key == OIS::KC_LCONTROL ||
arg.key == OIS::KC_RCONTROL ||
arg.key == OIS::KC_LMENU ||
arg.key == OIS::KC_RMENU ||
arg.key == OIS::KC_TAB)
return false;
NextPage();
return true;
}
开发者ID:beorc,项目名称:flare_star,代码行数:12,代码来源:ComixFrameHandler.cpp
示例18: WriteString
/*****************************************************************************
* Write a string to the current document
*****************************************************************************/
void WriteString(char* sz, int len)
{
int tabn = (int)CURRENT_FILE->tabsout_num;
int i=0;
char *p=NULL;
char ch=0;
DWORD dwNumWritten=0;
if ( pd.hDC == NULL )
return;
if ( !documentON )
StartDocument( );
for (i = 0,p = sz; i < len; p++, i++)
{
ch = *p;
switch ( ch )
{
case '\n': // Line-feed
NextLine();
break;
case '\f' : // Form-feed
NextPage();
break;
case '\r' : // Carriage-return
column = 0;
break;
case '\t' : // Tab
column += tabn - (column % tabn);
if ( bLineWrapping
&& column >= LOWORD(dwCharExtent) )
NextLine();
break;
default :
if ( isprint(ch) )
{
if (defaultprinter)
TextOut(pd.hDC, column++, row, &ch, 1);
else
WritePrinter( hPrinter, p, 1, &dwNumWritten );
// Wrap line
if ( bLineWrapping
&& column >= LOWORD(dwCharExtent) )
NextLine();
}
break;
} // End switch
}
}
开发者ID:ErisBlastar,项目名称:osfree,代码行数:54,代码来源:print.c
示例19: OnAction
/* virtual methods from class ActionListener */
void OnAction(int id) override {
switch (id) {
case GOTO:
OnGotoClicked();
break;
case MAGNIFY:
OnMagnifyClicked();
break;
case SHRINK:
OnShrinkClicked();
break;
case PREVIOUS:
NextPage(-1);
break;
case NEXT:
NextPage(1);
break;
}
}
开发者ID:Andy-1954,项目名称:XCSoar,代码行数:24,代码来源:dlgWaypointDetails.cpp
示例20: dlgChecklistShowModal
void dlgChecklistShowModal(void){
static bool first=true;
if (first) {
LoadChecklist();
first=false;
}
// WndProperty *wp;
if (!InfoBoxLayout::landscape) {
wf = dlgLoadFromXML(CallBackTable,
TEXT("dlgChecklist_L.xml"),
XCSoarInterface::main_window,
TEXT("IDR_XML_CHECKLIST_L"));
} else {
wf = dlgLoadFromXML(CallBackTable,
TEXT("dlgChecklist.xml"),
XCSoarInterface::main_window,
TEXT("IDR_XML_CHECKLIST"));
}
nTextLines = 0;
if (!wf) return;
wf->SetKeyDownNotify(FormKeyDown);
((WndButton *)wf->FindByName(TEXT("cmdClose")))->SetOnClickNotify(OnCloseClicked);
wDetails = (WndListFrame*)wf->FindByName(TEXT("frmDetails"));
assert(wDetails!=NULL);
wDetailsEntry =
(WndOwnerDrawFrame*)wf->FindByName(TEXT("frmDetailsEntry"));
assert(wDetailsEntry!=NULL);
wDetailsEntry->SetCanFocus(true);
wDetails->SetBorderKind(BORDERLEFT);
page = 0;
NextPage(0); // JMW just to turn proper pages on/off
wf->ShowModal();
delete wf;
wf = NULL;
}
开发者ID:scottp,项目名称:xcsoar,代码行数:50,代码来源:dlgChecklist.cpp
注:本文中的NextPage函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论