![xojo web controls xojo web controls](https://forum.xojo.com/uploads/default/original/2X/4/4640b4b74c759e0e1f793cc4d0d2956dcc12f737.png)
If you simply move the code from the Web.Open event to the Webpage1.Shown event, the Open event fires as expected.Īh, excellent! I will try this. By embedding the control in the Open event of Web, the WebPage instance doesn't exist yet for it to receive the value change. The container control should be embedded via the embedWithin method, standard for such things on the WE as far as I know. Create a container control, add a label to it, add an Open event to it and in the open event change the label1.text property to show if the open event ran or not. I can create a simple project here to demonstrate it and included it in the feedback report. On the WE container controls will not reliably fire their Open events in the current release. I've created a new feedback report for this to be more clear about the new info I've learned since adding onto the older, closed report.
![xojo web controls xojo web controls](https://www.xojo.com/visualbasic/xojo-visualbasic.gif)
Overloading the constructor doesn't work as a work around either. Something is very strange with open events in container controls. Today I can't make the open events fire at all even on freshly created projects in Xojo. Open events just dont work on these created controls if the project originated on a version of RB prior to Xojo. I can't even cut and paste the code into a newly fresh created open event. But load this project into xojo and the open event never fires on the container.įurther mucking about trying to find a workaround for this has failed. And the exact same code when actually typed into xojo works fine. It is embedded into the default webpage via the embedwithin method. It has a single webContainer with a label in it and some default text which is changed by a single line of code in the webContainers open event. I've attached an example program to the old case at: If you can send me an example of a WebContainer showing this behavior in Xojo, I'd like to see it. Please don't think I'm being obtuse, but WebControls and WebViews are very different from one another under the hood. For instance, the Open event doesn't fire until EmbedWithin is called on a WebContainer. I'd really like to see some examples of this not working. In WE, there are NO dynamically created controls where the Open or shown events run properly. Event ItemClicked(XLabel As String, X As Integer, DataSet As Integer, DataSetName As String, Value As Double, Title As String, Sector As Integer, Label As String) End Event. Class ChartDirectorControl Inherits WebImageViewer. The better way to do it is to use EmbedWithin and embed the CC's into the pages. Project 'ChartDirector Control for Web 2021.xojobinaryproject' Class App Inherits WebApplication. If you are creating dynamic container controls in WE, it's really broken and not really fixed. Please dont think Im being obtuse, but WebControls and WebViews are very different. Has anyone else seen this? I see an older feedback report for something similar in the past, but it has been closed as fixed. Its been verified by Xojo staff and includes an example project. But putting debug output in them in my older project results in showing it never runs. While trying to create a demo of the bug I found that they run fine in new projects. This seems to only be a problem in projects that I've brought forward form previous versions. The code is there, but it doesn't appear to ever run. Most important so far is that I dont seem to be getting Open events in my dynamically created WebContainer controls. call c.setCenterLabel( "M", "arialbd.Having some fun today trying to bring older projects forward to the latest version and hitting a few odd issues. The // labels will show the percentage of the layers. Add labels at the center of the pyramid layers using Arial Bold font. The Web Bundle includes two high-end controls: CalendarView and ChartView, and four simple but. Set the layer colors to the given colorsĬ.setColors(CDPyramidChartMBS.kDataColor, colors) A set of Web Controls to use in your Xojo Web Applications. Set the pyramid center at (200, 180), and width x height to 150 x 300 pixelsĬ.setViewAngle( 75-count/ 2, - 33+count/ 3, 50-count/ 2) The colors for the pyramid layers dim colors(- 1) as integerĬolors.Append &hcc88ff // Create a PyramidChart object of size 500 x 400 pixels dim c as new CDPyramidChartMBS( 500, 400) The labels for the pyramid chart dim labels(- 1) as string = array( "Corporate Tax", "Working Capital", "Re-investment", "Dividend") The data for the pyramid chart dim data(- 1) as double = array( 156.0, 123, 211, 179.0)