Firstly thank you so much for a very helpful forum. My previous two queries were answered brilliantly as well as promptly. Marcus even updated the blog page with what seemed to be a much discussed topic.
Furthermore, my current issue has had at least 75% of it resolved through posts on this forum already.
Now, onto my current issue (if you don't mind)
I have build Dialog boxes that listen to events, and blank out fields depending on other fields and hide and show... the works so thank you.
2 things i cannot do yet are:
1. I am unable to have a frame. A frame to encapsulate certain things on my dialog. At the moment one very dodgy work around i have is to put a radio group, leave the caption section blank and then put my contents on top of it, but I am not comfortable with this solution and would love some suggestions to others.
2. When i put a radio group with multi buttons, they always appear vertically i.e.
option 1
option 2
option 3
etc....
How can i get them to appear side by side? i.e.
option 1 option2 option3 etc...
Thanks guys!
P.S. this is what I am trying to replicate

Also, using the code below, I am able to grey out a field depending on another field. But MS seems to only grey out the text. So when there is no text in the fie3ld tha is being greyed out, it is not visible that a field is greying out. Another facinitating thing i fould was once i clicked on the greyed out field, the area which triggers the greying out, automatically changes to allow editing.. Its great but i am not sure how it works
Code: Select all
Dialog>ApplicantDetailOneDialog
Caption=Personal Information
Width=296
Height=391
Top=130
Left=257
RadioGroup=rgExitingCust,Existing Customer,16,15,217,82,No%CRLF%Yes,0
Label=ID,144,40,true
Edit=txtboxID,101,58,121,
Label=Title,16,128,true
ComboBox=cbTitle,96,128,145,Mr%CRLF%Mrs%CRLF%Miss%CRLF%Ms%CRLF%Dr
Label=First Name,16,172,true
Edit=txtboxFirstName,96,173,121,
Label=Middle Name,16,200,true
Edit=txtboxMiddleName,96,204,121,
Label=Surname,16,236,true
Edit=txtboxSurname,96,237,121,
Label=DOB,16,264,true
ComboBox=cbDOBday,96,272,41,DD%CRLF%1%CRLF%2%CRLF%3%CRLF%4%CRLF%5%CRLF%6%CRLF%7%CRLF%8%CRLF%9%CRLF%10%CRLF%11%CRLF%12%CRLF%13%CRLF%14%CRLF%15%CRLF%16%CRLF%17%CRLF%18%CRLF%19%CRLF%20%CRLF%21%CRLF%22%CRLF%23%CRLF%24%CRLF%25%CRLF%26%CRLF%27%CRLF%28%CRLF%29%CRLF%30%CRLF%31
ComboBox=cbDOBmonth,144,272,41,MM%CRLF%1%CRLF%2%CRLF%3%CRLF%4%CRLF%5%CRLF%6%CRLF%7%CRLF%8%CRLF%9%CRLF%10%CRLF%11%CRLF%12
ComboBox=cbDOByear,192,272,85,YYYY%CRLF%2009%CRLF%2008%CRLF%2007%CRLF%2006%CRLF%2005%CRLF%2004%CRLF%2003%CRLF%2002%CRLF%2001%CRLF%2000%CRLF%1999%CRLF%1998%CRLF%1997%CRLF%1996%CRLF%1995%CRLF%1994%CRLF%1993%CRLF%1992%CRLF%1991%CRLF%1990%CRLF%1989%CRLF%1988%CRLF%1987%CRLF%1986%CRLF%1985%CRLF%1984%CRLF%1983%CRLF%1982%CRLF%1981%CRLF%1980%CRLF%1979%CRLF%1978%CRLF%1977%CRLF%1976%CRLF%1975%CRLF%1974%CRLF%1973%CRLF%1972%CRLF%1971%CRLF%1970%CRLF%1969%CRLF%1968%CRLF%1967%CRLF%1966%CRLF%1965%CRLF%1964%CRLF%1963%CRLF%1962%CRLF%1961%CRLF%1960
Button=&Cancel,16,313,75,25,3
Button=&Next,132,312,75,25,1
EndDialog>ApplicantDetailOneDialog
OnEvent>DIALOG_CHANGE,ApplicantDetailOneDialog,rgExitingCust,rgExitingCustSRT
SRT>rgExitingCustSRT
GetDialogAction>ApplicantDetailOneDialog,r
If>%ApplicantDetailOneDialog.rgExitingCust%=Yes
LibFunc>user32,EnableWindow,lfres,ApplicantDetailOneDialog.txtboxID.HANDLE,1
Else
LibFunc>user32,EnableWindow,lfres,ApplicantDetailOneDialog.txtboxID.HANDLE,0
EndIf
END>rgExitingCustSRT
//Non-Modal Dialog
Show>ApplicantDetailOneDialog
Label>ActionLoop
GetDialogAction>ApplicantDetailOneDialog,r
If>{(%r%=2) OR (%r%=3)},Exit
If>r=1,NextSRT
Wait>0.3
Goto>ActionLoop
Label>Exit