I want to increase the height of the tab control items using SetItemsize when themes are active.
It is working fine as long as the transparent clause is not used.
Please see the difference in the modified testfld4.prg below once compiled with TRANSPARENT once without (with themes in RC-file)
I'm using FWH 9.07.
How can this be fixed?
Thanks for help,
Dietmar
- Code: Select all Expand view
#include "fivewin.ch"
PROCEDURE main()
LOCAL oDlg, oFolder
LOCAL cContrato:=space(13) ,;
cNombre:=space(30) ,;
cDireccion:=space(60) ,;
cTelefono:=space(10) ,;
cNotas:=""
//Define dialogo
DEFINE DIALOG oDlg NAME "DLGTEST";
TITLE "Another folder test";
TRANSPARENT
// Redefine controles
REDEFINE GET cContrato;
ID 101 OF oDlg;
PICTURE "@!" ;
VALID !empty(cContrato)
//Redefine controles del dialogo
REDEFINE FOLDER oFolder ;
ID 102 ;
OF oDlg ;
PROMPTS "Pagina &1","Pagina &2" ;
DIALOGS "DlgPage1", "DlgPage2"
// oFolder:lWin95Look:=.f.
//Redefine controles del 1er. page
*=======================================================================
REDEFINE GET cNombre;
ID 101 OF oFolder:aDialogs[1];
PICTURE "@!" ;
VALID !empty(cNombre)
REDEFINE GET cDireccion;
ID 102 OF oFolder:aDialogs[1];
PICTURE "@!";
VALID !empty(cDireccion)
REDEFINE GET cTelefono;
ID 103 OF oFolder:aDialogs[1]
REDEFINE BTNBMP ;
ID 104 OF oFolder:aDialogs[1];
NAME "CANCELAR";
ACTION ( MsgDate() )
//Redefine controles del 2do. page
*=======================================================================
REDEFINE GET cNotas;
ID 101 OF oFolder:aDialogs[2];
MEMO
*=======================================================================
REDEFINE BUTTON;
ID 201 OF oDlg
REDEFINE BUTTON;
ID 202 OF oDlg;
ACTION oDlg:end() CANCEL
//Activar dialogo
ACTIVATE DIALOG oDlg CENTER;
On INIT IIF(IsThemeActive(), oFolder:SetItemsize( ,25 ), ) //---> changed
RETURN
procedure AppSys // Xbase++ requirement
return