In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
TFolder bug?
-
- Mensajes: 339
- Registrado: Lun Jul 02, 2007 7:17 pm
TFolder bug?
Hi,
I draw a folder and want that it shows the tabs with a identical width of
80 pt.
Here the code:
WITH OBJECT ::oFold := TFolder():New( ::oPanel1 )
:SetBounds( 4, 68, 646, 342 )
WITH OBJECT ::oFolderPage1 := TFolderPage():New( ::oFold )
:cText := "&Mandant"
:Create()
END
WITH OBJECT ::oFolderPage2 := TFolderPage():New( ::oFold )
:cText := "&Gegner"
:Create()
END
WITH OBJECT ::oFolderPage3 := TFolderPage():New( ::oFold )
:cText := "Ge&richt"
:Create()
END
WITH OBJECT ::oFolderPage4 := TFolderPage():New( ::oFold )
:cText := "&Aktenkonto"
:Create()
END
WITH OBJECT ::oFolderPage5 := TFolderPage():New( ::oFold )
:cText := "F&ord./Kosten"
:Create()
END
WITH OBJECT ::oFolderPage6 := TFolderPage():New( ::oFold )
:cText := "&Text"
:Create()
END
WITH OBJECT ::oFolderPage7 := TFolderPage():New( ::oFold )
:cText := "&Dok-Register"
:Create()
END
WITH OBJECT ::oFolderPage8 := TFolderPage():New( ::oFold )
:cText := "&Zeiten"
:Create()
END
:nIndex := 1
:lRightJustify := .T.
:lFixedWidth := .T.
:nMinTabWidth := 80
:Create()
END
In the IDE it is shown correctly (see folder1.bmp) but when the app runs
it looks like on the picture folder2.bmp.
Regards
Ingo
--
Attached files Folder.zip (21.6 KB)Â
TFolder bug?
Ingo,
from the help file:
TTabCtrl:lFixedWidth
If it is .T., the tabs will have a fixed width. This style is not compatible
with the lRightJustify property.
--
Regards,
Jose F. Gimenez
from the help file:
TTabCtrl:lFixedWidth
If it is .T., the tabs will have a fixed width. This style is not compatible
with the lRightJustify property.
--
Regards,
Jose F. Gimenez
TFolder bug?
Ingo,
from the help file:
TTabCtrl:lFixedWidth
If it is .T., the tabs will have a fixed width. This style is not compatible
with the lRightJustify property.
--
Regards,
Jose F. Gimenez
from the help file:
TTabCtrl:lFixedWidth
If it is .T., the tabs will have a fixed width. This style is not compatible
with the lRightJustify property.
--
Regards,
Jose F. Gimenez
-
- Mensajes: 339
- Registrado: Lun Jul 02, 2007 7:17 pm
TFolder bug?
Jose,
>
>from the help file:
>
>
>TTabCtrl:lFixedWidth
>
>If it is .T., the tabs will have a fixed width. This style is not compatible
>with the lRightJustify property.
>
Yes I know, but when lRightJustify is .F. the tabwidth are too wide. When
lRightJustify is .T. it looks good on the IDE but not in the running app.
What to do? Is there any possibility to assign the width of the tab itself?
Regards
Ingo
>
>from the help file:
>
>
>TTabCtrl:lFixedWidth
>
>If it is .T., the tabs will have a fixed width. This style is not compatible
>with the lRightJustify property.
>
Yes I know, but when lRightJustify is .F. the tabwidth are too wide. When
lRightJustify is .T. it looks good on the IDE but not in the running app.
What to do? Is there any possibility to assign the width of the tab itself?
Regards
Ingo
-
- Mensajes: 339
- Registrado: Lun Jul 02, 2007 7:17 pm
TFolder bug?
Jose,
>
>from the help file:
>
>
>TTabCtrl:lFixedWidth
>
>If it is .T., the tabs will have a fixed width. This style is not compatible
>with the lRightJustify property.
>
Yes I know, but when lRightJustify is .F. the tabwidth are too wide. When
lRightJustify is .T. it looks good on the IDE but not in the running app.
What to do? Is there any possibility to assign the width of the tab itself?
Regards
Ingo
>
>from the help file:
>
>
>TTabCtrl:lFixedWidth
>
>If it is .T., the tabs will have a fixed width. This style is not compatible
>with the lRightJustify property.
>
Yes I know, but when lRightJustify is .F. the tabwidth are too wide. When
lRightJustify is .T. it looks good on the IDE but not in the running app.
What to do? Is there any possibility to assign the width of the tab itself?
Regards
Ingo
TFolder bug?
Ingo,
> What to do? Is there any possibility to assign the width of the tab
> itself?
Actually, there is no property to do it, sorry. However, there is a way...
put this code into the folder's OnCreate event:
METHOD Folder1Create( oSender ) CLASS TForm1
oSender:SendMsg( TCM_SETITEMSIZE, 0, 80 )
RETURN Nil
and "include" the header file "comctrl.api" at the beginning of the module,
just after "xailer.ch":
#include "Xailer.ch"
#include "Commctrl.api"
--
Regards,
Jose F. Gimenez
> What to do? Is there any possibility to assign the width of the tab
> itself?
Actually, there is no property to do it, sorry. However, there is a way...
put this code into the folder's OnCreate event:
METHOD Folder1Create( oSender ) CLASS TForm1
oSender:SendMsg( TCM_SETITEMSIZE, 0, 80 )
RETURN Nil
and "include" the header file "comctrl.api" at the beginning of the module,
just after "xailer.ch":
#include "Xailer.ch"
#include "Commctrl.api"
--
Regards,
Jose F. Gimenez
TFolder bug?
Ingo,
> What to do? Is there any possibility to assign the width of the tab
> itself?
Actually, there is no property to do it, sorry. However, there is a way...
put this code into the folder's OnCreate event:
METHOD Folder1Create( oSender ) CLASS TForm1
oSender:SendMsg( TCM_SETITEMSIZE, 0, 80 )
RETURN Nil
and "include" the header file "comctrl.api" at the beginning of the module,
just after "xailer.ch":
#include "Xailer.ch"
#include "Commctrl.api"
--
Regards,
Jose F. Gimenez
> What to do? Is there any possibility to assign the width of the tab
> itself?
Actually, there is no property to do it, sorry. However, there is a way...
put this code into the folder's OnCreate event:
METHOD Folder1Create( oSender ) CLASS TForm1
oSender:SendMsg( TCM_SETITEMSIZE, 0, 80 )
RETURN Nil
and "include" the header file "comctrl.api" at the beginning of the module,
just after "xailer.ch":
#include "Xailer.ch"
#include "Commctrl.api"
--
Regards,
Jose F. Gimenez
-
- Mensajes: 339
- Registrado: Lun Jul 02, 2007 7:17 pm
TFolder bug?
>Actually, there is no property to do it, sorry. However, there is a way...
>put this code into the folder's OnCreate event:
>
> METHOD Folder1Create( oSender ) CLASS TForm1
> oSender:SendMsg( TCM_SETITEMSIZE, 0, 80 )
> RETURN Nil
>
>and "include" the header file "comctrl.api" at the beginning of the module,
>just after "xailer.ch":
>
> #include "Xailer.ch"
> #include "Commctrl.api"
Jose,
wich importance has the property nMinTabWidth?
The help file says: "Indicates the minimum control tab width".
Why I can not do it this way?
Regards
Ingo
>put this code into the folder's OnCreate event:
>
> METHOD Folder1Create( oSender ) CLASS TForm1
> oSender:SendMsg( TCM_SETITEMSIZE, 0, 80 )
> RETURN Nil
>
>and "include" the header file "comctrl.api" at the beginning of the module,
>just after "xailer.ch":
>
> #include "Xailer.ch"
> #include "Commctrl.api"
Jose,
wich importance has the property nMinTabWidth?
The help file says: "Indicates the minimum control tab width".
Why I can not do it this way?
Regards
Ingo
-
- Mensajes: 339
- Registrado: Lun Jul 02, 2007 7:17 pm
TFolder bug?
>Actually, there is no property to do it, sorry. However, there is a way...
>put this code into the folder's OnCreate event:
>
> METHOD Folder1Create( oSender ) CLASS TForm1
> oSender:SendMsg( TCM_SETITEMSIZE, 0, 80 )
> RETURN Nil
>
>and "include" the header file "comctrl.api" at the beginning of the module,
>just after "xailer.ch":
>
> #include "Xailer.ch"
> #include "Commctrl.api"
Jose,
wich importance has the property nMinTabWidth?
The help file says: "Indicates the minimum control tab width".
Why I can not do it this way?
Regards
Ingo
>put this code into the folder's OnCreate event:
>
> METHOD Folder1Create( oSender ) CLASS TForm1
> oSender:SendMsg( TCM_SETITEMSIZE, 0, 80 )
> RETURN Nil
>
>and "include" the header file "comctrl.api" at the beginning of the module,
>just after "xailer.ch":
>
> #include "Xailer.ch"
> #include "Commctrl.api"
Jose,
wich importance has the property nMinTabWidth?
The help file says: "Indicates the minimum control tab width".
Why I can not do it this way?
Regards
Ingo
TFolder bug?
Ingo,
> wich importance has the property nMinTabWidth?
> The help file says: "Indicates the minimum control tab width".
> Why I can not do it this way?
nMinTabWidth can be used only if nFixedWidth is .F.
ITOH, there was a bug with nMinTabWidth (now it's fixed), and it is ignored
when the folder is created. But you can set it in the OnCreate event
(instead of the previous tip):
METHOD Folder1Create( oSender ) CLASS TForm1
oSender:nMinTabWidth := 80
RETURN Nil
--
Regards,
Jose F. Gimenez
> wich importance has the property nMinTabWidth?
> The help file says: "Indicates the minimum control tab width".
> Why I can not do it this way?
nMinTabWidth can be used only if nFixedWidth is .F.
ITOH, there was a bug with nMinTabWidth (now it's fixed), and it is ignored
when the folder is created. But you can set it in the OnCreate event
(instead of the previous tip):
METHOD Folder1Create( oSender ) CLASS TForm1
oSender:nMinTabWidth := 80
RETURN Nil
--
Regards,
Jose F. Gimenez
TFolder bug?
Ingo,
> wich importance has the property nMinTabWidth?
> The help file says: "Indicates the minimum control tab width".
> Why I can not do it this way?
nMinTabWidth can be used only if nFixedWidth is .F.
ITOH, there was a bug with nMinTabWidth (now it's fixed), and it is ignored
when the folder is created. But you can set it in the OnCreate event
(instead of the previous tip):
METHOD Folder1Create( oSender ) CLASS TForm1
oSender:nMinTabWidth := 80
RETURN Nil
--
Regards,
Jose F. Gimenez
> wich importance has the property nMinTabWidth?
> The help file says: "Indicates the minimum control tab width".
> Why I can not do it this way?
nMinTabWidth can be used only if nFixedWidth is .F.
ITOH, there was a bug with nMinTabWidth (now it's fixed), and it is ignored
when the folder is created. But you can set it in the OnCreate event
(instead of the previous tip):
METHOD Folder1Create( oSender ) CLASS TForm1
oSender:nMinTabWidth := 80
RETURN Nil
--
Regards,
Jose F. Gimenez