Re: Stephen Lebans Calendar



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" <eabarnwell@xxxxxxxxxxxxx> wrote in message
news:AqMrg.21428$7K2.7154@xxxxxxxxxxxxxxxxxxxxxxxxx
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" <bouncer@xxxxxxxxxxxxx> wrote in message
news:ahzrg.64$Th7.55@xxxxxxxxxxx
"Aikon" <eabarnwell@xxxxxxxxxxxxx> wrote

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






.



Relevant Pages

  • Re: running rm cobol in a cron job
    ... SUPRESS command to suppress the window which says in the manual that it ... When I run the program manually from Unix, it does display a message ...
    (comp.lang.cobol)
  • Re: Cant apply themes ... fully
    ... Click 'OK' and see if that applies the XP style to the various window components. ... I've gone into the Display applet and selected a theme. ... But what happens, with any standard theme I try to apply, is that the fonts all change, the window metrics change, and the colors change, but the actual underlying look of title bars and buttons doesn't change. ... The title bars and buttons still have the Windows Classic appearance. ...
    (microsoft.public.windowsxp.customize)
  • Re: Stephen Lebans Calendar
    ... Stephen's calendar is by far a much better calendar choice ... 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 ...
    (comp.databases.ms-access)
  • Re: SVGA, LCD, Win CE 6.0 and PB
    ... site addressing display drver issues, not to mention the source code. ... travel down thru Win CE from boot.ini to the place genrating final LCD ... I can have a desktop larger than physical screen window. ...
    (microsoft.public.windowsce.platbuilder)
  • Question about Full screen exclusive mode
    ... I use ScreenManager class that has been presented in David Brackeen's book. ... The graphics card enters the selected mode but the window content is painted only to the level of windows display mode.For example. ... After returning to the Windows, the settings dialog window is repainted with the content of the frame that is under settings dialog. ...
    (comp.lang.java.programmer)

Loading