johnf wrote: > On Monday 17 November 2008 12:03:17 pm Bob Sysero llc Dev wrote: > >> Quick question in the ClassDesigner using the editor when I select Form >> and then the method afterInitAll: >> self.quickButtons = [self.QuickButton1, self.QuickButton2, ... ] >> >> #1 - Why is the "Form" not included in the"self.QuickButton1" like >> "self.Form.QuickButton1" >> >> #2 -When setting self.quickButtons in the afterInitAll will my >> switchButton see the "self" in the target = self.quickButtons[btnNum]? >> >> I am trying to understand how dabo works. >> >> Thank You >> >> Bob >> > > The ".Form" is required if you are outside of the main form class. > Therefore, > if you are in the main form class (is it called dForm, or someother name?) > all that is required is 'self'. 'self' makes reference to the class > instance. It is also not possible to answer your question directly without > knowing more info or seeing the code. Is 'QuickButton' defined in the main > form class or outside? > > Check out name space under python In my design I have a group of buttons called "Business Selection" that is Horizontal and below my menu items. In the Business Selection Buttons I have three buttons [Customer] [Employee] [Office] [Manager].
Down the left side a group of buttons called "Quick Action" that cans at first default buttons like: [Time Clock] [POS ] [Inventory ] When the user selects in the Business Selection group [Customer] the Quick Action group buttons will change to Buttons related to the Customer like: [POS ] [Shipping ] [Stock ] When the user press POS my primary window the main menuButton window created by the ClassDesigner will hide or be overlaid on top I have not decide let. Once the user is done with the POS window it will be closed and the main menuButton window will be made active. The default Quick Buttons will be redisplayed. [Time Clock] [POS ] [Inventory ] What I want to do is store all the labels in groups in a SQLite Database. When my application starts up my "main menuButton Window" I want to have my menuManager read the database and create a dictionary called menuButtonDetail that will have a list for each button information [ID,GroupID,Caption,Color,DoAction,,]. I will also need a dictionary called BusinessSelected and QuickAction that will contain a list for the button order for BusinessSelection Button1 - Button4, with a link to the menuButtonDetail ID, HideButton T/F. The QuickAction Buttons will contain a the same list. All these dictionary will stay in memory for the life of the main menuButton Window. I think what I need to do is use a Business Object that will contain my menuButtonManager that will change the Buttons Dynamically on the Form that was created using the ClassDesigner. The Business Object will not directly read that database and change the Buttons on the form. What the Business Object will do is load my Dictionaries and the Business Object menuButtonManager will handle the Buttons on the form. From what I read and heard on the tutorials this is one of the functions that the Business Object is design to do. I have no idea how to do this with the ClassDesigner and the Business Object. First of all am I going the right direction? 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/[EMAIL PROTECTED]
