BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how can i create dialog windows child of main with width of

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
gif
Guest





PostPosted: Tue Nov 25, 2003 9:51 pm    Post subject: how can i create dialog windows child of main with width of Reply with quote



how can i create dialog windows child of main with width of 30 pixel?


Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Tue Nov 25, 2003 11:34 pm    Post subject: Re: how can i create dialog windows child of main with width Reply with quote




"gif" <jeyweb (AT) yahoo (DOT) it> wrote

Quote:
how can i create dialog windows child of main with width of 30 pixel?

Your question is too vague. What exactly are you trying to accomplish?
When you say "child" are you using MDI? Please elaborate.


Gambit



Back to top
gif
Guest





PostPosted: Wed Nov 26, 2003 12:33 pm    Post subject: Re: how can i create dialog windows child of main with width Reply with quote



Quote:
When you say "child" are you using MDI?
Yes.


Anyway i would make a simple window dialog without Caption name, without
expanding and minimizing buttons and wide just 30 pixel or less.
How?


"Remy Lebeau (TeamB)" <gambit47.no.spam (AT) no (DOT) spam.yahoo.com> ha scritto nel
messaggio news:3fc3e7ab$1 (AT) newsgroups (DOT) borland.com...
Quote:

"gif" <jeyweb (AT) yahoo (DOT) it> wrote in message
news:3fc3ceee (AT) newsgroups (DOT) borland.com...
how can i create dialog windows child of main with width of 30 pixel?

Your question is too vague. What exactly are you trying to accomplish?
Please elaborate.


Gambit





Back to top
Hans Galema
Guest





PostPosted: Wed Nov 26, 2003 2:49 pm    Post subject: Re: how can i create dialog windows child of main with width Reply with quote

gif wrote:

Quote:
Anyway i would make a simple window dialog without Caption name, without
expanding and minimizing buttons and wide just 30 pixel or less.
How?

Go to your computer, grab a window and make it smaller. You will see
that there is always a minimum width.

Now go to c++designer and try to make a TForm smaller. Again you will
see that there is the same minimum width. In the objectinspector
you can see Width == 112.

Even if you execute Width = 30; at runtime it will not do.

For get rid of Caption and Icons use BorderStyle = bsNone.

Hans.


Back to top
gif
Guest





PostPosted: Wed Nov 26, 2003 4:30 pm    Post subject: Re: how can i create dialog windows child of main with width Reply with quote

Now go to c++designer and try to make a TForm smaller. Again you will
see that there is the same minimum width. In the objectinspector
you can see Width == 112.

Even if you execute Width = 30; at runtime it will not do.


ok so what can i do? For example see at Photoshop or whatever other program
that use a ToolBar in a Window separate. Its wide is less then 112.
Please some suggesting.


Back to top
Hans Galema
Guest





PostPosted: Wed Nov 26, 2003 8:35 pm    Post subject: Re: how can i create dialog windows child of main with width Reply with quote

gif wrote:
Quote:
Now go to c++designer and try to make a TForm smaller. Again you will
see that there is the same minimum width. In the objectinspector
you can see Width == 112.

He, please if you quote then use quotingmarks.

Quote:
ok so what can i do? For example see at Photoshop or whatever other program
that use a ToolBar in a Window separate. Its wide is less then 112.

Have no example at hand here.

Quote:
Please some suggesting.

Maybe a TForm cannot do that. Maybe you need to create a window yourself.
That would be something for the nativeapi newsgroup however.

Hans.


Back to top
Damon Chandler (TeamB)
Guest





PostPosted: Wed Nov 26, 2003 9:28 pm    Post subject: Re: how can i create dialog windows child of main with width Reply with quote

Gif,
Only popup or toolwindows can have widths that small. I believe PhotoShop
uses a popup window with a custom-rendered title bar; you can do the same in
BCB by using a TForm whose BorderStyle property is set to bsNone (and then
simulate a title bar by using, e.g., a TPanel). For toolwindows, set the
BorderStyle property to bsSizeToolWin or bsToolWindow.

Good luck,
Damon (TeamB)


gif wrote:
Quote:
ok so what can i do? For example see at Photoshop or whatever other program
that use a ToolBar in a Window separate. Its wide is less then 112.
Please some suggesting.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.