本文整理汇总了C++中NextPage函数的典型用法代码示例。如果您正苦于以下问题:C++ NextPage函数的具体用法?C++ NextPage怎么用?C++ NextPage使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了NextPage函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
}
示例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;
}
}
示例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;
}
}
示例4: 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();
}
示例5: OnGesture
static void
OnGesture(const TCHAR* gesture)
{
if (_tcscmp(gesture, _T("R")) == 0)
NextPage(-1);
else if (_tcscmp(gesture, _T("L")) == 0)
NextPage(+1);
}
示例6: WinKeyL
void CTextWindow::WinKeyL(const TKeyEvent &aKey,const TTime &)
{
if (iDrawMode!=EDrawModeFonts || (aKey.iCode==EKeyEscape || NextPage()))
CActiveScheduler::Stop();
else
iWin.Invalidate();
}
示例7: 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;
}
示例8: 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();
}
示例9: 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");
}
示例10: 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;
}
示例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;
}
示例12: PrevPage
void ScrollBar::LeftRepeat(Point p, dword) {
if(jump || push < 0 || push == 2) return;
if(push == 0)
PrevPage();
else
NextPage();
Refresh();
}
示例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;
}
}
示例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);
}
示例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;
}