View Full Version : Web Object border mode
FoxLeader
12-21-2007, 11:58 PM
Hello,
In listbox, combobox and others, border mode is pretty useful. It allows them to be nearly seemlessly integrated in the application, however the IE object has that f*** (sorry, I'm just frustrated because this destroys my app design) border and the scrollbar is always there.
Wouldn't it be possible to choose, like "Vertical:Auto/On/Off", "Horizontal: Auto/On/Off and Border Mode: None/Flat/Sunken/Custom Colour).
Note that the "Custom Colour" would be helpful on much of this type of "embedded" objects.
Thanks and sorry for botering you guys with my personal frustration ;)
Regards,
FoxLeader
Hi FoxLeader,
Thanks for the suggestion, I have made a note of it in our database. Since the Web object uses the Internet Explorer we are sometimes hamstrung by the options that it makes available, however will will look into this and see what we can do.
REF: 17091
Intrigued
01-02-2008, 04:55 PM
Put my vote in, again, for this suggestion.
:yes
Ulrich
01-04-2008, 02:23 PM
Hello FoxLeader,
I had the same problem with the border and the right scrollbar of the web object. But then I figured that I could mask out the borders of the object and have it showing seamlessly on the screen. It takes one line of Lua script and one additional image to make it work. You may want to try this...
Say, for example, that you have a page that you wish to have occupy exactly 380×60 pixels on the screen. You have to size the web object to 405×64 pixels. This corresponds to 2 additional pixels for the border around the window, plus an extra 21 pixels for the vertical scrollbar at the right.
Then place something like this in the OnLoaded script for the web object:
Window.SetMask(Web.GetProperties("webobj").WindowHandle, "AutoPlay\\Images\\mask.png", false, 0);
The example PNG mask.png image to mask out the borders is here:
http://www.mindquake.com.br/files/mask.png
Now all that remains is the web window you wanted (the white area in the mask), without the annoying borders. Hope this helps or gives some ideas.
Cheers,
Ulrich
nicoh
01-04-2008, 06:51 PM
It works fantastic :)
Thanks man, you are a genius :D
FoxLeader
01-08-2008, 01:20 PM
Hello,
Thanks to everybody. Upeter's workaround is probably the best way, and it will work for now.
Maybe an idea on how to do this would be to add an option, in the attributes of the object, to mask it (the same way we can choose an image to mask the page). This would not be exactly the complete solution I wanted, however this would remove some lines of code, which I think is important to help have an easy to debug/work-on app.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.