void ModuleWorldPage::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) 
{
	// TODO: この位置にメッセージ ハンドラ用のコードを追加するかまたはデフォルトの処理を呼び出してください
	setScrollBar(nSBCode, nPos);	
	
	CPropertyPage::OnHScroll(nSBCode, nPos, pScrollBar);
}
Exemplo n.º 2
0
void CLogGraph::setZoom(double zf)
{
	m_fZoomFactor = zf;

	// zoom factor가 바뀌면 m_nCurrentPos 다시 계산
	
	int mqlast = getLast();
	if (mqlast < getWndQueLastPos()) 
		m_nCurrentPos = mqlast - getWndQueLength();
	if (m_nCurrentPos < 0)
		m_nCurrentPos = 0;
//	TRACE("%s : cpos %d\n", __FUNCTION__, m_nCurrentPos);
	m_bDragSel = false;
	setScrollBar();
}
Exemplo n.º 3
0
void CLogGraph::goLast()
{
	int en = getWndQueLastPos();
// 	if (lib->mque_reclast(m_hQue) > en)
// 		en = lib->mque_reclast(m_hQue);
	if (getLast() > en)
		en = getLast();
	m_nCurrentPos = en - getWndQueLength();
	
 	if (m_nCurrentPos < getLast())
 		m_nCurrentPos = getLast();

	TRACE("goLast: current=%d, last=%d\n", m_nCurrentPos, en);
	setScrollBar();
}
// init
//---------------------------------------------------------------------------
void ImageSelectorView::init(const iXY pos)
{
	loadImages();

	// Adjust the cView size (Must be done after we get the images).
	viewableImageCount = (images.getFrameCount() < (SCREEN_YPIX - 23) / images.getPixY()) ? images.getFrameCount() : (SCREEN_YPIX - 23) / images.getPixY();

	// If there are no images to be loaded, display a window which
	// says that there are no images loaded, else display the images.
	if (viewableImageCount == 0)
	{
		iXY size;
		size.x = images.getPixX() + cView::SCROLL_BAR_XSIZE;

		moveTo(pos);
		//resize(iXY(size.x + scrollBar.getXSize(), size.y + 30));
		resize(iXY(size.x, SCREEN_YPIX - 23));

		flagNoImagesLoaded = 1;
		setScrollBar(false);
	} else
	{
		iXY size;
		size.x = images.getPixX() + cView::SCROLL_BAR_XSIZE;

		moveTo(pos);
		//resize(iXY(size.x + scrollBar.getXSize(), size.y + 30));
		resize(iXY(size.x, SCREEN_YPIX - 23));

		//setScrollBar(true);
		setScrollBarViewableCount(viewableImageCount);
		setScrollBarItemCount(images.getFrameCount());
		setScrollBarItemsSize(images.getPix().y);

		flagNoImagesLoaded = 0;
	}

} // end init
Exemplo n.º 5
0
LuaTableView::~LuaTableView(){
	CC_SAFE_RELEASE(_handler);
	setScrollNode(NULL);
	setScrollBar(NULL);
	setScrollTrack(NULL);
}