I have a form with a subform. The subform occupies about the bottom
two thirds of the screen. The form has a custom CommandBar docked at
the top. The subform also has its own CommandBar. I want to position
the subform's CommandBar just above the subform - that is about one
third down from the top, but I have been unable to get the effect I
want using the code below:
Dim cbrBar As CommandBar
Set cbrBar = Application.Com mandBars("cbrCW rdU")
With cbrBar
.Visible = True
.Position = msoBarFloating
.Top = 220
.Left = 10
End With
The problem is that with the Position property set to msoBarFloating,
the ConmmandBar is displayed with a grey title bar of its own showing
the name of the CommandBar and an X to close it. This is not what I
want. You do not get this with msoBarTop, msoBarBottom, etc.
I do not want a floating toolbar in the sense of one that can be
dragged around the screen and repositioned. I want to fix it
permanently in the chosen position. But as far as I can see, you have
to specify msoBarFloating, if you do not want Top, Bottom or either of
the two sides.
Adrian Chandler 3 4373 ad************* @Bigfoot.com wrote: I have a form with a subform. The subform occupies about the bottom two thirds of the screen. The form has a custom CommandBar docked at the top. The subform also has its own CommandBar. I want to position the subform's CommandBar just above the subform - that is about one third down from the top, but I have been unable to get the effect I want using the code below:
Dim cbrBar As CommandBar
Set cbrBar = Application.Com mandBars("cbrCW rdU")
With cbrBar .Visible = True .Position = msoBarFloating .Top = 220 .Left = 10 End With
The problem is that with the Position property set to msoBarFloating, the ConmmandBar is displayed with a grey title bar of its own showing the name of the CommandBar and an X to close it. This is not what I want. You do not get this with msoBarTop, msoBarBottom, etc.
I do not want a floating toolbar in the sense of one that can be dragged around the screen and repositioned. I want to fix it permanently in the chosen position. But as far as I can see, you have to specify msoBarFloating, if you do not want Top, Bottom or either of the two sides.
You could simulate a toolbar directly in the design of the subform and then
all of this is taken care of. Either by using buttons and labels or by
using those to invoke shortcut menus.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Rick Brandt wrote: ad************* @Bigfoot.com wrote: I have a form with a subform. The subform occupies about the bottom two thirds of the screen. The form has a custom CommandBar docked at the top. The subform also has its own CommandBar. I want to position the subform's CommandBar just above the subform - that is about one third down from the top, but I have been unable to get the effect I want using the code below:
Dim cbrBar As CommandBar
Set cbrBar = Application.Com mandBars("cbrCW rdU")
With cbrBar .Visible = True .Position = msoBarFloating .Top = 220 .Left = 10 End With
The problem is that with the Position property set to msoBarFloating, the ConmmandBar is displayed with a grey title bar of its own showing the name of the CommandBar and an X to close it. This is not what I want. You do not get this with msoBarTop, msoBarBottom, etc.
I do not want a floating toolbar in the sense of one that can be dragged around the screen and repositioned. I want to fix it permanently in the chosen position. But as far as I can see, you have to specify msoBarFloating, if you do not want Top, Bottom or either of the two sides.
You could simulate a toolbar directly in the design of the subform and then all of this is taken care of. Either by using buttons and labels or by using those to invoke shortcut menus.
-- I don't check the Email account attached to this message. Send instead to... RBrandt at Hunter dot com
If you drag a floating Toolbar by its title bar so that it docks at any
of the four edges of the screen, the thick title bar changes to a light
gray bar at the left side made up of very short lines. Nice and
discreet - that would do nicely.
This bar is the handle with which you can move it around the screen.
But as soon as you drag it out of its docked position, the thick title
bar reappears - very annoying!
Perhaps Stephen Labans can work his magic so that my tool bar sitting
above a subform about half way down the screen, will look like a normal
docked toolbar and not be twice as high?
I have tried assigning the CommandBar to the Toolbar property of the
subform, but it just docks at the top of the screen. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Eric |
last post by:
I have the following function which creates buttons on Excel
commandbar. The problem i can't get the buttons to hook up to events.
For example, if i create four buttons only the fourth one fires the
ButtonEvent, the rest do nothing. What am i doing wrong.
Please help
Eric
--------------begin Function--------------------------
def CreateButton(self,menubar,buttons,images,captions, tooltips):
|
by: Jaime Rios |
last post by:
Hi,
I created a COM AddIn for Word that performs the functions
that it needs to, but I needed to add the ability for the
toolbar created by the COM AddIn to remember it's last
position and whether it was docked or not. I added the
following code to my "OnConnection" function but it fails
with an error, "Run-time exception thrown :
System.IO.IOException - Bad file name or number."
With applicationObject.CommandBars("SampleToolbar")
|
by: ibsuzanne |
last post by:
hello there,
I am having a really diffuclt time positioning the toolbars where I
want them in Access 2000. I have a main toolbar open and docked at the
top, and I want to open an additional toolbar in line and to the right
of the main one as part of an on_click event.
the problem is that the second toolbar drops to the line below instead
of appearing in line with it (for some users). therefore i need a way
to programmatically ensure...
|
by: Samuel |
last post by:
Hi
I want to customize our IDE. I developed some Add-ins and would like to create command bar to access them directly.
I'm not sure if the term of "command bar" is appropriat. I mean with it a group of icon like the standard one of VS.NET to create a new project or a new element ..
How can I to do ? Has someone a link for me
ti
Samuel
|
by: anonymous |
last post by:
Hello,
I have a small problem with a VBA commandbar I'm using in Word 2003.
I created the toolbar -which works fine - and added some controls like :
TBar.Controls.Add(Type:=msoControlEdit)
But if I type in some text in that input field and switch to another element with the mouse, the inputted text is lost, whereas if I switch with the tab key, the text stays.
| |
by: robert.waters |
last post by:
Is there any way to identify a record based on where the user's cursor
is located, if the cursor is located somewhere in a query or table
window?
I would like to have a commandbar button call a function that can pull
the entire record that a user has his/her cursor 'inside'.
|
by: agbee1 |
last post by:
Hello:
I've finally made the effort to ween myself from overly using tables and use CSS for my positioning. However, I am having a problem with my navigational menu properly aligning in Firefox, despite the fact that I have gotten a green light from W3.
link to problem page:
I didn't see a feature to attach my css code so I pasted sections of the code that dealt with layout and navigation below.
Thanking you in advance,
|
by: Keith L |
last post by:
Hi,
I am aware on how to retrieve the commandbars collection from the current db (see example), but does anyone know how to do this from a remote Access db? I tried a few variations, namely using a DAO.Database and dbEngine.workspaces, but it doesn't seem to recognize this collection. I tried also w/ the Forms collection, it didn't work, so obviously this isn't my solution. Please help
Example - (I need to edit this so I retrieve the...
|
by: spynx |
last post by:
import javax.swing.JOptionPane;
import java.io.*;
import java.util.Arrays;
public class election5
{
public static void main( String args )
{
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
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...
| |