Hey everyone,
I am coming across an issue where I'm wanting to change the name of the Panel title depending on conditions that are met as the user progress through the questions in the dialog box. But as it seems, Alpha does not give much flexability with panels...
The only solution I have found so far is to duplicate the entire panel and show it based on a condition, but duplicating a whole panel just for a title change seems messy.
Has anyone else come across this and found a solution? I would even settle for the ability to change the font color of a panel title.
Here is some test code to show what I am talking about:
I am coming across an issue where I'm wanting to change the name of the Panel title depending on conditions that are met as the user progress through the questions in the dialog box. But as it seems, Alpha does not give much flexability with panels...
The only solution I have found so far is to duplicate the entire panel and show it based on a condition, but duplicating a whole panel just for a title change seems messy.
Has anyone else come across this and found a solution? I would even settle for the ability to change the font color of a panel title.
Here is some test code to show what I am talking about:
Code:
dim a_card_type[100] as C x = "American Express,Visa,Master Card,Discover" a_card_type.initialize(x) dim a_expire_month[12] as C x = "01,02,03,04,05,06,07,08,09,10,11,12" a_expire_month.initialize(x) dim a_expire_year[10] as C x = "2000,2001,2002,2003,2004,2005,2006,2007,2008,2009" a_expire_year.initialize(x) Test = .t. page = "Billing" result = ui_dlg_box("Title",<<%dlg% {tab=page} {pane=Yes (Complete)?Test=.f.} {region} First name:| .32firstname ; Last name:| .32lastname ; Address 1:| .32address1 ; Address 2:| .32address2 ; City:| .32City ; State:| State ; Zip:| Zip {endregion}; {pane=Yes?Test} {region} First name:| .32firstname ; Last name:| .32lastname ; Address 1:| .32address1 ; Address 2:| .32address2 ; City:| .32City ; State:| State ; Zip:| Zip {endregion}; {pane=Credit Card} {region} Card Type:| .32card_type^=a_card_type ; Card Number:| .32card_number ; Expiration:| .4expiry_month^=a_expire_month .5expiry_year^=a_expire_year ; {endregion}; {endtab}| {Region3} <10&OK!OK>; <10&Cancel> {Endregion3} %dlg%, <<%code% if a_dlg_button = "OK" If Test Test = .f. else Test = .t. end if a_dlg_button = "" end if %code%)
Comment