![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Any other thought please Phil |
#3
| |||
| |||
|
|
Sorry to re-post this query, but I am getting nowhere. I would like either a rotated Label or TextBox on a form, rotatable to any angle that I specify (Not vertical). The label or text box must either be transparent with just the writing shown on it, so that if it overlaps other controls, it doesn't obscure them (except here the writing is) or the size of the control must be the same size as the text. Stephen Leban's RotateLabelVer2.OCX control unfortunately won't do as the label appears in an opaque box so that if a number of them are overlapping in such a way that the text itself is clear of all the other text, the corner of one box obliterates the text in the box below. so to be specific, suppose I have 5 identical Text boxes, all with the same writing say 1/4" high and 2" long all at 45 degrees. I want to space these boxes along a horizontal line 1/3" appart. Stephen ends up with an opaque box about 1.5" square so the top left habd corner of the scond box cuts accross the writing in the first box ... and so on I have even tried playing with Stephen's source code to try to make the box transparent, but to no avail, although this is the first time I have looked at VB6 so I may have missed something. Any other thought please Phil |
#4
| |||
| |||
|
|
Phil wrote: Sorry to re-post this query, but I am getting nowhere. I would like either a rotated Label or TextBox on a form, rotatable to any angle that I specify (Not vertical). The label or text box must either be transparent with just the writing shown on it, so that if it overlaps other controls, it doesn't obscure them (except here the writing is) or the size of the control must be the same size as the text. Stephen Leban's RotateLabelVer2.OCX control unfortunately won't do as the label appears in an opaque box so that if a number of them are overlapping in such a way that the text itself is clear of all the other text, the corner of one box obliterates the text in the box below. so to be specific, suppose I have 5 identical Text boxes, all with the same writing say 1/4" high and 2" long all at 45 degrees. I want to space these boxes along a horizontal line 1/3" appart. Stephen ends up with an opaque box about 1.5" square so the top left habd corner of the scond box cuts accross the writing in the first box ... and so on I have even tried playing with Stephen's source code to try to make the box transparent, but to no avail, although this is the first time I have looked at VB6 so I may have missed something. Any other thought please Phil Can you use Excel for this or must it be in Access? With Excel you can rotate text easily enough. |
#5
| |||
| |||
|
|
Any other thought please Phil I've used a png image. But you can't drag and drop it, you can't import it as a logo, the best result is to drop an image control on the form. |
#6
| |||
| |||
|
|
Although I think I can have a transparent image, I'm not so sure about a transparent PNG image. Experiments with photoshop say that it can be done, might work on a WEB page, but certainly doesn't appear possible when the image is viewed with Paint or loaded into an image on the form. |
|
I would have no problem dragging the image round the form, but would not be able to rotate the PNG file within the image. |
|
I have 5 identical Text boxes, all with the same writing say 1/4" high and 2" long all at 45 degrees. I want to space these boxes along a horizontal line 1/3" appart. |
#7
| |||
| |||
|
|
Although I think I can have a transparent image, I'm not so sure about a transparent PNG image. Experiments with photoshop say that it can be done, might work on a WEB page, but certainly doesn't appear possible when the image is viewed with Paint or loaded into an image on the form. I have the opposite experience. I create the text in Inkscape, export as png and the image is transparent. Converting it into a bmp w/ MS Paint though forces the background to WHITE. I would have no problem dragging the image round the form, but would not be able to rotate the PNG file within the image. The thing I was saying about 'drag & drop' - I mean that if you drag and drop the image from your desktop onto an Access Form it creates an OLE object or something which degrades the picture quality. Same with the 'Logo' ('import picture as a logo') - I finally realized if I used the Image control (the on with the mountains and sun icon) it displays correctly. Yes, the image would need to be pre rotated before you imported it. To autogenerate images on the fly I would use something like ImageMagic: http://www.imagemagick.org/script/index.php Originally you said though: I have 5 identical Text boxes, all with the same writing say 1/4" high and 2" long all at 45 degrees. I want to space these boxes along a horizontal line 1/3" appart. Thanks Christian |
#8
| |||
| |||
|
|
Will see where your thought lead |
#9
| |||
| |||
|
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |