I have a MdiChild with a Dialog with an embedded TFolderex that when the program starts, the initial folder "ADVTBROW" does not completely paint.
Within ADVTBROW is an embedded xBrowse and two buttons .. As you can see xBrowse is not completely painted and the buttons are not visible. However, if you mouse over the panel .. all the TFolderex "ADVTBROW" dialog paints properly.
I have tried the obvious with ON PAINT and to refresh the Folder ON INIT .. nothing works .. here is the snipit of code ..
- Code: Select all Expand view
DEFINE ICON oICO RESOURCE "CUSTOMER"
DEFINE WINDOW oWndChild ;
MDICHILD ;
FROM 0,1 to 37,117 ;
NOMINIMIZE ;
ICON oIco ;
NOZOOM ;
OF oWind ;
TITLE cTITLE
DEFINE DIALOG oGRPS RESOURCE "CUSTVIEW" ;
of oWndChild
REDEFINE FOLDEREX oFld ID 173 of oGrps ;
PROMPT "Advertising Information", "Billing-Invoicing Information";
DIALOGS "ADVTBROW", "BILLING" ;
ON CHANGE( nFolder := nOption )
// folder 1
REDEFINE xBROWSE oLbxA ;
RECORDSET oRsAdvt ;
COLUMNS "PUBLICATIONID", ;
"PUBLICATIONNAME", ;
"STARTDATE", ;
"ENDINGDATE", ;
"ACCOUNTEXECUTIVE" ;
COLSIZES 50,120,80,80,150 ;
HEADERS "PubId", ;
"Publication", ;
"StartDate", ;
"EndDate", ;
"Acct Executive" ;
ID 272 of oFld:aDialogs[1] ;
AUTOCOLS LINES CELL
oLbxA:lRecordSelector := .f.
oLbxA:lHScroll := .f. // turn off horiz scroll bar
REDEFINE BTNBMP oBTN5 ID 213 of oFld:aDialogs[1] ; // add
PROMPT "Add" LEFT 2007;
ACTION ( nil )
REDEFINE BTNBMP oBTN6 ID 214 of oFld:aDialogs[1] ; // edit
PROMPT "Edit" LEFT 2007;
ACTION ( nil )
// end folder1
..
.. says and gets
ACTIVATE DIALOG oGRPS NOWAIT ;
VALID(!GETKEYSTATE( 27 ))
ACTIVATE WINDOW oWndChild ;
ON PAINT ( oFld:ReFresh(),oLbxA:ReFresh(),SysReFresh() ) ;
ON INIT ( oGrps:Move( 0,0, oWndchild:nWidth, oWndchild:nHeight, .T. ), ;
oFld:ReFresh(),oLbxA:ReFresh(),SysReFresh(),oName:SetFocus());
VALID ( IIF( !lOk, ExitPgm( .T.,oRsCust,@lOk,oFontB,oWndChild ) , .F. ))
One thing I do notice as the initial screen paints .. I do see all the controls momentarily, then the panel folder seems to go out of focus and the buttons disappear and the xBrowse is not painted correctly.
Surely there is a quick fix .. I would appreciate any advice.
Rick Lipkin