Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic OLE FlowchartFX 64 bit, control size is too small (Read 5822 times)
Christian Roy
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 2
Joined: Dec 12th, 2016
OLE FlowchartFX 64 bit, control size is too small
Dec 12th, 2016 at 2:42pm
Print Post  
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 )
FLOWCHART-WND.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: OLE FlowchartFX 64 bit, control size is too small
Reply #1 - Dec 12th, 2016 at 4:19pm
Print Post  
Hi, I could not understand, is it the flowchart control itself one-pixel large or the in-place edit box?
  
Back to top
 
IP Logged
 
Christian Roy
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 2
Joined: Dec 12th, 2016
Re: OLE FlowchartFX 64 bit, control size is too small
Reply #2 - Dec 19th, 2016 at 2:52pm
Print Post  
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 ?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3147
Joined: Oct 19th, 2005
Re: OLE FlowchartFX 64 bit, control size is too small
Reply #3 - Dec 19th, 2016 at 4:29pm
Print Post  
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.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint