Jump to content
Software FX Community

Get Title.text


User (Legacy)

Recommended Posts

The API reference states that Chart.Titles "Allows you to set a title to the

top of a chart."

Is there any way to get the titles? I've heard of read-only properties, but

this is the first write-only property I've come accross.

Dim titleline As SoftwareFX.ChartFX.Internet.Server.TitleDockable =

cfxDefault.Titles(1)

Dim strTitle As String = titleline.Text

strTitle is getting the original value of the title - ignoring any changes

the user has made.

Alternatively, is there any way to dis-allow the user from editing the

title?

Link to comment
Share on other sites

1) How is this title being created, the tile property is not "write-only",

you can get the value back. I think you are asking for the wrong one though.

Like most arrays in .NET, the first title is Title[0].

2) You can customize the menus so that titles can't be edited. See

programmer's guide on "Tool Customization" for more details.

--

FP

Software FX, Inc.

Link to comment
Share on other sites

I create the title like this:

'Set the title properties...

Dim title As SoftwareFX.ChartFX.Internet.Server.TitleDockable

Dim strTitleLine As String

Dim intTitleLine As Integer = 0

For Each strTitleLine In objHCMGServer.TableTitle

title = cfxDefault.Titles(intTitleLine)

title.Alignment = System.Drawing.StringAlignment.Center

title.Font = New System.Drawing.Font("Arial", 9,

System.Drawing.FontStyle.Regular)

title.Text = strTitleLine

title.TextColor = System.Drawing.Color.Black

title.LineGap = 2

intTitleLine = intTitleLine + 1

Next

I get the values back like this:

Dim title As SoftwareFX.ChartFX.Internet.Server.TitleDockable

Dim strTitle As String()

Dim intLines As Integer = 0

ReDim strTitle(0)

For Each title In cfxDefault.Titles

If title.DockArea = SoftwareFX.ChartFX.DockArea.Top Then

intLines += 1

If strTitle.Length < intLines Then ReDim Preserve

strTitle(intLines)

strTitle(intLines - 1) = title.Text

End If

Next

Dim objHCMGServer As HCMGServer = Session("HCMGServer")

objHCMGServer.TableTitle = strTitle

And this works fine ... unless the user has edited the titles. The original

values of Titles gets returned. It doesn't reflect the changes made by the

user.

Link to comment
Share on other sites

Correct

--

FP

Software FX Support

"Dave Gilsdorf" <dgilsdorf@nationalresearch.com> wrote in message

news:4PbBPSKnCHA.3152@webserver1.softwarefx.com...

> Yes, it's in a postback - a button the user presses to go from the graph

> page to a table page.

>

> So .. any changes the user makes to a graph aren't communicated back to

the

> server. That makes sense .. I take it there really isn't a way to tell

what

> changes the user made to a graph (title, data table, .. anything)

>

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...