I have a complex dialog that is created from a database. With dcread gui fit the dialog size is calculated automatically. Now I have the problem that one element causes the dialog to get larger than expected. But I do not find the getelement in the getlist that is wrong positioned, it is not visible in the dialog. I have tried to check the getlist, but fund no element with my function that is out of the expected dialog size. Can you give me a tip for my testfunction to find the element the is more left then the defined screensize ?
regards
Rudolf
Code: Select all
function checkgetlist(aGetlist,aStaticSize) // size = {960,720}
******************************************************************
local x,cID,nZeile,nSpalte,nUnten,nLinks,nBreite,nHoehe
for x := 1 to len(aGetlist)
cID := aGetlist[x,cGETLIST_ID]
nZeile := aGetlist[x,nGETLIST_STARTROW]
nSpalte := aGetlist[x,nGETLIST_STARTCOL]
nUnten := aGetlist[x,nGETLIST_ENDROW]
nLinks := aGetlist[x,nGETLIST_ENDCOL]
nBreite := aGetlist[x,nGETLIST_WIDTH]
nHoehe := aGetlist[x,nGETLIST_HEIGHT]
if !empty(nSpalte)
if nSpalte > aStaticSize[1]
altd()
endif
if !empty(nWidth)
if nSpalte + nWidth > aStaticSize[1]
altd()
endif
endif
endif
if !empty(nWidth)
if nWidth > aStaticSize[1]
altd()
endif
endif
next x
toastmsg("Ready!")
return .t.