- Welcome, Guest. Please Login or Register
MindFusion  
  Version 2 of our Xamarin Calendar component adds Resource view and support for Universal Windows Platform. Now beta testing spreadsheet component for Java Swing. We have released our Java Swing Pack.  
  HomeHelpSearchLoginRegister   
     
     
   
 
Page Index Toggle Pages: 1 Send Topic Print  
OLE FlowchartFX 64 bit, control size is too small
Read 824 times

Christian Roy   Offline
YaBB Newbies
*
Posts: 2
I Love MindFusion!


   
     
 
OLE FlowchartFX 64 bit, control size is too small
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 | 72 )
FLOWCHART-WND.png
 
IP Logged    
 
     

Slavcho   Offline
God Member
*****
Posts: 1103
Gender: male
tech.support


   
     
 
Re: OLE FlowchartFX 64 bit, control size is too small
Reply #1 - 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?
 
 
 
IP Logged    
 
     

Christian Roy   Offline
YaBB Newbies
*
Posts: 2
I Love MindFusion!


   
     
 
Re: OLE FlowchartFX 64 bit, control size is too small
Reply #2 - 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 ?
 
 
 
IP Logged    
 
     

Slavcho   Offline
God Member
*****
Posts: 1103
Gender: male
tech.support


   
     
 
Re: OLE FlowchartFX 64 bit, control size is too small
Reply #3 - 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.
 
 
 
IP Logged    
 
     
Page Index Toggle Pages: 1 Send Topic Print