Status Bar Question
- From: "Webbiz" <nospam@xxxxxxxxxxxxxxx>
- Date: Tue, 9 Dec 2008 19:45:19 -0600
I'm have programmed a Status Bar with the following code:
'=========== CREATE STATUSBAR ===========
'Size the StatusBar to fit the form
MoveWindow hWndStatus, 0, (lngScaleHeight - SBHeight), _
lngScaleWidth, SBHeight, 1
'This line is required for certain owner-draw
'panels to redraw correctly
InvalidateRect hWndStatus, ByVal 0&, 0
Const nParts As Long = 12
Dim wParts(0 To 11) As Long
'Set panel widths
wParts(0) = iSBDivisions * 20 'For the Data Directory
wParts(1) = iSBDivisions * 27 'Date
wParts(2) = iSBDivisions * 34 'Open
wParts(3) = iSBDivisions * 41 'High
wParts(4) = iSBDivisions * 48 'Low
wParts(5) = iSBDivisions * 55 'Close
wParts(6) = iSBDivisions * 60
wParts(7) = iSBDivisions * 67
wParts(8) = iSBDivisions * 73
wParts(9) = iSBDivisions * 83
wParts(10) = iSBDivisions * 94
wParts(11) = -1
'Tell the StatusBar how many panels we want
'and get it out of simple mode
'SendMessage hWndStatus, SB_SIMPLE, 0, ByVal 0&
SendMessage hWndStatus, SB_SETPARTS, nParts, wParts(0)
SendMessage hWndStatus, SB_SETTEXT, 11 + SBT_POPOUT, ByVal vbNullString
'blank
============
I was wondering if there is a way to detect mouse clicks on this Status Bar?
If I double-click inside one of the panels, I'd like to catch that event and
do something with it.
Is this possible, or to do so would I need to use some kind of Status Bar
control instead?
Thanks.
Webbiz
.
- Follow-Ups:
- Re: Status Bar Question
- From: MikeD
- Re: Status Bar Question
- From: Eduardo
- Re: Status Bar Question
- Prev by Date: Re: Anchors and Objects
- Next by Date: Re: To Mike Williams
- Previous by thread: A query loosing its value?
- Next by thread: Re: Status Bar Question
- Index(es):
Relevant Pages
|