imaginecorp
Mon Apr 09 16:59:38 CDT 2007
This is a multi-part message in MIME format.
------=_NextPart_000_003A_01C77AD0.D784A850
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Oliver: thats easy.
If the grid is never going to be resized or moved; Set the haeder =
caption property to "" and put a different control where the header =
should be. Bring the control to the front so it will get the focus.=20
If you want to get fancy, use Bindevent() for resize or grid move, now =
it does not matter if the grid is resized or moved your control will =
follow
--=20
Mohammed Ashruff
www.imaginecorp.com
"O L I V I E R" <nospam@free.fr> wrote in message =
news:uXoLA5neHHA.2332@TK2MSFTNGP04.phx.gbl...
Hi Dan,
I am really surprised of your answer, I think that in 2007,
vfp should have a truth grid worthy of this name.=20
I would like to have:=20
http://www.planitron.com/new_header_grid.jpg=20
It's doesn't work but it's the emulation what i want.
Thank's for all
Olivier
"Dan Freeman" <spam@microsoft.com> a =E9crit dans le message de =
news: OqQZ%23PieHHA.4128@TK2MSFTNGP05.phx.gbl...
I think you are barking up the wrong tree.
Here are the basics. A grid is a container, and it can contain =
exactly one=20
class of control: a column.
Columns are containers and can contain two types of controls: one =
header=20
(vfp's baseclass header) and *any other controls* used to display =
the rows.
There have been MANY published solutions to alter the basic nature =
of the=20
column.header over the years, but I've yet to see one that isn't a =
lot of=20
work. And of those, I've yet to see one that fully and seamlessly =
behaves=20
like the native grid header supporting dragging and resizing and the =
like.
You might save yourself a lot of time by exploring third-party grid=20
alternatives.
Dan
"O L I V I E R" <nospam@free.fr> wrote in message=20
news:%23v7bBubeHHA.1216@TK2MSFTNGP03.phx.gbl...
Hi Bernhard
The header is too old for me, cause if we want to change the =
background
it's impossible and i don't understand why we don't replace with a=20
container.
Have you a sample to attach with handle !
Thank's
Olivier
"Bernhard Sander" <fuchs@no.spam> a =E9crit dans le message de =
news:=20
OUUxTgbeHHA.1244@TK2MSFTNGP04.phx.gbl...
Hi OLIVIER
> Dou you if you can add my custom header like as Container in a =
grid.
>
> I want to add 2 bmp files for the search and order
> I want to put image file in the background , to have a image =
gradient
> like as Cesar chalom's sample.
> I want to have a checkbox or textbox in the header also.
>
> Have you an idea to add a header like work's like a Container =
Class ?
You can add one different header to a column, have a look at =
HeaderClass=20
and
HeaderClassLibrary properties of the grid.
If you want a different class than the default, you can create =
one, but it=20
must
be based on the Foxpro Header class. If it does not fit your =
needs, then=20
there
are a couple of workarounds, but they are not very easy to build =
and=20
handle.
Regards
Bernhard Sander
------=_NextPart_000_003A_01C77AD0.D784A850
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.6000.16414" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Oliver: thats easy.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>If the grid is never going to be =
resized or=20
moved; Set the haeder caption property to "" and put a different control =
where=20
the header should be. Bring the control to the front so it will get the =
focus.=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>If you want to get fancy, use =
Bindevent() for=20
resize or grid move, now it does not matter if the grid is resized or =
moved your=20
control will follow</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><BR>-- <BR>Mohammed Ashruff<BR><A=20
href=3D"
http://www.imaginecorp.com">www.imaginecorp.com</A></FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"O L I V I E R" <<A=20
href=3D"mailto:nospam@free.fr">nospam@free.fr</A>> wrote in message =
<A=20
=
href=3D"news:uXoLA5neHHA.2332@TK2MSFTNGP04.phx.gbl">news:uXoLA5neHHA.2332=
@TK2MSFTNGP04.phx.gbl</A>...</DIV>
<DIV><TD id=3Dgap></TD><TD id=3Dresult_cell>
<DIV id=3Dresult_box dir=3Dltr><STRONG><FONT face=3DArial =
color=3D#000080 size=3D2>Hi=20
Dan,</FONT></STRONG></DIV>
<DIV dir=3Dltr><STRONG><FONT face=3DArial color=3D#000080=20
size=3D2></FONT></STRONG> </DIV>
<DIV dir=3Dltr><FONT face=3DArial color=3D#000080 size=3D2><STRONG>I =
am really=20
surprised of your answer, I think that in 2007,</STRONG></FONT></DIV>
<DIV dir=3Dltr><FONT face=3DArial color=3D#000080 =
size=3D2><STRONG> vfp should=20
have a truth grid worthy of this name. </STRONG></FONT></DIV>
<DIV dir=3Dltr><FONT face=3DArial color=3D#000080 size=3D2><STRONG>I =
would like to=20
have: </STRONG></FONT></DIV>
<DIV dir=3Dltr><A =
href=3D"
http://www.planitron.com/new_header_grid.jpg"><FONT=20
face=3DArial color=3D#800000=20
=
size=3D2><STRONG>
http://www.planitron.com/new_header_grid.jpg</STRONG></F=
ONT></A><FONT=20
face=3DArial color=3D#000080 size=3D2><STRONG> </STRONG></FONT></DIV>
<DIV dir=3Dltr><STRONG><FONT face=3DArial color=3D#000080=20
size=3D2></FONT></STRONG> </DIV>
<DIV dir=3Dltr><STRONG><FONT face=3DArial color=3D#000080 =
size=3D2>It's doesn't work=20
but it's the emulation what i want.</FONT></STRONG></DIV>
<DIV dir=3Dltr><STRONG><FONT face=3DArial color=3D#000080=20
size=3D2></FONT></STRONG> </DIV>
<DIV dir=3Dltr><STRONG><FONT face=3DArial color=3D#000080 =
size=3D2>Thank's for=20
all</FONT></STRONG></DIV>
<DIV dir=3Dltr><STRONG><FONT face=3DArial color=3D#000080=20
size=3D2></FONT></STRONG> </DIV>
<DIV dir=3Dltr><STRONG><FONT face=3DArial color=3D#000080=20
size=3D2>Olivier</FONT></STRONG></DIV>
<DIV dir=3Dltr><FONT face=3DArial color=3D#000080=20
size=3D2><STRONG></STRONG></FONT> </DIV></TD></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000080 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Dan Freeman" <<A=20
href=3D"mailto:spam@microsoft.com">spam@microsoft.com</A>> a =
=E9crit dans le=20
message de news: <A=20
=
href=3D"mailto:OqQZ%23PieHHA.4128@TK2MSFTNGP05.phx.gbl">OqQZ%23PieHHA.412=
8@TK2MSFTNGP05.phx.gbl</A>...</DIV>I=20
think you are barking up the wrong tree.<BR><BR>Here are the basics. =
A grid=20
is a container, and it can contain exactly one <BR>class of control: =
a=20
column.<BR><BR>Columns are containers and can contain two types of =
controls:=20
one header <BR>(vfp's baseclass header) and *any other controls* =
used to=20
display the rows.<BR><BR>There have been MANY published solutions to =
alter=20
the basic nature of the <BR>column.header over the years, but I've =
yet to=20
see one that isn't a lot of <BR>work. And of those, I've yet to see =
one that=20
fully and seamlessly behaves <BR>like the native grid header =
supporting=20
dragging and resizing and the like.<BR><BR>You might save yourself a =
lot of=20
time by exploring third-party grid =
<BR>alternatives.<BR><BR>Dan<BR><BR>"O L=20
I V I E R" <<A =
href=3D"mailto:nospam@free.fr">nospam@free.fr</A>> wrote=20
in message <BR><A=20
=
href=3D"news:%23v7bBubeHHA.1216@TK2MSFTNGP03.phx.gbl">news:%23v7bBubeHHA.=
1216@TK2MSFTNGP03.phx.gbl</A>...<BR>Hi=20
Bernhard<BR><BR>The header is too old for me, cause if we want to =
change the=20
background<BR>it's impossible and i don't understand why we don't =
replace=20
with a <BR>container.<BR><BR><BR>Have you a sample to attach with =
handle=20
!<BR><BR>Thank's<BR>Olivier<BR> "Bernhard Sander" <<A=20
href=3D"mailto:fuchs@no.spam">fuchs@no.spam</A>> a =E9crit dans =
le message de=20
news: <BR><A=20
=
href=3D"mailto:OUUxTgbeHHA.1244@TK2MSFTNGP04.phx.gbl">OUUxTgbeHHA.1244@TK=
2MSFTNGP04.phx.gbl</A>...<BR> =20
Hi OLIVIER<BR><BR> > Dou you if you can add my custom =
header like=20
as Container in a grid.<BR> ><BR> > I want to add =
2 bmp=20
files for the search and order<BR> > I want to put image =
file in=20
the background , to have a image gradient<BR> > like as =
Cesar=20
chalom's sample.<BR> > I want to have a checkbox or textbox =
in the=20
header also.<BR> ><BR> > Have you an idea to add a =
header=20
like work's like a Container Class ?<BR> You can add one =
different=20
header to a column, have a look at HeaderClass <BR>and<BR> =20
HeaderClassLibrary properties of the grid.<BR> If you want a =
different=20
class than the default, you can create one, but it =
<BR>must<BR> be=20
based on the Foxpro Header class. If it does not fit your needs, =
then=20
<BR>there<BR> are a couple of workarounds, but they are not =
very easy=20
to build and <BR>handle.<BR><BR> Regards<BR> Bernhard=20
Sander<BR><BR><BR></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_003A_01C77AD0.D784A850--