Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Powerbuilder examples (Read 4457 times)
JR
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 86
Joined: Jun 12th, 2007
Powerbuilder examples
Nov 10th, 2011 at 1:02pm
Print Post  
Hello,

I am trying your ocx in powerbuilder 11.5.1.
Do you have some examples in this language ?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Powerbuilder examples
Reply #1 - Nov 10th, 2011 at 8:18pm
Print Post  
Hi,

I'm afraid we don't have any examples. This is something I put together based on the OLEObject sample code in the "PowerBuilder Classic" help file and some googling:

Code
Select All
OLEObject b1, b2, b3
OLEObject layout, flowchart

// fcx is the Flowchart instance on the form
flowchart = fcx.object

// create some objects
b1 = flowchart.CreateBox(10, 10, 30, 30)
b1.Shape = flowchart.Shapes("Decision")
b2 = flowchart.CreateBox(10, 10, 30, 30)
b2.FillColor = 256*256*255
b3 = flowchart.CreateBox(10, 10, 30, 30)
flowchart.CreateArrow(b1, b2)
flowchart.CreateArrow(b1, b3)

// apply tree layout
layout = create OLEObject
layout.ConnectToNewObject("FlowChartPro.TreeLayout")
flowchart.ArrangeDiagram(layout) 



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


I love YaBB 1G - SP1!

Posts: 86
Joined: Jun 12th, 2007
Re: Powerbuilder examples
Reply #2 - Nov 14th, 2011 at 8:13am
Print Post  
Thanks a lot

Regards
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint