Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Appearance of controls in Web browser.
Message
From
20/08/2002 07:52:14
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
To
20/08/2002 03:11:44
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00690882
Message ID:
00691388
Views:
25
Hi Robert,

Thanks for the suggestions. I'm not sure if you read the complete thread but what I was after is a way to make the controls on my page appear in the style "appropriate" to the operating system. What I mean by that is as follows:

When I run my application under NT4, controls look 3d and gray (you know, the boring typical controls). This was noted particularly with scrollbars in edit boxes and with dropdown lists. If I run it under XP, some of the controls (actually only the scrollbars) appear as "XP style" ie. light powder blue and flatter. The same did not happen to my dropdown list and I want to know why and how to make it change to XP standards.

It was staring me in the face when I noticed that if I look at the UT web page from XP, all controls take on the XP look. If I look at the same page in NT, all controls take on the NT look. Is ths behavior automatically done by the browser (IE6 in this case)?

As I've said in the previous messages, I'm using the web browser control in a VFP form. Only the scrollbars seem to automatically make the style switch between the two OSs. If you check out the dropdown list here in the menu on the left side under "Time warp" you'll see what I am referring to. Under NT, it is very 3d with a gray button and a black inverted triangle. Under XP, it is flat (well less 3d) and has a light blue button with a black "v" (not an inverted solid triangle).

Mike.

PS

I don't know for sure if the css sample came from the UT site. Michel Fournier tried to assist me (see his replies) but I don't know if I did as he instructed and/or if that is even his code. Anyway, thanks to both of you for trying to help.


>Hi Mike,
>
>you could use an inline style for your select tag:
<select style="border:1px solid #000;">
But you have to wait for upcoming versions of IE to render that style correctly. Up to versions 6.x IE prefers to ignore certain border-style properties of the select tag. AFAIK it is always 3d. If you saw flat drop down lists, that might have been objects included into the HTML code.
>
>HTH Robert
>
>P.S. Where did you get that style sheet from? It uses a class selector to define the style of the select tag - with the name intended for the appropriate type selector! It states the border to be inset in the border-style property after defining it as solid in the compound border property. It mixes lower case with mixed case. The author of that style sheet qualifies for quarrying stones rather than authoring web sites. He should be fired instantaneously!
>
>Sorry, I couldn't hold my horses!
Previous
Reply
Map
View

Click here to load this message in the networking platform