Exemple #1
0
void
FobFlock::Init()
{   
    init();
    clear();
    //   GetConfig();
    // on se place dans le modele graphique de base x a droite y vers le haut z vers nous
    for (int i=1;i<=nbFob;i++)
    {
	ToFbb(i);
	if (i==1) //just for the first flock
	    SetButtonMode(ON);
	SetPositionReferenceFrame(ON);
	ToFbb(i);
	SetReferenceFrame(-90.0,0.0,-90.0);
	ToFbb(i);
	SetHemisphere(RotateHem(hem,i-1));   
	ToFbb(i);
	SetAngleAlign(180.0,-90.0,-90.0);
	ToFbb(i);
	SetRData(mode);//fix data type
    }
    SetAutoConfiguration(nbFob);
    sleep(1);
}
Exemple #2
0
CRibbonListButton::CRibbonListButton (
		UINT	nID,
		LPCTSTR	lpszText,
		int		nSmallImageIndex,
		int		nLargeImageIndex,
		UINT	uiImagesPaletteResID,
		int		cxPaletteImage,
		const CStringArray& arLabels,
		BOOL    bRightAlignedText) : 
	CBCGPRibbonPaletteButton (nID, lpszText, nSmallImageIndex, nLargeImageIndex, CSize (0, 0), 0, TRUE)
{
	SetButtonMode (TRUE);
	SetRightAlignedText (bRightAlignedText);

	m_listImages.Load (uiImagesPaletteResID);

	BITMAP bmp;
	GetObject (m_listImages.GetImageWell (), sizeof (BITMAP), &bmp);

	m_listImages.SetImageSize (
		CSize (cxPaletteImage, bmp.bmHeight), TRUE);

	m_imagesPalette.SetImageSize (m_listImages.GetImageSize ());

	m_arLabels.Copy (arLabels);

	m_nIcons = (int) m_arLabels.GetSize ();

	m_sizeMargins = CSize (2, 2);
	m_sizeMaxText = CSize (0, 0);
}
Exemple #3
0
CRibbonListFontButton::CRibbonListFontButton (
		UINT	nID,
		LPCTSTR	lpszText,
		int		nSmallImageIndex,
		int		nLargeImageIndex,
		UINT	uiImagesPaletteResID,
		int		cxPaletteImage,
		const XItems& arItems) : 
	CBCGPRibbonPaletteButton (nID, lpszText, nSmallImageIndex, nLargeImageIndex, CSize (0, 0), 0, TRUE)
{
	SetButtonMode (TRUE);
	SetIconsInRow (1);

	m_listImages.Load (uiImagesPaletteResID);

	BITMAP bmp;
	GetObject (m_listImages.GetImageWell (), sizeof (BITMAP), &bmp);

	m_listImages.SetImageSize (
		CSize (cxPaletteImage, bmp.bmHeight), TRUE);

	m_imagesPalette.SetImageSize (m_listImages.GetImageSize ());

	m_arItems.Copy (arItems);

	m_nIcons = (int) m_arItems.GetSize ();

	m_sizeMargins = CSize (2, 2);
	m_sizeMaxText = CSize (0, 0);
}
Exemple #4
0
CRibbonListFontButton::CRibbonListFontButton(
		UINT	nID,
		LPCTSTR	lpszText,
		int		nSmallImageIndex,
		int		nLargeImageIndex) :
	CBCGPRibbonPaletteButton (nID, lpszText, nSmallImageIndex, nLargeImageIndex, CSize (0, 0), 0, TRUE)
{
	SetButtonMode (TRUE);
	SetIconsInRow (1);

	m_sizeMargins = CSize (2, 2);
	m_sizeMaxText = CSize (0, 0);
}
Exemple #5
0
CRibbonListButton::CRibbonListButton(
		UINT	nID,
		LPCTSTR	lpszText,
		int		nSmallImageIndex,
		int		nLargeImageIndex,
		BOOL    bRightAlignedText) :
	CBCGPRibbonPaletteButton (nID, lpszText, nSmallImageIndex, nLargeImageIndex, CSize (0, 0), 0, TRUE)
{
	SetButtonMode (TRUE);
	SetRightAlignedText (bRightAlignedText);

	m_sizeMargins = CSize (2, 2);
	m_sizeMaxText = CSize (0, 0);
}