Page Index Toggle Pages: [1] 2  Send TopicPrint
Hot Topic (More than 10 Replies) Suggestions to ActiveX edition (Read 21709 times)
Carlos_Rocha
Junior Member
**
Offline


I love Jazz

Posts: 70
Joined: Mar 26th, 2010
Suggestions to ActiveX edition
Aug 30th, 2011 at 2:46am
Print Post  
Hi,

Please considere the following additions to FlowChartX as I believe they would raise a lot the product value:

1. Gradient options for Table.Caption, like there is in Boxes.
To get the same effect I'm grouping a Box+Table, with all the inherent complexity.

2. TableLink UML style, with 3 segments, beeing the 1st and the 3rd horizontal with fixed size, like one can find in any query builder.
It's not possible at all with FlowChartX.

3. Possibility to add a CheckBox to table rows, and a Checked property
Actualy I think we have two options: creating an image (or two) for every row in every table, or using some activex control. I wonder if the last would be "workable" with lots of tables/fields, and the first would "wheight" too much the diagram because every picture would be repeated for every row, what takes me to the last suggestion:

4. Some kind of ImageList from where we could pick items to put in nodes
Right now, every node is stored (in XML) with the full representation of his own picture, even if all the nodes use the same picture. Adding pictures to an ImageList and using a property like Node.PictureID would make things a lot faster.

Thank you for listening Smiley
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Suggestions to ActiveX edition
Reply #1 - Aug 30th, 2011 at 8:35am
Print Post  
Hi,

We'll consider it Smiley

Regarding 4, if you use the new SaveToXml method instead of the obsolete XmlWriter, you should get only one copy of shared images saved. Just make sure you assign the same OlePicture instance to the nodes instead of calling LoadPicture for each node, and the image data will be saved only once.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Carlos_Rocha
Junior Member
**
Offline


I love Jazz

Posts: 70
Joined: Mar 26th, 2010
Re: Suggestions to ActiveX edition
Reply #2 - Aug 30th, 2011 at 1:21pm
Print Post  
Hi,

I use SaveToString to save it directly to a database. Still true?
According to the help file I need fc.LoadPicture to keep image transparency, or am I wrong?

Thanks
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Suggestions to ActiveX edition
Reply #3 - Aug 30th, 2011 at 2:58pm
Print Post  
Hi,

SaveToString will write only one copy of shared images too, as long as they are represented by the same OlePicture object.

Theoretically speaking, we could compare images pixel by pixel to determine if they are the same, but that would make saving extremely slow. So you will have to use LoadPicture only once for an image and assign the so loaded image to other nodes.

E.g. you could use several hidden boxes as your image list, call LoadPicture on them, and then assign their Picture to the visible nodes.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Carlos_Rocha
Junior Member
**
Offline


I love Jazz

Posts: 70
Joined: Mar 26th, 2010
Re: Suggestions to ActiveX edition
Reply #4 - Aug 30th, 2011 at 3:14pm
Print Post  
Crystal clear, thank you very much  Kiss
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Suggestions to ActiveX edition
Reply #5 - Sep 5th, 2011 at 7:11am
Print Post  
2. If you need table appearance like this (source: Wikipedia/UML) -

- you can get it by hiding the cell borders and using a narrow row filled in black as delimiter:

Code
Select All
Dim t As table
Set t = fcx.CreateTable(0, 0, 160, 120)
t.ColumnsCount = 1
t.RowsCount = 5
t.FillColor = vbWhite
t.CellBorders = cbNone
t.SetRowHeight 2, 1
t.CellFillColor(0, 2) = vbBlack
t.SetText 0, 0, "owner: String"
t.SetText 0, 1, "balance: Dollars = 0"
t.SetText 0, 3, "deposit (amount: dollars)"
t.SetText 0, 4, "withdraw (amount: dollars)" 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Carlos_Rocha
Junior Member
**
Offline


I love Jazz

Posts: 70
Joined: Mar 26th, 2010
Re: Suggestions to ActiveX edition
Reply #6 - Sep 14th, 2011 at 11:16pm
Print Post  
Sorry for the late reply, I just arrived from vacation  8)

Yes, this might be useful, thank you
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Suggestions to ActiveX edition
Reply #7 - Oct 17th, 2011 at 8:19am
Print Post  
Hi,

Please check this version:
https://mindfusion.eu/_beta/fcx45.zip

1. Set CaptionFillColor2 to a value different than -1 to enable gradient fill. In GDI+ mode you can also set CaptionGradientAngle. In classic mode angle can be either 0 for horizontal gradient or any other value for vertical gradient.

3. Set the CellType indexed property to ctCheckBox to show a checkbox inside a cell. There's a CellValue property that lets you get or set the checkbox state; 0 is unchecked, 1 is checked. It is an integer in case we decide to support more states or add new cell widget types.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Carlos_Rocha
Junior Member
**
Offline


I love Jazz

Posts: 70
Joined: Mar 26th, 2010
Re: Suggestions to ActiveX edition
Reply #8 - Oct 17th, 2011 at 9:40pm
Print Post  
Nice, I will test it before the weekend Cheesy

Thank you very much Kiss
  
Back to top
 
IP Logged
 
Carlos_Rocha
Junior Member
**
Offline


I love Jazz

Posts: 70
Joined: Mar 26th, 2010
Re: Suggestions to ActiveX edition
Reply #9 - Oct 19th, 2011 at 10:50pm
Print Post  
In my environment (Visual Objects) I have an option named "Setup OLE Control" that generates a wrapper for every ActiveX method/property, but doesn't work in this beta version (it does in previous versions).

I'm still able to test the new functionality, but it seems that something is missing.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Suggestions to ActiveX edition
Reply #10 - Oct 20th, 2011 at 6:19am
Print Post  
In what manner doesn't it work? Does it show an error message or generate incomplete wrappers?
  
Back to top
 
IP Logged
 
Carlos_Rocha
Junior Member
**
Offline


I love Jazz

Posts: 70
Joined: Mar 26th, 2010
Re: Suggestions to ActiveX edition
Reply #11 - Oct 20th, 2011 at 2:00pm
Print Post  
It shows an useless error message and nothing is generated: "Error: Base class generation failed"

I can generate a "COM Automation Server" wrapper for every COM class, but this way I don't receive events from the control. After that I was able to change the code by hand to make it a "OLE Control" wrapper, but something is different from previous versions.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Suggestions to ActiveX edition
Reply #12 - Oct 21st, 2011 at 7:49am
Print Post  
I have tried this with Visual Objects 2.8 trial and got a "base class generation successful" message from the Setup OLE Control dialog. Couldn't find the imported flowchart code as a separate file in the project, but this is what I got after clicking "Edit All Source Code In Module":

http://mindfusion.eu/_samples/visual%20objects.txt

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Carlos_Rocha
Junior Member
**
Offline


I love Jazz

Posts: 70
Joined: Mar 26th, 2010
Re: Suggestions to ActiveX edition
Reply #13 - Oct 21st, 2011 at 8:18am
Print Post  
I don't understand ???
Is flowchartx32.dll the only file that needs to be replaced? I'll install VO 2.8 trial and see what happens.
Anyway, apparently is something in my side.
  
Back to top
 
IP Logged
 
Carlos_Rocha
Junior Member
**
Offline


I love Jazz

Posts: 70
Joined: Mar 26th, 2010
Re: Suggestions to ActiveX edition
Reply #14 - Oct 21st, 2011 at 3:14pm
Print Post  
Same problem with VO trial version.
With the old flowchartx32.dll works as expected in both VO versions ???

Are you sure I don't need anything else?
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send TopicPrint