Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




How To Make The Arrow Button In Button Menus To Grey In Toolbar ?


How to make the arrow button in button menus to grey in toolbar

Have a look at samp.jpg file !!




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Toolbar Button Dropdown Arrow
Hi Everyone,

How do you call to the subitems in a toolbar button dropdown arrow? I can only get the program to realize the main button_click procedure but no the subitems below. Thanks for any help.

Menus Of A Button From The TOOLBAR Control
does anyone know how to add pictures to the menus of a Button from a TOOLBAR control? (subclassing?)

Toolbar (make Button Invisible)
Hi guys, I have a toolbar that has seven buttons. When a regular user logs in, I want a certain button within that toolbar invisible so that its not available to them. This is what I have so far but I am told variable not defined. Please advise as to what I am doing wrong. The key for the button is called Operators.

VB Code:
With Toolbar1            Select Case Button.Key                Case "Operators"                .Visible = False            End Select        End With

When Click, Button Become Dim/grey
Dear All,
i have a program with 20 button on a form, And those buttons was embed with GIF's file. Is it possible when i click on a button , that button become dim-off or grey ( to show that it's was selected) and click again it's become normal ?

Please help , TIA

rgds
Jas

Button Graphic - Remove Grey Box
Hello fellow VB'ers! I have a simple yet complex puzzle for you all.
When you put a graphic onto a button and view the button, you see the graphic but you also see the rest of the button's border..
For example, I have an Rounded Rectangle graphic with a rectangle box. Now when viewing the project, I see the graphic plus the rectangle box around the graphic..

Any way to remove this border or the command box, but keep the image as the button? Or better yet, is there a way to just make the graphic a button and not have to worry about any sort of borders?

Thanks for the help!

Custom Toolbar Button Mimic Print Button
I have created a custom toolbar button for Word, Excel, and Powerpoint using VB6. What I want to do now is mimic the events of the print button. When the print button disables, I want my toolbar button to disable and vice versa. Does anyone know how to do this. Thanks.

Vb6 Toolbar When Button Depressed Button Face Image
i wish to change the image displayed for 1 of 8 buttons (say the 3rd button).

i'm familiar with style (depressed look)... but can i change the image of the 3rd button from 'say' normal.bmp (in the image list control) to 'say' pressed.bmp.

thx all..have a good yr.

Making A Button Of The Toolbar A Drop Down Button
How can u make a button in the toolbar seem like a "Drop Down Button"?

Bullet Proof FTP Client uses one to change the list view. It is like a button with an arrow pointing down, and when u click on it, it shows a list on which to show some choices u have.

is there a way to do so?

How To Make A Button As The Default Submit Button
Hi Friends,
  Sorry once again for asking a simple question, but I don't have an answer and I have tried all sorts of things. I have many buttons in my application and I want to make a particular button called cmdSave as default button for that form. That means, when the user finishes filling up the form, he should be able to access the cmdSave button by pressing the Enter key. How do I do this? Thank you very much. Thank you for all your replies for the previous questions.
--Srikanth.



Edited by - sri1025 on 8/22/2005 9:04:21 AM

Arrow Button Between 2 List Box
Hi, does anyone know where I can find the button for those arrows between 2 list boxes so it can select items and moves between each other? Do I need to create one myself in VB? Thanks heaps.

Graphical Arrow On Cmd Button
Got another problem that i am stuck at again!

I created an arrow which is to denote the next button, using the line within the toolbox - is it possible to get the arrow line drawn on top of the next cmd button, so the next cmd button has the next text and the drawn arrow on it? I tried using the send to back/send to front command but this don't work or does the arrow line have to be done another way?

Thanks again for your time and help.

Arrow As Caption - Command Button
I know I've done this before but can't seem to remember how. All I need to do is present the caption of a command button as an arrow. There is a character combination that will do this but can't seem to remember what it is.

The result should be the appearance similar to a drop down button.

Thanks in advance...

Putting Arrow On Command Button
I have a command button with the dimensions of 435X375 Twips i.e 7.67mm X 6.61mm when converted into millimeters. So, to accomodate a arrow on the top of the command button I have designed an arrow in Autocad with the dimensions of 6mmX 5mm.From Autocad I am exporting the object in *wmf format which retains the vectored nature (dimensional accuracy) of the image & is also understandable to VB6.After changing the style of the button to Graphical I am setting the picture mode to the generated *wmf file.But due to some reason the picture that is appearing on the button is so large that it is covering the entire button.

Can somebody please advise?

Creating Arrow Button With Ease
Hi,

I hope to create an 8 direction arrow buttons for my application. I could use some conventional way of load 8 different arrow pictures onto the 8 command buttons. However, is there a better idea?

Thank you very much and hope to see your reply soon.

Move Button Using Arrow Keys
I want to move my button which is placed on form once user press any of the arrow keys. How to do this

Detect Arrow Keys When Button Is Focused
By default, when an arrow key is pressed on a button, focus is shifted to the next contol...

I need to detect when and which arrow keys are pressed on the button.

The button's KeyDown event does not respond to the arrow keys. I also tried subclassing the button (the WM_KEYDOWN message) and it still not works.

Any help please?

Can You Change The Size Of The Arrow Button Of VScrollBar?
Im making this program for a touch screen computer but the button that comes with the scrollbar is really thin i'm usually missing it. Is there anyway i can make it taller? Checked the properties and can't find any i can change to implement this. I'm thinking of just making a button and place it on top of the Scrollbar hiding the tiny arrow buttons....Is there any other way... Thanks in advanced.

Give Me Picture (Arrow) For Button Up And Botton Down.
I will like put the arrow in my button but I don't have any picture.

E-Mail: rpouliot@iqaff.qc.ca
Thanks

Button Menus
Hi,
I have a toolbar with 10 buttons but one of them is style dropDown and has two ButtonMenu.
What is the trigger for these two subMenus?
The _ButtonClick(ByVal Button As Button) works for the 10 buttons Using the Select Case Button.Index
Now if Case 5 ' Button 5 is clicked
I have Two ButtonMenu
How can I know which one is clicked?
I used the Button.ButtonMenus.Item
But it didn't work

Thanks ,
Ziko

Tool Bar Button Menus
Hi

I Have a tool bar with dropdown buttons in it I know how to see what button is pressed but how do I tell when I have click one of the button menus? in the code below in the select statment where there is no value for case 12, 14, 16 and 20 that is where I have my dropdowns with 3 menu item in each. how do I tell what menu I have clciked

Thanks

Hugh


VB Code:
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)Select Case Button.Index    Case 2        mnuNew_Click    Case 4        mnuOpen_Click    Case 6        mnuDelete_Click    Case 8        mnuTeach_Click    Case 10        mnuLogo_Click    Case 12          Case 14        Case 16            Case 18        mnuCalc_Click    Case 20    End Select

Detecticing Clicks On The Minimize Button,max Button And Closeout Button (X)
one more question, ok two i suppse heh,

this program that i'm almost done with (thankfully hehe), uses a timer loop to refresh itself every 15 minutes.
i've noticed a bug that while my timer is in effect it refuses to acknowledge a click on the X in the upper right hand corner of the screen as an Exit program (form) command, instead it refreshes my countdown.

what i want to know is there an event label that will detect a click on any of these buttons and immediately do whatever code i have in the event?

i would like to know the event code for the min button as well since i have it minimizing to they system tray, but only if you double click the icon. i would like it where when i click on the min button it auto goes to the tray and no just minimize the program.

Thanks in advance

Button Menus And Image Lists
I`ve got a tool bar with a button menu on it. When the user selects an option of the button menu I want the image for the button menu (on the toolbar) to change.

How do I do this??

I have an image list already ossciated with the toolbar. This list has my images in them.

I`m trying to use this code..

ButtonMenu.Parent.Image = MDIForm1.imlToolbarIcons.?????

but i`m not sure of the syntax

Help!!

[This message has been edited by Rick H (edited 02-09-2000).]

Grey Out Tool Buttons In Toolbar
I want to have a tool in the toolbar grey out during certain stages of the program. How do you do this? Thanks.

Abt The Toolbar Button
Hey guys

Is it possible the image of the button can be changed when i put the mouse on the flat style button?

Thanks a lot

Add Button To IE Toolbar
Hi,

I made a routine ( based on a code ) that adds a button to the IE toolbar. The problem is that the button doesn't appear automatically ( even with "Default Visible" set to "Yes" ) - the user must go and fetch it in the toolbar options. The original code doesn't put the button in the toolbar either. What is it missing? Is there another way of adding a button?

Kind regards,

Rigel Kent

New Button In IE Toolbar
Hi again,

I made an application that puts a button in the IE toolbar. The problem is that it doesn't appear automatically, not even after a reboot - the user must chose it manually. What can be the problem? I set the "Default visible" to "Yes".

One more question, if you don't mind: how do I create a Pull-down menu in that button?

Kind regards,

Rigel_Kent

IE Toolbar Button
Hello,
Is it possible to make a toolbar button for Internet explorer? I need to make a button that appears in near like the "Search", "favourites" and "History" buttons. I know what code i want to do, but i dont know where to start to get a button there. Ive searched on the internet but couldnt find anything

Can anyone help?

Thanks

Button On IE Toolbar
I know how to put a button on IE's toolbar and clicking it runs my program.

How can I pass the contents of the IE window to my program?





Thanks

Toolbar, Which Button
I'm trying to write aprogram where the target user simply drag's item from the listbx onto a button on a toolbar, then certain actions follow. However when I go to the Drag Drop event of the toolbar I can't find anyway to see which button my user dragged over. Does anyone know ?

Toolbar Button
Hi,
On form, I have a toolbar with some buttons and one of them has name "ListButton" button. On same form, I put a Listbox within a frame to display a list of orders that assigned to current user. That means whoever logins, the Listbox will display orders belong to that person only. When I run program, the form is blank and the frame will show with list of orders if you click on "ListButton". The list will allow user to double click the order to open it. The "FrameButton" will be hidden when an order is open. The button will toggle to change the z-order of the frame.
For example, clicking to the toolbar button will move the frame to
the back. Clicking again will move the frame to the front. My question is how to write code to hide the frame when order is open and show frame again when clicking the "ListButton" on toolbar. I really need help about this problem. Thanks All

Toolbar Button Down?
Does anyone know a way no make a button on a toolbar to look like its pressed down? YOu don't have to give any code just a pointer. THanks

Add Button To The IE Toolbar
Hi,

I made a improved script based in a good one in order to create a button in the IE toolbar. The problem is that the button doesn't appear automatically in the toolbar - the user must go get it in the toolbar options.

The script is based in registry manipulation - and I set "Default Visible" to "Yes".

What can be the problem?

Meanwhile, I have two more doubts: I have a anti-keylogger of my own - it works according to my rules. Now, how can I block the outgoing traffic of a suspicious application?
And last, how can I intercept all the outgoing emails ( from Outlook or any application ) in order to check them and then allow or not its sending?

Kind regards,

Kepler777

Add A Button To Ie Toolbar
i want to add a button to the ie toolbar. the program should be such that it should not give any prompts and messages regarding the addition of button. when a link in a web page saying "Add button" is clicked it should automatically install the button without any prompts. somewhat similar to that of google toolbar. plz help im very desperate

Toolbar Button Problem
I have constructed a Toolbar in my VB6 application and everything seems to work properly except with two of the buttons.

If I click the "tbrDropDown" style button it stays pushed in, but when I click on the other "tbrCheck" style button the "tbrDropDown" button pops up. All the other buttons work perfectly....

Is there something I am missing that causes these two to work together?

Combo Box Button In Toolbar
I'm trying to make a toolbar addin for internet explorer and I want to add a combo box to store lists of recent searches and things like that. Is it possible to add a combo box to a toolbar and have it stay in its place when the toolbar is resized?

Disabling A Button On A Toolbar.
How do I disable a button on a toolbar ? I want the button to be disabled when "mnuFileSave" is disabled.

Please Help M

Toolbar Drop-down Button
I'm using the toolbar control in VB6 and I want to add a button which when pressed shows a drop-down menu (I don't want a button that is split into two separate parts, with only the right hand part initiating the drop-down menu).

An example of the type of button I would like to insert is the "views" button in windows (XP) explorer, see attached.

Can anyone help please ?

Just Wondering If I Can.... {add Button To Add-in Toolbar}
hey,

I was wondering this:

At the present time, I created a perfectly functioning excel add-in that uses box characters from the character map for referencing purposes. I used the =findunicode function after finding the alt+# to write the code. See below for one of the character codes:

Sub Character247()
ActiveCell.Value = ChrW(8776)
Selection.Font.ColorIndex = 3
End Sub

So, my question is this: Is there a way to add another button to this already existing toolbar. I wanted to include a check mark from wingdings (centered and blue). I'm not sure what to do but this is what I have so far. Only, I don't know 1) if this code is right and 2), if it were, how do I connect it to my existing toolbar. Thanks.. hopefully that made sense!!

ActiveCell.Value = ChrW(252)
With Selection.Font
.Name = "Wingdings"
.Size = 12
.Bold = True
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ColorIndex = xlAutomatic
End With

End Sub

Outlook Toolbar Button
I have been asked to make a plug-in for Outlook which will provide a Button on the toolbar which will add the Confidentiality Notice to the current New Mail.
With no Outlook VBA experience, I really could do with some help.
Thank very much,

HandyMac

VBA Excel Toolbar Button
Hi everyone, and thanks for reading this!

I have recently started to learn VB and VBA and am nearing completion of my first mini prog in VBA with excel. I have come to a halt at one little problem. I would like the prog to automatically add a new tollbar item when the project is opened but do not now how to do this. The program is a simple payroll system and just needs a launch point from the main excel toolbar so that the user can access the user forms.

I hope that makes sense

Thanks again

Viv

Customized Button On Toolbar
Hi,

I would appreciate help with the following. I am currently writing code in a module in VBA. I want to then save this as an add-in. I want to trigger the code in the addin by a button on the toolbar that basically looks like it is part of the standard toolbar ie. File Edit View Insert Format Tools Data Window and Help. I have right clicked on the toolbar and put in my macro and so next to Help is Mymacro. If you click on Mymacro it will pop up a user form that I have designed.

I want other people to be able to use my addin. I know I would save my vba code as an add-in and then have the users install by going to Tools Add-Ins.

The strange thing is that before I even saved my code as an add-in, I previously just saved it as an Excel workbook that 'button' has now stuck and
is now part of my template for working in any Excel workbook. Also, it is also
has a hard coded path to where the vba code is.

1. My question is how to I create a 'button' that can be part of and add-in and if the add-in were removed the button would be removed as well.

2. Also, I want the add-in code to work on the current activeworkbook not the workbook it was created in. In my add-in code do I just refer to activeworkbook? Is that okay?

thanks!

Clicking Toolbar Button On Another App
Hi, does anybody know how to click the first Toolbar button on another app?
I tried TB_PRESSBUTTON and it sets the first button to tbrPressed, but it doesn't run the Toolbar click event.


Code:
Option Explicit

Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" _
(ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" _
(ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" _
(ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As String) As Long
'Private Const BM_CLICK As Long = &HF5

Private Const WM_USER = &H400
Private Const TB_PRESSBUTTON = (WM_USER + 3)

Private Sub Command1_Click()
Dim hParent As Long
Dim hChild As Long

hParent = FindWindow("TfrmMain", vbNullString)
'Debug.Print hParent

If hParent <> 0 Then

hChild = FindWindowEx(hParent, 0&, "TPanel", vbNullString)
hParent = FindWindowEx(hParent, hChild, "TPanel", vbNullString)
hChild = FindWindowEx(hParent, 0&, "TPanel", vbNullString)
hParent = FindWindowEx(hParent, hChild, "TPanel", vbNullString)
hChild = FindWindowEx(hParent, 0&, "TToolbar", vbNullString)
'Debug.Print hChild

If hChild <> 0 Then
Call SendMessage(hChild, TB_PRESSBUTTON, 0, 0)
End If
End If
End Sub

Text Only Toolbar Button
Does anyone know how to remove the blank "image" from a text only toolbar button i.e. (Toolbar1.TextAlignment = tbrTextAlignRight : Toolbar1.Buttons.Add , "p", "Print", tbrDropDown) still leaves space for the image to the left of the caption, despite there being no image. I'm hoping that some API anorak can come up with the goods !

Toolbar Button Click
I am trying to operate a toolbar with this procedure.

Private Sub tbrPMT_ButtonClick(ByVal Button As MSComctlLib.Button)
Dim oCompany As BE.clsCompany

Select Case Button
Case 1
Blah blah
Case 2
Blah blah
end select

However regardless of which button I press the Button value remains "". Its a pretty standard toolbar with an image box to populate the pictures. I thought that the button value was just the button index set in the properties...am I missing something?

Toolbar Bar Button Click
Hi All,

I have the following question.
I have a status bar with 12 buttons.

On the toolbar buttonclick i want to do a select case on the selected button, but the only paramer is the caption and i have only pictures.

I also tried to use the tag or index, but the all return "", but i filled them in on the Toolbar properties.

Amybe the solution is very simple, but dont get it,

any off you have a idea?

greetz,
Alex

Disable Toolbar Button
hi guys! can you give me an idea of disabling a button in a toolbar?!

Mousemove On Toolbar Button
I am trying to figure out which button the mouse is over when my curser goes over the toolbar

the only way I can see is to use the coordinates from toolbar_mousemove to find out which it is on.., although I don't know how to do this; unless you would do it by adding up the buttons and finding out where each is then using select case...

I suppose I could do that but if there is an easier way...

thanx in advanced,
Byan

Code Under A Toolbar Button?
I'm a real beginner in VB, so sorry if this is a very noob question

I've just placed a toolbar with an imagelist. So I now got a real nice toolbar, with functions as "New", "Open" etc. But where can I set the actions for thede buttons? When you click on the toolbar you'll get the following private sub:

Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
End Sub

So I thought the variable "Button" would hold the index of the button pressed, but this variable is always empty.

So how do I know when a user has pressed on a button, and which button he / she pressed?

Thnx!

Toolbar Button Unpress
I want do something like this When no button are unpress from the toolbar button, I got the message box.

But when I put the code below, it pop up the message box untill it finish looping. I just want to pop up the message box when it found any button are unpress from the toolbar




Code:
'loop when any button found unpress from the toolbar
Dim i As Long
For i = 1 To Toolbar1.Buttons.Count
If Toolbar1.Buttons(i).Value = tbrUnpressed then
msgbox "Hi"
end if

Next

Copyright © 2005-08 www.BigResource.com, All rights reserved