ning Posted October 10, 2005 Share Posted October 10, 2005 Okay, I'm developing a script to view Flickr photos in a full screen window, while downloading photos from one user (I am benshepherd, by the way) in the background. It's almost completed (well, almost out of beta anyway), I'm very proud of it and it will be posted here soon. What I want help with is this:I have a Pic control, and I'm putting a Label on top of that to show information about the photo. To be viewable on top of any photo regardless of colour, I've used two labels, one where the font colour is black and one where it's white, slightly offset (by 1 pixel in each direction) to create a shadow effect. An 'outline' effect would be slightly easier to read however - i.e. the label would appear white with a black outline all the way around the letters. I can't seem to find an easy way of doing this though. If I set one font weight to be bigger (bolder) than the others, it adjusts the spacing too, so that the labels don't line up any more. I can create four labels, each offset by 1x1 pixel in a different direction, and this has the effect I'm looking for (see attached file). However, this seems clunky and I think it will slow my script down. Any other ideas?In fact, it would be nice if there was some kind of rich text label control, that allowed text effects like shadow or outline. Maybe in the next version...?cheersbenNew_AutoIt_v3_Script.au3 Link to comment Share on other sites More sharing options...
BigDod Posted October 10, 2005 Share Posted October 10, 2005 Okay, I'm developing a script to view Flickr photos in a full screen window, while downloading photos from one user (I am benshepherd, by the way) in the background. It's almost completed (well, almost out of beta anyway), I'm very proud of it and it will be posted here soon. What I want help with is this:I have a Pic control, and I'm putting a Label on top of that to show information about the photo. To be viewable on top of any photo regardless of colour, I've used two labels, one where the font colour is black and one where it's white, slightly offset (by 1 pixel in each direction) to create a shadow effect. An 'outline' effect would be slightly easier to read however - i.e. the label would appear white with a black outline all the way around the letters. I can't seem to find an easy way of doing this though. If I set one font weight to be bigger (bolder) than the others, it adjusts the spacing too, so that the labels don't line up any more. I can create four labels, each offset by 1x1 pixel in a different direction, and this has the effect I'm looking for (see attached file). However, this seems clunky and I think it will slow my script down. Any other ideas?In fact, it would be nice if there was some kind of rich text label control, that allowed text effects like shadow or outline. Maybe in the next version...?cheersbenInstead of using 2 labels you could use GUICtrlSetBkColor(-1,0x00ff00); GreenTo give the label a background colour. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
ning Posted October 10, 2005 Author Share Posted October 10, 2005 Instead of using 2 labels you could use GUICtrlSetBkColor(-1,0x00ff00); GreenTo give the label a background colour.Yes, good point, and I should have mentioned that. The trouble is, it just looks ugly! And, especially in a large label that could potentially have a lot of text, it obscures the photo. Observe:Now imagine that top right label with an opaque background. You wouldn't be able to see a quarter of the photo. Link to comment Share on other sites More sharing options...
BigDod Posted October 10, 2005 Share Posted October 10, 2005 I see what you mean. I am not sure that I can help you perhaps others can. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
Valuater Posted October 10, 2005 Share Posted October 10, 2005 I think it looks good how it is.... you know you can set the font - type(style) - size - and density(weight) also 8) Link to comment Share on other sites More sharing options...
ning Posted October 11, 2005 Author Share Posted October 11, 2005 I think it looks good how it is....Why thank you. So do I incidentally; it was just that someone I showed it to said that they would prefer outline text. I aim to please... ben Link to comment Share on other sites More sharing options...
Valuater Posted October 11, 2005 Share Posted October 11, 2005 Why thank you. So do I incidentally; it was just that someone I showed it to said that they would prefer outline text. I aim to please... benIf the picture above is any representation of the level of the images you will be using... then out-lined text would only diminish the value of the visions inspiration.8) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now