| View previous topic :: View next topic |
| Author |
Message |
gif Guest
|
Posted: Tue Nov 25, 2003 9:51 pm Post subject: how can i create dialog windows child of main with width of |
|
|
how can i create dialog windows child of main with width of 30 pixel?
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Tue Nov 25, 2003 11:34 pm Post subject: Re: how can i create dialog windows child of main with width |
|
|
"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
|
Posted: Wed Nov 26, 2003 12:33 pm Post subject: Re: how can i create dialog windows child of main with width |
|
|
| 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
|
Posted: Wed Nov 26, 2003 2:49 pm Post subject: Re: how can i create dialog windows child of main with width |
|
|
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
|
Posted: Wed Nov 26, 2003 4:30 pm Post subject: Re: how can i create dialog windows child of main with 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.
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
|
Posted: Wed Nov 26, 2003 8:35 pm Post subject: Re: how can i create dialog windows child of main with width |
|
|
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
|
Posted: Wed Nov 26, 2003 9:28 pm Post subject: Re: how can i create dialog windows child of main with width |
|
|
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 |
|
 |
|