Dear Dabo-user,

        I have a Sqlite application Database that has two tables called
menuItemTbl and buttonItemTbl. I created two bizobjs menuItemBizObj and
buttonItemBizObj.  The main form is called mainMenuButtonForm that
contains my menu, tool bar with the buttons and status bar.  The menu
and tool bar buttons captions will dynamically changed, based on what
the user selects from the menu or button.

        The first Step is when my application is first started I need to
inialize all the buttons captions on the toolbar using my
buttonItemBizObj class that contains the data in the buttonItemTbl.
All my buttons contains a unique  RegID like "businessButton1" to
"businessButton8".  In the Class Designer in the editor dForm method
afterInitAll I the following code:

  buttonBizObj    = self.Form.getBizobj("buttons")
  butttonDataSet  = buttonBizObj.getDataSet() # get button data set

                # manually setting a single button for debugging
                #  norminal I would call 
                # buttonManager.Initialize(self,buttonDataSet)

   self.Form.BusinessButton1.Caption =
               buttonManager.getCaption(self,buttonDataSet)

        I am getting a Caption from buttonManager.getCaption() that equals
"Customer Orders" and self.Form.BusinessButton1.Caption contains 
"Customer Orders" but the button on the form when I run the form is not
getting updated.

        The second Step is when the user press the button in the toolbar like
"Customer Orders" I will then call the child form "Customer Orders" that
will be placed below the menu and tool bar as a MDI on the parent form
mainMenuButtonForm.  The mainMenuButtonForm toolbar will then change to
reflected the buttons for this application. I am doing this all in the
Class DesimainMenuButtonFormgner.  When the user presses a button on the
toolbar the onHit will call my buttonManager that is its on module. This
will not be a problems because I have already create some simple test
that worked without a problem.

        My question is how do I call the child Form and place it in my
mainMenuButtonForm sizer or should it be a panel? 

        How do I access the two forms by name to pass control?

Thank you
Bob
  





_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/1232819546.19462.69.ca...@sysero-rkm-laptop

Reply via email to