1. Store Manager next release
- Posted by Michael Sabal <mjs at OSA.ATT.NE.JP>
Nov 07, 1998
-
Last edited Nov 08, 1998
The next release of Store Manager (0.3) is now available on my homepage =
at
Most of the changes were internal and preparatory changes for future =
releases. However, the Sales Add/View/Cancel functions have been added.
One note, this version uses David Cuny's Win32Lib alpha version 12 =
(version 14 I believe is the most current). I've included it in the zip =
file, and it should be in the same directory as StoreMgr.exw. Also, =
there is a modified version of get.e included that allows the typing of =
dollar signs and percent signs in otherwise numerical fields (I'd've =
included the yen sign or sterling pound sign, but they don't exist on my =
keyboard :)).
Any questions or comments regarding programming are more than welcome. =
Any personal comments or questioned can be directed to my private email =
address below. =20
[Centering]
There are two ways to do this. Using a static text control (CText) set =
to the width of your window, setText(centeredControl,""). In the =
onResize procedure,
Or you can use dynamic text in the onPaint event. In this case, fs =3D =
getFontSize(myWindow). The X position is defined as (windowWidth/2) - =
((length(text)*fs[1])/2) and the Y position as
(windowHeight/2) - ((numlines*fs[2])/2).
Then setPosition(myWindow,X,Y)
and wPuts(myWindow,text)
Hope this helps.
Michael J. Sabal
mjs at osa.att.ne.jp
http://home.att.ne.jp/gold/mjs/index.html