Bonjour,
Est-il possible d'exécuter seulement un msgbox dans l'événement clik
d'une ToolBar mais sans que le bouton en question (de la ToolBar) ne
s'enfonce mais reste normal sans enfoncement ? Car dans mon programme,
lorsque je clique sur le point d'interrogation mon curseur change en point
d'interrogation . Et si je clique sur la ToolBar avec ce point
d'interrogatin je veux seulement afficher le msgbox d'aide qui explique le
bouton de cette ToolBar mais sans que le bouton ne change (ne s'enfonce).
Est-ce possible?
a+
Raymond H.
Private Sub Toolbar1_Button Click(ByVal Button As MSComctlLib.But ton)
If Screen.MousePoi nter = 14 Then
Msgbox "Explication... "
Exit Sub
EndIf
...
End Sub
=============== =============== =============== =============== ========= 3 2820
Salut Raymond.
La Toolbar ne permet pas l'evenement clique...cepend ant il permet
l'evenement MouseDown et Mouse Up...
Si tu veut que ton explication apparaise lors que l'usager appui sur le
bouton de la souris utilise mousedown
Si tu veut que ton message apparaisse des que l'usager lache le bouton de la
souris alors utilise l'evenement MouseUp
Cordialement
--
Stéphane Richard
Senior Software and Technology Supervisor http://www.totalweb-inc.com
For all your hosting and related needs
"Raymond H." <di*******@hotm ail.com> wrote in message
news:q8******** ***********@new s20.bellglobal. com... Bonjour, Est-il possible d'exécuter seulement un msgbox dans l'événement clik d'une ToolBar mais sans que le bouton en question (de la ToolBar) ne s'enfonce mais reste normal sans enfoncement ? Car dans mon programme, lorsque je clique sur le point d'interrogation mon curseur change en point d'interrogation . Et si je clique sur la ToolBar avec ce point d'interrogatin je veux seulement afficher le msgbox d'aide qui explique le bouton de cette ToolBar mais sans que le bouton ne change (ne s'enfonce). Est-ce possible? a+ Raymond H.
Private Sub Toolbar1_Button Click(ByVal Button As MSComctlLib.But ton) If Screen.MousePoi nter = 14 Then Msgbox "Explication... " Exit Sub EndIf ... End Sub
=============== =============== =============== =============== =========
Bonjour,
Chez moi l'événement Toolbar1_Button Click fonctionne. Mais pouvez-vous
me donner un exemple dans Mouse_Down comment faire pour reconnaitre quel
bouton est cliqué même s'il est grisé?
a+
Raymond H.
"Stephane Richard" <st************ **@verizon.net> a écrit dans le message de
news:0j******** *********@nwrdn y02.gnilink.net ... Salut Raymond.
La Toolbar ne permet pas l'evenement clique...cepend ant il permet l'evenement MouseDown et Mouse Up...
Si tu veut que ton explication apparaise lors que l'usager appui sur le bouton de la souris utilise mousedown
Si tu veut que ton message apparaisse des que l'usager lache le bouton de
la souris alors utilise l'evenement MouseUp
Cordialement
-- Stéphane Richard Senior Software and Technology Supervisor http://www.totalweb-inc.com For all your hosting and related needs
"Raymond H." <di*******@hotm ail.com> wrote in message news:q8******** ***********@new s20.bellglobal. com... Bonjour, Est-il possible d'exécuter seulement un msgbox dans l'événement
clik d'une ToolBar mais sans que le bouton en question (de la ToolBar) ne s'enfonce mais reste normal sans enfoncement ? Car dans mon programme, lorsque je clique sur le point d'interrogation mon curseur change en
point d'interrogation . Et si je clique sur la ToolBar avec ce point d'interrogatin je veux seulement afficher le msgbox d'aide qui explique
le bouton de cette ToolBar mais sans que le bouton ne change (ne
s'enfonce). Est-ce possible? a+ Raymond H.
Private Sub Toolbar1_Button Click(ByVal Button As MSComctlLib.But ton) If Screen.MousePoi nter = 14 Then Msgbox "Explication... " Exit Sub EndIf ... End Sub
=============== =============== =============== =============== =========
Merci :)
r.h.
"Geoff" <Cr********@hot mail.com> a écrit dans le message de
news:79******** *************** ***@posting.goo gle.com... me donner un exemple dans Mouse_Down comment faire pour reconnaitre quel bouton est cliqué même s'il est grisé? Try this Private Sub ToolBar1_MouseD own(Button As Integer, Shift As Integer, x As Single, y As Single) Dim oButton As Button, SelectedButton As Integer Dim strButtonTitle As String, strMsg As String ' Only continue if we are in help mode If Not Screen.MousePoi nter = 14 Then Exit Sub With ToolBar1 ' Make sure Y co-ord is on the toolbar If y > .Top + .Height Or y < .Left Then Exit Sub 'Get the index form the x-y coord to the button clicked. For Each oButton In .Buttons With oButton If ((x > .Left And x < .Left + .Width) And _ (y > .Top And y < .Top + .Width)) Then _ SelectedButton = .Index End With Next 'See if a button was clicked & Display Help Messages If SelectedButton Then strButtonTitle = _ .Buttons(Select edButton).Key & "Toolbar Button" Select Case SelectedButton 'Display all buttons in one go as its an example Case 1 To .Buttons.Count strMsg = "Button " & SelectedButton Case Else 'Toolbar pressed strButtonTitle = "Toolbar Help" strMsg = "General help" End Select End With 'Display message MsgBox strMsg, vbInformation, strButtonTitle End Sub This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Krishna Tyner |
last post by:
Join Sun's Web event to hear the results of Sun's
massive investment in innovation, including the latest
technologies designed to slash cost and complexity across
the network. Chat live with Sun's Chief Strategy Officer,
Mark Tolliver. Plus, get a Sun Java Desktop System
evaluation CD, downloadable Sun BluePrints book and
articles, when you attend the event and join a community
membership program.
Sign up for an e-mail reminder at:...
|
by: DJ WIce |
last post by:
Hi,
I'm looking for a script to get the hi-est z-index on a page.
I want my javascript menu to be always on top of the page (moves along on
top when you scroll down).
Does anyone know how to scann all items/elements on the page for a z-index?
Thanks,
Wouter
|
by: Narendra |
last post by:
Hi All,
i got a problem. I need to convert time from EST standard to PST
standard.
Thu, 15 Dec 2005 09:24:19 -0500 to PST
this time i need to convert as PST time
is there any python code which helps me.
|
by: sunway |
last post by:
est
--
free thought,free world
|
by: moi |
last post by:
Hello,
Dim strConn As String = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" &
Application.StartupPath & "\app_data\aaaaaa.mdb;"
Application.StartupPath does'nt work with ASP.NET 2 :
BC30456: 'StartupPath' n'est pas un membre de
'System.Web.HttpApplicationState'
| |
by: XML newbie: Urgent pls help! |
last post by:
How to Convert local time(eg EST) on local machine to GMT. I am using VB.Net
2005.
Then I need to subtract 1 minute(or 1-100) minute selected by the user in
the combobox and pass it as start time to the query.
I thanku all in advance.
|
by: Pascal |
last post by:
bonjour vb2005 m'annonce :
le nom 'vb6' n'est pas déclaré
que dois je déclarer pour utliser VB6.SetItemData ?
For lPointer = 0 To lCount
VB6.SetItemData(Me.lstMots, lPointer, 0)
'.SelectedItem (lpointer).
|
by: scotspie501 |
last post by:
i have perkins EST and looking for key genenrator for a product code can anyone help
|
by: AG |
last post by:
Bonjour,
voici mon bout de code (toujours le même en amélioré). Ma question est la
suivante :
combien de tableau tab ai-je ? Moi j'en veux que deux. Un pour myA1 et un
pour myA2. Le fait que je sois obligé de spécialiser l'instanciation du
tableau statique tab me fait penser que j'aurais 12 tableau en tout. Est-ce
bien ça ?
|
by: =?Utf-8?B?UGhpbCBKb2huc29u?= |
last post by:
Hi,
I have a web application that will be hosted on servers with timezones
configured to EST with daylight saving.
My application takes an XML datafeed that contains times in GMT (also with
daylight saving that will change on different dates to EST)
Is there any way within the .net framework to convert the current time from
the server (which will be EST with daylight saving) to GMT?
|
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: 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: 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...
| |