Suneido

Integrated Application Platform

  • Home
  • Learning
    • Suneido Manual
    • Beginners
      • Inside Suneido
      • The Suneido Programming Language
      • The Suneido Database
      • Installing Suneido
      • Building Suneido
      • IDE Go To Tour
      • Upgrading To A New Release
    • Advanced
      • Canvas Control
      • DrawControl Part 1
      • DrawControl Part 2
      • DrawControl Part 3
      • SAX Like XML Processing
      • A Plug-In Architecture
      • A Simple Wizard Framework
      • An HTML Include Facility
      • An RSS 2 Feed Creator
      • MIME Generation
      • A New Add-on Facility
      • Workspace Improvement Hack
    • Mockito for Suneido
    • The Suneido Task Scheduler
    • Contributing To Suneido
    • Contributor Assignment of Copyright
    • Language Translation
    • Future Directions
    • Interview With Andrew Mckinlay
  • Forum
    • Announcements
    • Internals & Enhancements
    • Cookbook
    • General
  • FAQ
  • Screenshots
  • Downloads
  • Links

Re: Re: ExpandControl Refresh

Integrated Application Platform › Forums › General › ExpandControl Refresh › Re: Re: ExpandControl Refresh

June 28, 2013 at 2:46 pm #1013
amckinlay
Keymaster

.Send “sends” a message to parent Controller’s. (Only a Controller can respond to Send.)

You are probably more used to receiving these messages. For example, when you define an On_… method to respond to a button. The button is doing .Send(“On_…”)

If a parent Controller has a method with the same name as the first argument to Send (in this case “GetRecordControl”) then that method will be called with the remaining arguments to the Send (in this case there are no additional arguments).

If no method is found, then .Send returns 0.

In this case, the parent Controller with a GetRecordControl method is the RecordControl. It responds by returning itself.

Once we have the parent RecordControl, then we add “observers” to it. The method passed to AddSetObserver will be called by RecordControl whenever its Set method is called. The method passed to AddObserver will be added as an observer to the Record managed by the RecordControl. Record observers are called whenever a field is changed in the record.

I’m not sure why you can’t inspect rc, maybe because it has recursive self references.

Does that help?

Search Forums

Log In
Welcome to the new Suneido Web Site and Forum.
Register
Lost Password
users of the previous PHPBB Forum should be able to log in with their previous username and password.

Recent Topics

  • Alpha copy of gSuneido to play with
  • how to start jsuneido ?
  • Problem Starting Suneido…
  • Dialog not showing buttons
  • New link for Suneidojo

Contact Us | Legal Statement | Privacy Statement | SiteMap

Copyright © 2023 Axon® Development Corporation. All Rights Reserved. - Open Source Integrated Database and Programming Language