In Windows XP display Properties/Appearance users can chose between:
Windows XP Style or Windows Classic Style.
Is there a way in VBA to determine the user's selection?
The reason:
Toolbars size taller in XP than in Classic so I need to size all those
nifty windows sizing commands depending on the user's preference.
Any help is appreciated.
lq 19 6009
Ouch. I've been "Lyle-Sighed".
Is this because the question is incredibly inept or because there is
such an obvious solution, or maybe you just haven't sighed lately?
lq
Then I am prouder of my "Sigh" than of any other contribution I have
made to CDMA, ever.
Lauren Quantrell wrote: In Windows XP display Properties/Appearance users can chose between: Windows XP Style or Windows Classic Style.
Is there a way in VBA to determine the user's selection?
The reason:
Toolbars size taller in XP than in Classic so I need to size all those nifty windows sizing commands depending on the user's preference.
Any help is appreciated. lq
I was thinking about this very issue the past week, but the problem is the
difference is 1/4 an inch or so, and I would have to size all the controls
along with the form.
Let us know what you do with this.
Thanks
DFS:
This is what I came up with.
I hope this helps.
' the following items used for GetSystemMetric s: (put in code module)
Private Declare Function GetSystemMetric s Lib "user32" _
(ByVal nIndex As Long) As Long
Private Const SM_CYSIZE = 31 ' Height of bitmaps in title bar
Function MenuHeight() As Long
On Error Resume Next
' Measure the height of the application menu bar
MenuHeight = GetSystemMetric s(SM_CYSIZE)
End Function
Function SomeFunctionTha tResizesThings ()
Dim myMenuHeight As Long, cH as Long
' measure the windows title menu height: _
returns 18 Windows Classic Mode / 25 Windows XP Mode
myMenuHeight = MenuHeight
' size my window height: (36 is the height of a toolbar, used as an
example)
cH = 36 + myMenuHeight
End Function
' Another approcah to this using a boolean value to _
determine if XP or Classic Theme is in use:
Function IsXPStyle() As Boolean
On Error Resume Next
' Determine if XP Syle is in use
IsXPStyle = (CLng(GetSystem Metrics(SM_CYSI ZE)) >= 25)
End Function
"Lauren Quantrell" <la************ *@hotmail.com> wrote in
news:11******** *************@g 47g2000cwa.goog legroups.com: In Windows XP display Properties/Appearance users can chose between: Windows XP Style or Windows Classic Style.
Is there a way in VBA to determine the user's selection?
The reason:
Toolbars size taller in XP than in Classic so I need to size all those nifty windows sizing commands depending on the user's preference.
Why is it that just finding the size of the Access MDI client window
is insufficiont, since it excludes the toolbars? The window sizing
class on the Access Web includes code for getting the size of the
Access MDI client window.
--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
The object here is to size the overall Access window to a fixed height,
including the Windows title bar plus any maximized (non popup) form it
may contain.
lq
"Lauren Quantrell" <la************ *@hotmail.com> wrote in
news:11******** **************@ f14g2000cwb.goo glegroups.com: The object here is to size the overall Access window to a fixed height, including the Windows title bar plus any maximized (non popup) form it may contain.
Um, why?
I hate running programs like Access non-minimized. Web browsers I
run non-minimized, but almost all other apps I want taking up the
whole screen. An app that is designed to override my choices will be
one I will not like using.
Of course, you're not designing for me.
But I've also found that my non-techie clients function better with
maximized applications than with non-maximimzed, because they always
end up missing part of the information onscreen (especially in
Access, where the forms don't dynamically resize unless you
incorporate complex form resizing code that makes your forms look
pretty ugly in certain sitautions, and doesn't really deal with the
problem that occurs when the parent window is not big enough to
display the entire form). I've observed them lose things and scroll
around unnecessarily, problems that wouldn't occur at all if they'd
only run the parent app maximized.
--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Web Webon |
last post by:
Hi everybody!
I wonder if this is possible?
I need to determine if a client is using "windows classic folders" or
anything else. If I instantiate a Shell ActiveX object is there a way
of obtaining this information from javascript? (I know that the user
will get prompted about allowing such an operation, but I am willing
to live with this). Because of the way one of my pages work, I need
to know this information in order to "cover up"...
|
by: microsoft.public.dotnet.languages.vb |
last post by:
I am VB.NET developer. So completed the Tutorial "Using Windows XP
Visual Styles with Controlls on Windows Forms" tutorial by Seth
Grossman. Application works fine. So I close the solution and little
while reopen the solution. But unfortunately Windows Xp style is gone
from my application, when I ran the application. When I click the
Execute button to compile and run the application, VB.NET display the
following message. "Can't Write the...
|
by: ankit |
last post by:
Hello,
Please put some light on, What are new style classes and classic style
classes in python. The basic differences in them. And How can I decide
to choose one.
|
by: Rune Jacobsen |
last post by:
Hi all,
I have an application with one particular form that lists a number of
items in a listview. In addition to the listview, there is a panel on
top with some simple controls to go back and forth to the next and
previous day.
Since the number of items in the list can vary from day to day - from
zero one day to thirty another, and five the third - my users like the
option to have the Window resize itself to exactly fit the number of
|
by: lisseut |
last post by:
Hi, hope I'm posting to the right forum.
I'm using C# under .NET 1.1, Windows XP SP2
I have a form and I've overridden WndProc to print to a text box whenever it
receives the WM_NCMOUSELEAVE message. Under "Windows XP Style", I get these
messages fine (when the mouse moves off the title bar or form borders).
Under "Windows Classic Style", I don't get the message at all!
Has anyone seen this?
| |
by: Maurice |
last post by:
Hi all,
I have an application, designed in Visual Studio 2005, which will run
mainly on Windows XP computers.
If I run the application on a Windows XP computer having the Windows XP
Theme selected the controls look nice rounded, etc. just like in Windows
XP.
But if I run the application on a Windows XP computer having the Windows
|
by: Joel Hedlund |
last post by:
Hi!
The question of type checking/enforcing has bothered me for a while, and
since this newsgroup has a wealth of competence subscribed to it, I
figured this would be a great way of learning from the experts. I feel
there's a tradeoff between clear, easily readdable and extensible code
on one side, and safe code providing early errors and useful tracebacks
on the other. I want both! How do you guys do it? What's the pythonic
way? Are...
|
by: momobear |
last post by:
hi, I am puzzled about how to determine whether an object is
initilized in one class, anyone could give me any instructions?
here is an example code:
class coffee:
def boil(self):
self.temp = 80
a = coffer()
if a.temp 60:
|
by: nobody |
last post by:
I need to pop up a modal JS-based dialog (for some reason can't use
popup window, much less so showModalDialog()), and I'd like to imitate
the system popup titlebar according to user's desktop settings
(classic, XP, Vista). No big deal to make it work, but how do I know
the style to display? Any chance to figure out these settings
programmatically either on the client (preferrable), or possibly in
asp.net from something like Request (not...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |