johnf wrote:
> On Saturday 15 November 2008 04:26:53 pm Bob Sysero llc Dev wrote:
>   
>>   I am using the Dabo ClassDesigner to create a Main Form that has Quick
>> Action Buttons that can changed during the life of the application.
>> What I like to do is create a low level class called menuButton that I
>> can change any of my group buttons called QuickButtons.  One way is to
>> use the If elif:
>>
>>   If QuickButton == 1:
>>       self.Form.QuickButton1.Caption = "Time Clock"
>>       self.Form.QuickButton1.Visible = True
>>   If QuickButton == 2:
>>       self.Form.QuickButton2.Caption = "Time Clock"
>>       self.Form.QuickButton2.Visible = True
>>   and ...........
>>
>>   Is their a better way to do this?
>>
>> Bob
>>     
>
> In the end your code describes what must happen.  But there are two 
> techniques 
> that you can use to get the job done.  
>
> One is using a dynamic property such as "DynamicVisible" or create your own 
> dynamic property.  Dynamic properties are set everytime you issue a 
> Form.update().  The problem I had was a need to call the "update" from the 
> dynamic methods - which of course caused a loop.
>
> A second techinque would be to use the overlay as described on the wiki.
> http://dabodev.com/wiki/HowToOverlayControls
> What this provides is a way to have several controls that occupy the same 
> general location on a form.  And only visible based on some sort of trigger.
>
> Of course you can use a combination of the above to get the job done.  
>   
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/[EMAIL PROTECTED]

Reply via email to