User (Legacy) Posted July 10, 2003 Report Share Posted July 10, 2003 I am using ChartFX OCX in a following fashion: // Set ChartFx general properties m_spChartFX->Chart3D = FALSE; m_spChartFX->BorderStyle = BORDER_NONE; m_spChartFX->Border = FALSE; m_spChartFX->Gallery = PIE; m_spChartFX->put_NSeries(1); m_spChartFX->ContextMenus= FALSE; m_spChartFX->AllowDrag = FALSE; m_spChartFX->AllowResize = FALSE; m_spChartFX->DblClk(CHART_NONECLK, 0); m_spChartFX->RigClk(CHART_NONECLK, 0); m_spChartFX->RightGap = 10; m_spChartFX->LeftGap = 10; m_spChartFX->TopGap = 5; m_spChartFX->BottomGap = 5; m_spChartFX->LegendBoxObj->BorderStyle = BBS_NONE; m_spChartFX->LegendBox = TRUE; m_spChartFX->LegendBoxObj->Docked = TGFP_FIXED; m_spChartFX->LegendBoxObj->Top = 0; m_spChartFX->LegendBoxObj->Left = 0; m_spChartFX->LegendBoxObj->Width = 250; m_spChartFX->LegendBoxObj->Height = 130; m_spChartFX->LegendBoxObj->Sizeable = BAS_NORESIZE; Problem: How to disable double click on legendbox, to prevent user to move legendbox from it's fixed position. David. Quote Link to comment Share on other sites More sharing options...
Software FX Posted July 11, 2003 Report Share Posted July 11, 2003 To disable the double-click: m_spChartFX->LegendBoxObj->Style &= ~1 To disable de right-click menu: m_spChartFX->LegendBoxObj->Flags &= ~CHART_LSHOWMENU To disable drag-and-drop: m_spChartFX->LegendBoxObj->Moveable = False -- FP Software FX, Inc. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.