Board index » cppbuilder » Child window

Child window


2003-11-15 12:07:32 AM
cppbuilder77
Hi guys, i've made an application with the main Parent, and a child window
inside, but i notice this troubles:
1) When i move the Child window inside the main, and i move much at left, or
right, or down or top, the main shows scrolls, i don't want.
2)If i try to close the child, it doesn't close but minimizes.
How can avoid these troubles?
 
 

Re:Child window

Quote
2)If i try to close the child, it doesn't close but minimizes.
add this to OnClose of the child window:
void __fastcall TForm1::FormClose(TObject *Sender,
TCloseAction &Action)
{
Action = caFree;
}
 

Re:Child window

tnx, but for the first point?
 

{smallsort}

Re:Child window

"gif" < XXXX@XXXXX.COM >wrote in message
Quote
1) When i move the Child window inside the main, and i
move much at left, or right, or down or top, the main shows
scrolls, i don't want.
What exactly do you *want* to happen instead? Please be more specific.
Gambit
 

Re:Child window

I don't want it shows scrollbars.
"Remy Lebeau (TeamB)" < XXXX@XXXXX.COM >ha scritto nel
messaggio news:3fb518ce$ XXXX@XXXXX.COM ...
Quote

"gif" < XXXX@XXXXX.COM >wrote in message
news: XXXX@XXXXX.COM ...

>1) When i move the Child window inside the main, and i
>move much at left, or right, or down or top, the main shows
>scrolls, i don't want.

What exactly do you *want* to happen instead? Please be more specific.


Gambit


 

Re:Child window

"gif" < XXXX@XXXXX.COM >wrote:
Quote
I don't want it shows scrollbars.
That is how an MDI application works. The best that you can
do is prevent the user from moving any portion of the form
outside of the Parent window.
~ JD
 

Re:Child window

Yes, but looking at others Child-like application it doesn't happen.
"JD" < XXXX@XXXXX.COM >ha scritto nel messaggio
Quote

"gif" < XXXX@XXXXX.COM >wrote:
>I don't want it shows scrollbars.

That is how an MDI application works. The best that you can
do is prevent the user from moving any portion of the form
outside of the Parent window.

~ JD

 

Re:Child window

"gif" < XXXX@XXXXX.COM >wrote:
Quote
Yes, but looking at others Child-like application it doesn't happen.
Try setting the MDI Parent forms' HorzScrollBar and VertScroll
properties' Visible option to false.
~ JD
 

Re:Child window

i tried infact, but nothing happen.
"JD" < XXXX@XXXXX.COM >ha scritto nel messaggio
Quote

"gif" < XXXX@XXXXX.COM >wrote:
>Yes, but looking at others Child-like application it doesn't happen.

Try setting the MDI Parent forms' HorzScrollBar and VertScroll
properties' Visible option to false.

~ JD

 

Re:Child window

Please, i would avoid to show the scrollbar of the Parent window.
Someone know how?
"gif" < XXXX@XXXXX.COM >ha scritto nel messaggio
Quote
i tried infact, but nothing happen.

"JD" < XXXX@XXXXX.COM >ha scritto nel messaggio
news:3fb64dbf$ XXXX@XXXXX.COM ...
>
>"gif" < XXXX@XXXXX.COM >wrote:
>>Yes, but looking at others Child-like application it doesn't happen.
>
>Try setting the MDI Parent forms' HorzScrollBar and VertScroll
>properties' Visible option to false.
>
>~ JD
>