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.

Splitter not work (bug)

Xailer English public forum
Responder
Srdjan
Mensajes: 111
Registrado: Dom Jun 22, 2008 1:39 pm

Splitter not work (bug)

Mensaje por Srdjan »


Attached files Splitters.zip (8.4 KB)Â
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Splitter not work (bug)

Mensaje por jfgimenez »

Srdjan,
I'll review it next weekend; I'm going to stop working today, and I'll do a
trip tomorrow.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Srdjan
Mensajes: 111
Registrado: Dom Jun 22, 2008 1:39 pm

Splitter not work (bug)

Mensaje por Srdjan »

No problem Jose :)
I must ended my program to 20th November and I go to Buenos Aires over
Madrid :)
"Jose F. Gimenez" <jfgimenez@wanadoo.es> wrote in message
news:44db99ca$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
> Srdjan,
>
> I'll review it next weekend; I'm going to stop working today, and I'll do
a
> trip tomorrow.
>
>
> --
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
>
>
Ingo
Mensajes: 330
Registrado: Mié Jul 05, 2006 3:58 pm

Splitter not work (bug)

Mensaje por Ingo »

Srdjan,
I took a look at your test sample. Splitter works perfectly. The problems
are the controls you put on the mdiframe.
If you show the mdichild (Form2) this form will be overlapped by the panels
of the mdiframe (form1). That is the typical behaviour of
Mdiframes/mdiclients.
I changed your sample to demonstrate that. If the visibility of panel2 of
form2 is set to .F. you will see the mdichild. Take a look at the attached
sample.
Regards
Ingo


Attached files test.zip (2.3 KB)Â
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Splitter not work (bug)

Mensaje por jfgimenez »

Srdjan,
sorry for the long delay.
Ingo is completely right, the problem is not the splitters, but the panel2.
The mdi frame windows creates a child control (oMdiClient) which holds every
mdi child, and this oMdiClient is aligned to alClient. But if you place
another window aligned to alClient, then oMdiClient can't be shown (well,
the truth is that it remains 0 pixels width by 0 pixels height).
Just remove the panel2 and you'll see it working fine.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Srdjan
Mensajes: 111
Registrado: Dom Jun 22, 2008 1:39 pm

Splitter not work (bug)

Mensaje por Srdjan »

Thank you I see. Thank you for Ingo :)
"Jose F. Gimenez" <jfgimenez@wanadoo.es> wrote in message
news:44e45360$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
> Srdjan,
>
> sorry for the long delay.
>
> Ingo is completely right, the problem is not the splitters, but the
panel2.
> The mdi frame windows creates a child control (oMdiClient) which holds
every
> mdi child, and this oMdiClient is aligned to alClient. But if you place
> another window aligned to alClient, then oMdiClient can't be shown (well,
> the truth is that it remains 0 pixels width by 0 pixels height).
>
> Just remove the panel2 and you'll see it working fine.
>
> --
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
>
>
Srdjan
Mensajes: 111
Registrado: Dom Jun 22, 2008 1:39 pm

Splitter not work (bug)

Mensaje por Srdjan »

Which event I use when splitter move up-down ?
"Srdjan Dragojlovic" <digikv@yahoo.com> wrote in message
news:[email=44e4c09c@news.xailer.com...]44e4c09c@news.xailer.com...[/email]
> Thank you I see. Thank you for Ingo :)
>
> "Jose F. Gimenez" <jfgimenez@wanadoo.es> wrote in message
> news:44e45360$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
> > Srdjan,
> >
> > sorry for the long delay.
> >
> > Ingo is completely right, the problem is not the splitters, but the
> panel2.
> > The mdi frame windows creates a child control (oMdiClient) which holds
> every
> > mdi child, and this oMdiClient is aligned to alClient. But if you place
> > another window aligned to alClient, then oMdiClient can't be shown
(well,
> > the truth is that it remains 0 pixels width by 0 pixels height).
> >
> > Just remove the panel2 and you'll see it working fine.
> >
> > --
> > Regards,
> >
> > Jose F. Gimenez
> > http://www.xailer.com
> >
> >
>
>
Srdjan
Mensajes: 111
Registrado: Dom Jun 22, 2008 1:39 pm

Splitter not work (bug)

Mensaje por Srdjan »

Why this event not fire when I move splitter ? I think when I move splitter
automatically change size of panels.
METHOD ChangeSizePanel( oSender ) CLASS TDMS
LOCAL l := CadCWReSize( 0, 0, ::oPanel1:nWidth, ::oPanel1:nHeight )
RETURN Nil
"Srdjan Dragojlovic" <digikv@yahoo.com> wrote in message
news:[email=44e4c3bf@news.xailer.com...]44e4c3bf@news.xailer.com...[/email]
> Which event I use when splitter move up-down ?
>
> "Srdjan Dragojlovic" <digikv@yahoo.com> wrote in message
> news:[email=44e4c09c@news.xailer.com...]44e4c09c@news.xailer.com...[/email]
> > Thank you I see. Thank you for Ingo :)
> >
> > "Jose F. Gimenez" <jfgimenez@wanadoo.es> wrote in message
> > news:44e45360$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
> > > Srdjan,
> > >
> > > sorry for the long delay.
> > >
> > > Ingo is completely right, the problem is not the splitters, but the
> > panel2.
> > > The mdi frame windows creates a child control (oMdiClient) which holds
> > every
> > > mdi child, and this oMdiClient is aligned to alClient. But if you
place
> > > another window aligned to alClient, then oMdiClient can't be shown
> (well,
> > > the truth is that it remains 0 pixels width by 0 pixels height).
> > >
> > > Just remove the panel2 and you'll see it working fine.
> > >
> > > --
> > > Regards,
> > >
> > > Jose F. Gimenez
> > > http://www.xailer.com
> > >
> > >
> >
> >
>
>
Ingo
Mensajes: 330
Registrado: Mié Jul 05, 2006 3:58 pm

Splitter not work (bug)

Mensaje por Ingo »

When you move splitter the OnMove event of splitter is fired. Why you don't
use this?
"Srdjan Dragojlovic" <digikv@yahoo.com> schrieb im Newsbeitrag
news:44e7f4e7$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
> Why this event not fire when I move splitter ? I think when I move
> splitter
> automatically change size of panels.
>
> METHOD ChangeSizePanel( oSender ) CLASS TDMS
> LOCAL l := CadCWReSize( 0, 0, ::oPanel1:nWidth, ::oPanel1:nHeight )
> RETURN Nil
>
>
> "Srdjan Dragojlovic" <digikv@yahoo.com> wrote in message
> news:[email=44e4c3bf@news.xailer.com...]44e4c3bf@news.xailer.com...[/email]
>> Which event I use when splitter move up-down ?
>>
>> "Srdjan Dragojlovic" <digikv@yahoo.com> wrote in message
>> news:[email=44e4c09c@news.xailer.com...]44e4c09c@news.xailer.com...[/email]
>> > Thank you I see. Thank you for Ingo :)
>> >
>> > "Jose F. Gimenez" <jfgimenez@wanadoo.es> wrote in message
>> > news:44e45360$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
>> > > Srdjan,
>> > >
>> > > sorry for the long delay.
>> > >
>> > > Ingo is completely right, the problem is not the splitters, but the
>> > panel2.
>> > > The mdi frame windows creates a child control (oMdiClient) which
>> > > holds
>> > every
>> > > mdi child, and this oMdiClient is aligned to alClient. But if you
> place
>> > > another window aligned to alClient, then oMdiClient can't be shown
>> (well,
>> > > the truth is that it remains 0 pixels width by 0 pixels height).
>> > >
>> > > Just remove the panel2 and you'll see it working fine.
>> > >
>> > > --
>> > > Regards,
>> > >
>> > > Jose F. Gimenez
>> > > http://www.xailer.com
>> > >
>> > >
>> >
>> >
>>
>>
>
>
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Splitter not work (bug)

Mensaje por jfgimenez »

Srdjan,
> Why this event not fire when I move splitter ? I think when I move
> splitter
> automatically change size of panels.
>
> METHOD ChangeSizePanel( oSender ) CLASS TDMS
> LOCAL l := CadCWReSize( 0, 0, ::oPanel1:nWidth, ::oPanel1:nHeight )
> RETURN Nil
There is no OnChangeSize event for TPanel. As Ingo said, you may use the
splitter's OnMove event.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Srdjan
Mensajes: 111
Registrado: Dom Jun 22, 2008 1:39 pm

Splitter not work (bug)

Mensaje por Srdjan »

OK
"Jose F. Gimenez" <jfgimenez@wanadoo.es> wrote in message
news:[email=44edd26b@news.xailer.com...]44edd26b@news.xailer.com...[/email]
> Srdjan,
>
> > Why this event not fire when I move splitter ? I think when I move
> > splitter
> > automatically change size of panels.
> >
> > METHOD ChangeSizePanel( oSender ) CLASS TDMS
> > LOCAL l := CadCWReSize( 0, 0, ::oPanel1:nWidth, ::oPanel1:nHeight )
> > RETURN Nil
>
> There is no OnChangeSize event for TPanel. As Ingo said, you may use the
> splitter's OnMove event.
>
> --
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
>
>
Responder