Re: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread Mattias Gaertner
On Mon, 18 Jun 2007 09:26:13 +0200
Graeme Geldenhuys [EMAIL PROTECTED] wrote:

 Hi,
 
 What is the difference between these two components?

TPageControl is a descendant of TCustomNoteBook and provides a few more
utility functions.

 
 Which one would be more reliable in a production environment? The
 product will be released of Windows and Linux.

AFAIK both are equally reliable. 

Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread Henry Vermaak

On 18/06/07, Graeme Geldenhuys [EMAIL PROTECTED] wrote:

Hi,

What is the difference between these two components?

Which one would be more reliable in a production environment? The
product will be released of Windows and Linux.




i'm using lots of pagecontrol/tabsheets in a project at the moment.
they work very well.  only complaint thus far is that i can't seem to
select them reliably in the visual editor.  i need to select them in
the object inspector.


Regards,
  - Graeme -


henry

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread Graeme Geldenhuys

On 18/06/07, Henry Vermaak [EMAIL PROTECTED] wrote:


i'm using lots of pagecontrol/tabsheets in a project at the moment.
they work very well.  only complaint thus far is that i can't seem to
select them reliably in the visual editor.  i need to select them in
the object inspector.



I noticed that as well for the TPageControl and the TTabControl.  The
TNotebook seems to be more reliable in that case.

Regards,
 - Graeme -

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread Charl van Jaarsveldt

Also, in both, if you are designing a tab, then flip over to another tab,
any new components dropped onto the tab you are now on will not be displayed
at design time, only the resize blocks will be there to tell you where it
is. This happens in Gtk2, not sure about Gtk1. Workaround is to save the
project and then reopen it, then you can go on designing the other tab.

Charl

On 6/18/07, Graeme Geldenhuys [EMAIL PROTECTED] wrote:


On 18/06/07, Henry Vermaak [EMAIL PROTECTED] wrote:

 i'm using lots of pagecontrol/tabsheets in a project at the moment.
 they work very well.  only complaint thus far is that i can't seem to
 select them reliably in the visual editor.  i need to select them in
 the object inspector.


I noticed that as well for the TPageControl and the TTabControl.  The
TNotebook seems to be more reliable in that case.

Regards,
  - Graeme -

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives





--
I love deadlines. I especially love the whooshing sound they make as they
fly by. - Douglas Adams


Re: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread Henry Vermaak

On 18/06/07, Charl van Jaarsveldt [EMAIL PROTECTED] wrote:

Also, in both, if you are designing a tab, then flip over to another tab,
any new components dropped onto the tab you are now on will not be displayed
at design time, only the resize blocks will be there to tell you where it
is. This happens in Gtk2, not sure about Gtk1. Workaround is to save the
project and then reopen it, then you can go on designing the other tab.


yes.  everything works o.k. if you use the object inspector to select
the tabs, though.  i haven't had time to look into this (i'm not brave
enough, actually).



Charl



henry

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread Graeme Geldenhuys

On 18/06/07, Charl van Jaarsveldt [EMAIL PROTECTED] wrote:

Also, in both, if you are designing a tab, then flip over to another tab,
any new components dropped onto the tab you are now on will not be displayed
at design time, only the resize blocks will be there to tell you where it
is. This happens in Gtk2, not sure about Gtk1. Workaround is to save the
project and then reopen it, then you can go on designing the other tab.

Charl


You don't need to reopen the project, just reload the form.  Save
files, close the form in the Visual Designer (top left cross), then
press F12 to load it again. Works for me. I'm using GTK1 btw.

Has anybody reported these issues in Mantis yet?

Regards,
 - Graeme -

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread Charl van Jaarsveldt

here is one: http://www.freepascal.org/mantis/view.php?id=8346

On 6/18/07, Graeme Geldenhuys [EMAIL PROTECTED] wrote:


On 18/06/07, Charl van Jaarsveldt [EMAIL PROTECTED] wrote:
 Also, in both, if you are designing a tab, then flip over to another
tab,
 any new components dropped onto the tab you are now on will not be
displayed
 at design time, only the resize blocks will be there to tell you where
it
 is. This happens in Gtk2, not sure about Gtk1. Workaround is to save the
 project and then reopen it, then you can go on designing the other tab.

 Charl

You don't need to reopen the project, just reload the form.  Save
files, close the form in the Visual Designer (top left cross), then
press F12 to load it again. Works for me. I'm using GTK1 btw.

Has anybody reported these issues in Mantis yet?

Regards,
  - Graeme -

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives





--
I love deadlines. I especially love the whooshing sound they make as they
fly by. - Douglas Adams


Re: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread Christian Ulrich



Which one would be more reliable in a production environment? The
product will be released of Windows and Linux.

I use TPagecontrol at time, in Windows it works well in GTK it isnt 
visible after the second Form.Show so its useless in an productive 
Enviroment. Dont know about TNotebook.


regards
Christian

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread Henry Vermaak

On 18/06/07, Christian Ulrich [EMAIL PROTECTED] wrote:


I use TPagecontrol at time, in Windows it works well in GTK it isnt
visible after the second Form.Show so its useless in an productive
Enviroment. Dont know about TNotebook.



mine doesn't even work in windows.  i wouldn't call it useless - just
a bother to select components in the o.i. instead of visually.


regards
Christian



henry

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread Hess, Philip J
Graeme,

You might want to check and see if TNotebook has this same problem:

http://www.freepascal.org/mantis/view.php?id=8056

What this means is that anchored controls on a TTabSheet don't resize
when the sheet does following a resize of form at runtime. That is, the
controls on the TTabSheet stay the same size, regardless of how big the
TTabSheet gets (or how small).

I would think this would be a showstopper for a lot of programs.
Generally most programs don't restrict the main form to a set size,
which is what would be required to use TTabSheet/TPageControl.

Thanks.

-Phil


-Original Message-
From: Graeme Geldenhuys [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 18, 2007 8:53 AM
To: lazarus@miraclec.com
Subject: Re: [lazarus] TNoteBook vs TPageControl

On 18/06/07, Charl van Jaarsveldt [EMAIL PROTECTED] wrote:
 Also, in both, if you are designing a tab, then flip over to another
tab,
 any new components dropped onto the tab you are now on will not be
displayed
 at design time, only the resize blocks will be there to tell you where
it
 is. This happens in Gtk2, not sure about Gtk1. Workaround is to save
the
 project and then reopen it, then you can go on designing the other
tab.

 Charl

You don't need to reopen the project, just reload the form.  Save
files, close the form in the Visual Designer (top left cross), then
press F12 to load it again. Works for me. I'm using GTK1 btw.

Has anybody reported these issues in Mantis yet?

Regards,
  - Graeme -

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread George Lober

Hello,

Yes that would be showstopper, but I checked TPageControl/TTabSheet 
under GTK, with TButton, TEdit, TListview and TStringGrid, and the 
controls resize correctly, either with alClient or with alNone and 
anchors set. ???


Regards,
George


Hess, Philip J wrote:

Graeme,

You might want to check and see if TNotebook has this same problem:

http://www.freepascal.org/mantis/view.php?id=8056

What this means is that anchored controls on a TTabSheet don't resize
when the sheet does following a resize of form at runtime. That is, the
controls on the TTabSheet stay the same size, regardless of how big the
TTabSheet gets (or how small).

I would think this would be a showstopper for a lot of programs.
Generally most programs don't restrict the main form to a set size,
which is what would be required to use TTabSheet/TPageControl.

Thanks.

-Phil


-Original Message-
From: Graeme Geldenhuys [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 18, 2007 8:53 AM

To: lazarus@miraclec.com
Subject: Re: [lazarus] TNoteBook vs TPageControl

On 18/06/07, Charl van Jaarsveldt [EMAIL PROTECTED] wrote:
  

Also, in both, if you are designing a tab, then flip over to another


tab,
  

any new components dropped onto the tab you are now on will not be


displayed
  

at design time, only the resize blocks will be there to tell you where


it
  

is. This happens in Gtk2, not sure about Gtk1. Workaround is to save


the
  

project and then reopen it, then you can go on designing the other


tab.
  

Charl



You don't need to reopen the project, just reload the form.  Save
files, close the form in the Visual Designer (top left cross), then
press F12 to load it again. Works for me. I'm using GTK1 btw.

Has anybody reported these issues in Mantis yet?

Regards,
  - Graeme -

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

  


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread Hess, Philip J
George,

Did you test with the sample app included with the Mantis bug report? On
Windows, the TEdit on the form resizes okay when you resize the form
horizontally, but the TEdit on the TTabSheet does not.

Thanks.

-Phil


-Original Message-
From: George Lober [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 18, 2007 2:09 PM
To: lazarus@miraclec.com
Subject: Re: [lazarus] TNoteBook vs TPageControl

Hello,

Yes that would be showstopper, but I checked TPageControl/TTabSheet 
under GTK, with TButton, TEdit, TListview and TStringGrid, and the 
controls resize correctly, either with alClient or with alNone and 
anchors set. ???

Regards,
George


Hess, Philip J wrote:
 Graeme,

 You might want to check and see if TNotebook has this same problem:

 http://www.freepascal.org/mantis/view.php?id=8056

 What this means is that anchored controls on a TTabSheet don't resize
 when the sheet does following a resize of form at runtime. That is,
the
 controls on the TTabSheet stay the same size, regardless of how big
the
 TTabSheet gets (or how small).

 I would think this would be a showstopper for a lot of programs.
 Generally most programs don't restrict the main form to a set size,
 which is what would be required to use TTabSheet/TPageControl.

 Thanks.

 -Phil


 -Original Message-
 From: Graeme Geldenhuys [mailto:[EMAIL PROTECTED] 
 Sent: Monday, June 18, 2007 8:53 AM
 To: lazarus@miraclec.com
 Subject: Re: [lazarus] TNoteBook vs TPageControl

 On 18/06/07, Charl van Jaarsveldt [EMAIL PROTECTED] wrote:
   
 Also, in both, if you are designing a tab, then flip over to another
 
 tab,
   
 any new components dropped onto the tab you are now on will not be
 
 displayed
   
 at design time, only the resize blocks will be there to tell you
where
 
 it
   
 is. This happens in Gtk2, not sure about Gtk1. Workaround is to save
 
 the
   
 project and then reopen it, then you can go on designing the other
 
 tab.
   
 Charl
 

 You don't need to reopen the project, just reload the form.  Save
 files, close the form in the Visual Designer (top left cross), then
 press F12 to load it again. Works for me. I'm using GTK1 btw.

 Has anybody reported these issues in Mantis yet?

 Regards,
   - Graeme -

 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives

 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives

   

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread George Lober
Ok, never mind, I see now the bug is applicable to Win32 only. Although 
using other modes other than alNone, seems to work Ok.


George


George Lober wrote:

Hello,

Yes that would be showstopper, but I checked TPageControl/TTabSheet 
under GTK, with TButton, TEdit, TListview and TStringGrid, and the 
controls resize correctly, either with alClient or with alNone and 
anchors set. ???


Regards,
George


Hess, Philip J wrote:

Graeme,

You might want to check and see if TNotebook has this same problem:

http://www.freepascal.org/mantis/view.php?id=8056

What this means is that anchored controls on a TTabSheet don't resize
when the sheet does following a resize of form at runtime. That is, the
controls on the TTabSheet stay the same size, regardless of how big the
TTabSheet gets (or how small).

I would think this would be a showstopper for a lot of programs.
Generally most programs don't restrict the main form to a set size,
which is what would be required to use TTabSheet/TPageControl.

Thanks.

-Phil


-Original Message-
From: Graeme Geldenhuys [mailto:[EMAIL PROTECTED] Sent: 
Monday, June 18, 2007 8:53 AM

To: lazarus@miraclec.com
Subject: Re: [lazarus] TNoteBook vs TPageControl

On 18/06/07, Charl van Jaarsveldt [EMAIL PROTECTED] wrote:
 

Also, in both, if you are designing a tab, then flip over to another


tab,
 

any new components dropped onto the tab you are now on will not be


displayed
 

at design time, only the resize blocks will be there to tell you where


it
 

is. This happens in Gtk2, not sure about Gtk1. Workaround is to save


the
 

project and then reopen it, then you can go on designing the other


tab.
 

Charl



You don't need to reopen the project, just reload the form.  Save
files, close the form in the Visual Designer (top left cross), then
press F12 to load it again. Works for me. I'm using GTK1 btw.

Has anybody reported these issues in Mantis yet?

Regards,
  - Graeme -

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

  


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives





_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread Hess, Philip J
I don't see that on Windows. Setting the TEdit's Align to alCustom has
the same problem as clNone. The other settings expand the TEdit to take
up the entire sheet, which isn't what we want.

Thanks.

-Phil


-Original Message-
From: George Lober [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 18, 2007 2:57 PM
To: lazarus@miraclec.com
Subject: Re: [lazarus] TNoteBook vs TPageControl

Ok, never mind, I see now the bug is applicable to Win32 only. Although 
using other modes other than alNone, seems to work Ok.

George


George Lober wrote:
 Hello,

 Yes that would be showstopper, but I checked TPageControl/TTabSheet 
 under GTK, with TButton, TEdit, TListview and TStringGrid, and the 
 controls resize correctly, either with alClient or with alNone and 
 anchors set. ???

 Regards,
 George


 Hess, Philip J wrote:
 Graeme,

 You might want to check and see if TNotebook has this same problem:

 http://www.freepascal.org/mantis/view.php?id=8056

 What this means is that anchored controls on a TTabSheet don't resize
 when the sheet does following a resize of form at runtime. That is,
the
 controls on the TTabSheet stay the same size, regardless of how big
the
 TTabSheet gets (or how small).

 I would think this would be a showstopper for a lot of programs.
 Generally most programs don't restrict the main form to a set size,
 which is what would be required to use TTabSheet/TPageControl.

 Thanks.

 -Phil


 -Original Message-
 From: Graeme Geldenhuys [mailto:[EMAIL PROTECTED] Sent: 
 Monday, June 18, 2007 8:53 AM
 To: lazarus@miraclec.com
 Subject: Re: [lazarus] TNoteBook vs TPageControl

 On 18/06/07, Charl van Jaarsveldt [EMAIL PROTECTED] wrote:
  
 Also, in both, if you are designing a tab, then flip over to another
 
 tab,
  
 any new components dropped onto the tab you are now on will not be
 
 displayed
  
 at design time, only the resize blocks will be there to tell you
where
 
 it
  
 is. This happens in Gtk2, not sure about Gtk1. Workaround is to save
 
 the
  
 project and then reopen it, then you can go on designing the other
 
 tab.
  
 Charl
 

 You don't need to reopen the project, just reload the form.  Save
 files, close the form in the Visual Designer (top left cross), then
 press F12 to load it again. Works for me. I'm using GTK1 btw.

 Has anybody reported these issues in Mantis yet?

 Regards,
   - Graeme -

 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives

 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives

   

 _
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives




_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread George Lober
Ok, you got me on that one. I don't use alCustom, never needed to, so I 
didn't check for that. Also if for example you use alTop and you set 
Anchor akBottom to true, this will also not work. Again I don't use 
those combinations, so I didn't check. I usually use alNone with 
anchors, alClient, or alTop, alLeft, alRight, alBottom with a splitter 
or without setting the fourth anchor. A lot of the time I have found it 
useful to place things in TPanels (as well as TPanels inside a TPanels) 
in combination with the previously mentioned modes to position things 
around, sort of my way of getting things to position somewhat like in 
Java.  So far I have pretty much gotten the effects I want doing it that 
way. For my way of doing things the only limitation would be the alNone 
with anchors set mode, which does limit what you can do with the look of 
an app.


Regards,
George


Hess, Philip J wrote:

I don't see that on Windows. Setting the TEdit's Align to alCustom has
the same problem as clNone. The other settings expand the TEdit to take
up the entire sheet, which isn't what we want.

Thanks.

-Phil


-Original Message-
From: George Lober [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 18, 2007 2:57 PM

To: lazarus@miraclec.com
Subject: Re: [lazarus] TNoteBook vs TPageControl

Ok, never mind, I see now the bug is applicable to Win32 only. Although 
using other modes other than alNone, seems to work Ok.


George


George Lober wrote:
  

Hello,

Yes that would be showstopper, but I checked TPageControl/TTabSheet 
under GTK, with TButton, TEdit, TListview and TStringGrid, and the 
controls resize correctly, either with alClient or with alNone and 
anchors set. ???


Regards,
George


Hess, Philip J wrote:


Graeme,

You might want to check and see if TNotebook has this same problem:

http://www.freepascal.org/mantis/view.php?id=8056

What this means is that anchored controls on a TTabSheet don't resize
when the sheet does following a resize of form at runtime. That is,
  

the
  

controls on the TTabSheet stay the same size, regardless of how big
  

the
  

TTabSheet gets (or how small).

I would think this would be a showstopper for a lot of programs.
Generally most programs don't restrict the main form to a set size,
which is what would be required to use TTabSheet/TPageControl.

Thanks.

-Phil


-Original Message-
From: Graeme Geldenhuys [mailto:[EMAIL PROTECTED] Sent: 
Monday, June 18, 2007 8:53 AM

To: lazarus@miraclec.com
Subject: Re: [lazarus] TNoteBook vs TPageControl

On 18/06/07, Charl van Jaarsveldt [EMAIL PROTECTED] wrote:
 
  

Also, in both, if you are designing a tab, then flip over to another



tab,
 
  

any new components dropped onto the tab you are now on will not be



displayed
 
  

at design time, only the resize blocks will be there to tell you


where
  



it
 
  

is. This happens in Gtk2, not sure about Gtk1. Workaround is to save



the
 
  

project and then reopen it, then you can go on designing the other



tab.
 
  

Charl



You don't need to reopen the project, just reload the form.  Save
files, close the form in the Visual Designer (top left cross), then
press F12 to load it again. Works for me. I'm using GTK1 btw.

Has anybody reported these issues in Mantis yet?

Regards,
  - Graeme -

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

  
  

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives






_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


  



_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


RE: [lazarus] TNoteBook vs TPageControl

2007-06-18 Thread Hess, Philip J
I tested tonight and gtk has same problems as win32 with anchors.

This is evidently an LCL problem, not a widgetset one.

Clearly, if the TEdit on the form resizes, then the TEdit on the TTabSheet 
should too. That's the way Delphi works.




-Original Message-
From: George Lober [mailto:[EMAIL PROTECTED]
Sent: Mon 6/18/2007 3:43 PM
To: lazarus@miraclec.com
Subject: Re: [lazarus] TNoteBook vs TPageControl
 
Ok, you got me on that one. I don't use alCustom, never needed to, so I 
didn't check for that. Also if for example you use alTop and you set 
Anchor akBottom to true, this will also not work. Again I don't use 
those combinations, so I didn't check. I usually use alNone with 
anchors, alClient, or alTop, alLeft, alRight, alBottom with a splitter 
or without setting the fourth anchor. A lot of the time I have found it 
useful to place things in TPanels (as well as TPanels inside a TPanels) 
in combination with the previously mentioned modes to position things 
around, sort of my way of getting things to position somewhat like in 
Java.  So far I have pretty much gotten the effects I want doing it that 
way. For my way of doing things the only limitation would be the alNone 
with anchors set mode, which does limit what you can do with the look of 
an app.

Regards,
George


Hess, Philip J wrote:
 I don't see that on Windows. Setting the TEdit's Align to alCustom has
 the same problem as clNone. The other settings expand the TEdit to take
 up the entire sheet, which isn't what we want.

 Thanks.

 -Phil


 -Original Message-
 From: George Lober [mailto:[EMAIL PROTECTED] 
 Sent: Monday, June 18, 2007 2:57 PM
 To: lazarus@miraclec.com
 Subject: Re: [lazarus] TNoteBook vs TPageControl

 Ok, never mind, I see now the bug is applicable to Win32 only. Although 
 using other modes other than alNone, seems to work Ok.

 George


 George Lober wrote:
   
 Hello,

 Yes that would be showstopper, but I checked TPageControl/TTabSheet 
 under GTK, with TButton, TEdit, TListview and TStringGrid, and the 
 controls resize correctly, either with alClient or with alNone and 
 anchors set. ???

 Regards,
 George


 Hess, Philip J wrote:
 
 Graeme,

 You might want to check and see if TNotebook has this same problem:

 http://www.freepascal.org/mantis/view.php?id=8056

 What this means is that anchored controls on a TTabSheet don't resize
 when the sheet does following a resize of form at runtime. That is,
   
 the
   
 controls on the TTabSheet stay the same size, regardless of how big
   
 the
   
 TTabSheet gets (or how small).

 I would think this would be a showstopper for a lot of programs.
 Generally most programs don't restrict the main form to a set size,
 which is what would be required to use TTabSheet/TPageControl.

 Thanks.

 -Phil


 -Original Message-
 From: Graeme Geldenhuys [mailto:[EMAIL PROTECTED] Sent: 
 Monday, June 18, 2007 8:53 AM
 To: lazarus@miraclec.com
 Subject: Re: [lazarus] TNoteBook vs TPageControl

 On 18/06/07, Charl van Jaarsveldt [EMAIL PROTECTED] wrote:
  
   
 Also, in both, if you are designing a tab, then flip over to another
 
 
 tab,
  
   
 any new components dropped onto the tab you are now on will not be
 
 
 displayed
  
   
 at design time, only the resize blocks will be there to tell you
 
 where
   
 
 
 it
  
   
 is. This happens in Gtk2, not sure about Gtk1. Workaround is to save
 
 
 the
  
   
 project and then reopen it, then you can go on designing the other
 
 
 tab.
  
   
 Charl
 
 
 You don't need to reopen the project, just reload the form.  Save
 files, close the form in the Visual Designer (top left cross), then
 press F12 to load it again. Works for me. I'm using GTK1 btw.

 Has anybody reported these issues in Mantis yet?

 Regards,
   - Graeme -

 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives

 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives

   
   
 _
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


 


 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives

 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives