The MindFusion Forums
Flow Diagramming Components >> Bug Reports >> OLE FlowchartFX 64 bit, control size is too small
https://mindfusion.eu/Forum/YaBB.pl?num=1481553749

Message started by Christian Roy on Dec 12th, 2016 at 2:42pm

Title: OLE FlowchartFX 64 bit, control size is too small
Post by Christian Roy on Dec 12th, 2016 at 2:42pm
Hi,

Once in a while created FlowChart control in C++ created via OLE, will be 1 pixel width and height. Using Winspector software I can see FCX_PRO control being parented to my static control in my C++ form. Size is quite large for FCX_PRO but FCX_INPLACEEDIT never resizes and is created with a Client rectangle of 0, 0, 1, 1. Even putting a delayed creation of 1 second does not fix the random problem. What can I do to always have a correct behavior. My FlowChartFX product version is 4.3.0.0.
FLOWCHART-WND.png ( 171 KB | 223 Downloads )

Title: Re: OLE FlowchartFX 64 bit, control size is too small
Post by Slavcho on Dec 12th, 2016 at 4:19pm
Hi, I could not understand, is it the flowchart control itself one-pixel large or the in-place edit box?

Title: Re: OLE FlowchartFX 64 bit, control size is too small
Post by Christian Roy on Dec 19th, 2016 at 2:52pm
Found that I had to do the following to make it appear :

           oleObj->DoVerb( OLEIVERB_HIDE, nullptr, psite, 0, hpic, &r );
           oleObj->DoVerb( OLEIVERB_SHOW, nullptr, psite, 0, hpic, &r );

Is it normal you have to manually hide and show it for it to always resize correctly ?

Title: Re: OLE FlowchartFX 64 bit, control size is too small
Post by Slavcho on Dec 19th, 2016 at 4:29pm
How do you calculate the RECT value? If it depends on the size of parent window, maybe check if first time you activate the flowchart control its parent has been fully sized.

The MindFusion Forums » Powered by YaBB 2.6.11!
YaBB Forum Software © 2000-2024. All Rights Reserved.