private MBitmap CreateYoteiIconBitmap(int x, int y, int width, int height, YOTEI_ICON_TYPE type) { //ビットマップを宣言 MBitmap m_bitmap = new MBitmap(); if (type == YOTEI_ICON_TYPE.YOTEI_TODAY) { //イメージをセット m_bitmap.SetBitmap(imgKensaToday); } else if (type == YOTEI_ICON_TYPE.YOTEI_TODAY_BLINK) { //イメージをセット m_bitmap.SetBitmap(imgKensaTodayBlink); m_bitmap.Visible = false; } // TODO その他のアイコンも用意・表示する m_bitmap.LayerNo = ICON_LAYER_NO; //m_bitmap.Style = 2; //白抜き部分をBackColor,黒色部分をForeColorで表示する m_bitmap.Style = 0; //0だと色変わらない(Bitmapをそのまま表示) if (type == YOTEI_ICON_TYPE.YOTEI_TODAY) { m_bitmap.ForeColor = Color.Red; m_bitmap.BackColor = Color.Aqua; } m_bitmap.X = x; m_bitmap.Y = y; m_bitmap.Height = height; m_bitmap.Width = width; m_bitmap.MinX = m_bitmap.X - 1000; m_bitmap.MaxX = m_bitmap.X + 1000; m_bitmap.MinY = m_bitmap.Y - 1000; m_bitmap.MaxY = m_bitmap.Y + 1000; return m_bitmap; }
private MLabel CreateToolTipLabel(string labelText, MBitmap parentBitMap) { return CreateToolTipLabel(labelText, parentBitMap.X, parentBitMap.Y + 250); }