473,326 Members | 2,588 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Stephen Lebans Calendar

I need a transparent replacement for the MS DTpicker calendar. I found
Stephen's AMAZING Month Calendar but is there a way to suppress the window
title and properties bars. Basically, I need a like for like replacement
for the DTP and need to be able to set the properties in CODE.

Thanks in advance
Jul 6 '06 #1
3 2715
"Aikon" <ea********@bellsouth.netwrote
I need a transparent replacement for the
MS DTpicker calendar. I found Stephen's
AMAZING Month Calendar but is there a
way to suppress the window title and
properties bars. Basically, I need a like
for like replacement for the DTP and need
to be able to set the properties in CODE.
If you want the Window format to not include these features, why can you not
open it in design view and change the properties there. As to other
properties that you may _need_ to change in code, it is a Windows form, and
the properties of Windows Forms and the Controls thereon are available from
code.

Why, exactly, would anyone _need_ an exact replacement for the Windows date
picker? It would seem to me that a functional equivalent, and Stephen's is
even more than that, as I recall, should do the trick.

Larry Linson
Microsoft Access MVP
Jul 7 '06 #2
In my opinion, Stephen's calendar is by far a much better calendar choice
for Access by far. What I mean by "like for like" is from a display
perspective. I simply need to be able to display the calendar without a
window title and without the menu bars which is how the DTP is displayed.
I have been able to suppress the menu bars but do not know how to change the
window style so that the window title is suppressed. I assume it's a API
property value change but this level of programming is beyond my meager
skill set.

"Larry Linson" <bo*****@localhost.notwrote in message
news:ahzrg.64$Th7.55@trnddc05...
"Aikon" <ea********@bellsouth.netwrote
I need a transparent replacement for the
MS DTpicker calendar. I found Stephen's
AMAZING Month Calendar but is there a
way to suppress the window title and
properties bars. Basically, I need a like
for like replacement for the DTP and need
to be able to set the properties in CODE.

If you want the Window format to not include these features, why can you
not open it in design view and change the properties there. As to other
properties that you may _need_ to change in code, it is a Windows form,
and the properties of Windows Forms and the Controls thereon are available
from code.

Why, exactly, would anyone _need_ an exact replacement for the Windows
date picker? It would seem to me that a functional equivalent, and
Stephen's is even more than that, as I recall, should do the trick.

Larry Linson
Microsoft Access MVP


Jul 8 '06 #3
I have research the user32.dll properties on MSDN and other threads here and
it turns out that Stephens's code already exposes the property for
determining if a title bar is shown (or not shown). I am including the code
changes needed to prevent the title bar and the menu mars from being
displayed in the event anyone else may be interested.

To prevent the title bar for being displayed change the following coded as
follows:

In modCalendar - declarations change Private Const WS_OVERLAPPEDWINDOW to:

Private Const WS_OVERLAPPEDWINDOW As Long = (WS_OVERLAPPED Or WS_BORDER Or
WS_SYSMENU Or WS_THICKFRAME Or WS_MINIMIZEBOX Or WS_MAXIMIZEBOX)

Change "Public Function ShowMonthCalendar" to:

hWnd = CreateWindowEx(lngEXStyle, _

CLASSNAME, _

TITLE, _

WS_POPUPWINDOW Or WS_BORDER, _

CW_USEDEFAULT, _

CW_USEDEFAULT, _

CW_USEDEFAULT, _

CW_USEDEFAULT, _

mc.hWndForm, _

hMenu, _

hInstance, _

0&)

To hide the menu bars, comment out the following lines found in
modCalendar - ShowCalendar:

' Misc Properties Menu

'## lngRet = InsertMenu(hMenu, 2&, MF_POPUP Or MF_BYPOSITION Or
MF_ENABLED, hMenuPopMisc, "Properties")

'## lngRet = InsertMenu(hMenu, 1&, MF_BYPOSITION Or MF_ENABLED, 998, "Close
Window")

This is a crud fix and disables some niceties included in Stephen's original
code and also requires for some properties to be set in code. It should be
easy enough for me to add some additional code that will allow me my
modified version or the more robust version included in the original code.

If someone could, please look at the changes I have made and let me know if
I am doing something wrong as I have little API experience

Thanks



"Aikon" <ea********@bellsouth.netwrote in message
news:Aq******************@bignews2.bellsouth.net.. .
In my opinion, Stephen's calendar is by far a much better calendar choice
for Access by far. What I mean by "like for like" is from a display
perspective. I simply need to be able to display the calendar without a
window title and without the menu bars which is how the DTP is displayed.
I have been able to suppress the menu bars but do not know how to change
the window style so that the window title is suppressed. I assume it's a
API property value change but this level of programming is beyond my
meager skill set.

"Larry Linson" <bo*****@localhost.notwrote in message
news:ahzrg.64$Th7.55@trnddc05...
>"Aikon" <ea********@bellsouth.netwrote
I need a transparent replacement for the
MS DTpicker calendar. I found Stephen's
AMAZING Month Calendar but is there a
way to suppress the window title and
properties bars. Basically, I need a like
for like replacement for the DTP and need
to be able to set the properties in CODE.

If you want the Window format to not include these features, why can you
not open it in design view and change the properties there. As to other
properties that you may _need_ to change in code, it is a Windows form,
and the properties of Windows Forms and the Controls thereon are
available from code.

Why, exactly, would anyone _need_ an exact replacement for the Windows
date picker? It would seem to me that a functional equivalent, and
Stephen's is even more than that, as I recall, should do the trick.

Larry Linson
Microsoft Access MVP



Jul 9 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Wally | last post by:
Hi All, I'm using Stephan Lebans' nifty code for automatically resizing text fields to the size required to show (almost) all text in that field (CanGrow3, thanks Stephen!). In general this...
11
by: Patrick | last post by:
I am using Stephans code to change the background color of the Access container in Access 97, the code works fine when running in Access in the normal way. The problem occurs when running the...
1
by: Alex | last post by:
The JustiDirect text justification on Stephen LeBans site works well but I cannot get it to work on a sub report. Could anyone tell me if this is possible. Thanks. Alex
3
by: Alex Wisnoski | last post by:
I am trying to adapt Lebans' ReportUtilities to export reports (to preserve formatting) from an Access 97 application. I have made the reference to his mde and copied the modules into my db. I...
4
by: Karl Roes | last post by:
Hi Stephen, Very Cool. I can only get it working on the first row of a continuous form. Is this correct? Regards Karl
3
by: Phil Stanton | last post by:
I am trying to produce a program that will output any Access report to an editable Word document. So far it is working well but slowly with text boxes, labels, and lines. I now need to try to...
3
by: Rémi | last post by:
Hello all! I've been using Stephen Lebans' MouseWheel stuff for a number of years now, without problems. I've used on different combinations of Access and Windows, and have had great results with...
14
by: nospamhere | last post by:
Hello Stephen and all, This is such a cool group. I really need to spend more time here. A few months ago I noticed some brief discussion here about the fact that your excellent HTML Editor...
8
by: grant | last post by:
Hi I've copied Stephens code into my db, and can get it to work, but only on "plain Jane" reports with no images. Most of my reports has an unbound image obluect in them that I set to an...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.