Board index » cppbuilder » TImage with TGroupBox, BCB6
poojo hackma
![]() CBuilder Developer |
poojo hackma
![]() CBuilder Developer |
TImage with TGroupBox, BCB62005-11-08 11:07:14 PM cppbuilder68 I have both a TGroupBox and a TImage on one form. I'd like to position the TImage on top of the TGroupBox, but not inside the TGroupBox; however, the TGroupBox always lies on top of the TImage. I have selected "Bring to Front" on the TImage and "Send to Back" for the TGroupBox, but nothing changes. How do make a TImage appear on top of a TGroupBox? |
Hans Galema
![]() CBuilder Developer |
2005-11-09 01:17:30 AM
Re:TImage with TGroupBox, BCB6
poojo hackma wrote:
QuoteI'd like to position the TImage on top of the TGroupBox, but not inside the /on/ the same component as the TGropupBox is placed. Are you doing that with the IDE or at runtime ? Quotehowever, the TGroupBox always lies on top of the TImage. I have Hans. |
poojo hackma
![]() CBuilder Developer |
2005-11-09 01:58:28 AM
Re:TImage with TGroupBox, BCB6Quote>I'd like to position the TImage on top of the TGroupBox, but not inside GroupBox or another is displayed. Quote
Optimally, I'd like something similar to a z-index used with <DIV>tags in HTML so the TImage appears to float above and at the upper right corner of the TGroupBox. It may not be possible in Borland. Oh well. Don't worry about it. It is just fluff for the program anyway. {smallsort} |
Hans Galema
![]() CBuilder Developer |
2005-11-09 04:32:24 PM
Re:TImage with TGroupBox, BCB6
poojo hackma wrote:
QuoteIDE. Every time I place the TImage on top of the TGroupBox, the TGroupBox Even if Image->Align == alClient then you will see the borders of the TGoupBox. If you do not want that then take a TPanel. Hans. |
poojo hackma
![]() CBuilder Developer |
2005-11-10 01:22:56 AM
Re:TImage with TGroupBox, BCB6QuoteDo you mean that you see the borders of the TGroupBox ? Do you QuoteEven if Image->Align == alClient then you will see the borders of QuoteIf you do not want that then take a TPanel. problem *much* easier! |
Hans Galema
![]() CBuilder Developer |
2005-11-10 01:41:59 AM
Re:TImage with TGroupBox, BCB6
poojo hackma wrote:
QuoteI can see TImage's border behind the TGroupBox, but I can not get the alCustom ? Is that bcb6 ? Bcb5 does not know alCustom. What is it ? Quote>If you do not want that then take a TPanel. Well the picture clearly demonstrates that you placed the TImage on the TForm. Now you cannot place it on the groupbox by just moving it around. Just try to place another TImage directly on a TGroupBox. Hans. |
poojo hackma
![]() CBuilder Developer |
2005-11-10 03:15:02 AM
Re:TImage with TGroupBox, BCB6
Hans,
I am using BCB6. My apologies if I somehow misled you to believe it was BCB5. Also, I do not want the TImage inside of the TGroupBox; I want it to be On Top Of the TGroupBox. When I tried posting the picture for you earlier on borland.public.attachments, I got a reply that it was not accepted because of the attachment. I never knew it was there until I saw that you had been there and seen it. Great! Basically, I want the TImage where it is and the two TGroupBoxes where they are, but I want the TImage to show up on top. (FYI: The TImage contains a small company logo.) |
Jonathan Benedicto
![]() CBuilder Developer |
2005-11-10 03:37:42 AM
Re:TImage with TGroupBox, BCB6
poojo hackma wrote:
QuoteWhen I tried posting the picture for you earlier on the TBevel's Shape to bsFrame. Select all the components in the group box, press Ctrl+X, delete the group box, place a TBevel on the form, and set its alignment like you had the TGroupBox. Now, place a TLabel on the bevel, and move it until it is over the bevel, so that it looks like a TGroupBox. Now click the bevel, and press Ctrl+V. You'll have to move the components back into place, but it will allow you to place a TImage over the bevel. HTH Jonathan |
poojo hackma
![]() CBuilder Developer |
2005-11-10 03:52:57 AM
Re:TImage with TGroupBox, BCB6
Cool! Thanks.
"Jonathan Benedicto" wrote QuoteTo do this simply, you're going to have to stop using TGroupBox, and use a |