加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
frmClock.frm 166.48 KB
一键复制 编辑 原始数据 按行查看 历史
Cm Wang 提交于 2024-09-27 08:09 . Add files via upload
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575
' frmClock时钟
' Copyright (c) 2024 CM.Wang
' Freeware. Use at your own risk.
'#Region "Form"
#if defined(__FB_MAIN__) AndAlso Not defined(__MAIN_FILE__)
#define __MAIN_FILE__
#ifdef __FB_WIN32__
#cmdline "gdipClock.rc"
#endif
Const _MAIN_FILE_ = __FILE__
#endif
#include once "mff/Form.bi"
#include once "mff/TimerComponent.bi"
#include once "mff/Menus.bi"
#include once "mff/Dialogs.bi"
#include once "mff/ComboBoxEdit.bi"
#include once "gdip.bi"
#include once "gdipAnalogClock.bi"
#include once "gdipDay.bi"
#include once "gdipMonth.bi"
#include once "gdipTextClock.bi"
#include once "../Sapi/Speech.bi"
#include once "../MDINotepad/Text.bi"
#include once "../Midi/midi.bi"
Const MSG_SAPI_EVENT = WM_USER + 1024 ' --> change me
Using My.Sys.Forms
Using Gdiplus
Using Speech
Type frmClockType Extends Form
'initial gdip token
Token As gdipToken
'form trans
frmTrans As gdipForm
'form display device
frmDC As gdipDC
'memory display device
memDC As gdipDC
'form canvas
frmGraphic As gdipGraphics
'draw analog coloc
mAnalogClock As AnalogClock
'draw text coloc
mTextClock As TextClock
'Stress test for clock
TestSetting(Any) As Boolean
TestMenu(Any) As MenuItem Ptr
TestCount As Integer = 39
Declare Sub TestBackup()
Declare Sub TestRestore()
Declare Sub TestStress()
'Speech
Declare Sub SpeechInit()
Declare Sub SpeechNow(sDt As Double, ByVal sLan As Integer = 0)
mAudioCount As Integer = -1
mLanguage As Integer = 0
mnuAudioSub(Any) As MenuItem Ptr
mnuVoiceSub(Any) As MenuItem Ptr
mVoiceCount As Integer = -1
pSpVoice As ISpVoice Ptr
'midi
mMidiID As UINT = -1
mMidiOut As HMIDIOUT
'Profile
mRectAnalog As Rect
mRectDay As Rect
mRectMain As Rect
mRectMonth As Rect
mRectText As Rect
mSetAnalogStart As Integer
mSetDayStart As Integer
mSetMainStart As Integer
mSetMonthStart As Integer
mSetSpeechStart As Integer
mSetTextStart As Integer
mAppPath As WString Ptr
mKeyCount As Integer = 165
mKeyName(Any) As WString Ptr
mKeyNameLen(Any) As Integer
mKeyValDef(Any) As WString Ptr
mKeyValue(Any) As WString Ptr
mnuProfileCount As Integer = -1
mnuProfileList(Any) As MenuItem Ptr
mProfileName As WString Ptr
mProfileExt As WString Ptr = @WStr(".prf")
Declare Function ProfileDefLoad() As UString '获得默认Profile
Declare Function ProfileIdx(ByVal fDefNum As Integer = -1) As Integer '索引+1
Declare Function ProfileLoad(sFileName As WString, sKeyValue() As WString Ptr) As Boolean '加载Profile
Declare Sub Clock2Interface() '将时钟参数显示在界面上
Declare Sub FileName2Menu(sExt As WString) '将file名显示在Menu中
Declare Sub Profile2Clock(sKeyValue() As WString Ptr) '将Profile应用于时钟
Declare Sub ProfileDefSave() '存入默认Profile
Declare Sub ProfileFrmClock(sKeyValue() As WString Ptr) '从时钟中获得参数
Declare Sub ProfileInitial() '初始化Profile
Declare Sub ProfileRelease() '释放Profile资源
Declare Sub ProfileSave(sFileName As WString, sKeyValue() As WString Ptr) '存储Profile
Declare Sub Notify(Title As WString, Info As WString)
'Clock
mLocateHorizontal As Integer
mLocateVertical As Integer
mOpacity As UINT = &HFF
mScreenHeight As Integer
mScreenWidth As Integer
mShowDay As Boolean
mShowMonth As Boolean
mTextAlpha1 As ARGB = &HFF
mTextAlpha2 As ARGB = &HFF
mTextColor1 As ARGB = &HFF00FF
mTextColor2 As ARGB = &H00FFFF
mTransparent As Boolean
Declare Sub Transparent(v As Boolean)
Declare Sub PaintClock()
Declare Property IndexOfAnnouce() As Integer
Declare Property IndexOfAnnouce(v As Integer)
Declare Property IndexOfAudio() ByRef As WString
Declare Property IndexOfAudio(ByRef v As WString)
Declare Property IndexOfGradientMode() As Integer
Declare Property IndexOfGradientMode(v As Integer)
Declare Property IndexOfLocateH() As Integer
Declare Property IndexOfLocateH(v As Integer)
Declare Property IndexOfLocateV() As Integer
Declare Property IndexOfLocateV(v As Integer)
Declare Property IndexOfTextColor() As Integer
Declare Property IndexOfTextColor(v As Integer)
Declare Property IndexOfVoice() ByRef As WString
Declare Property IndexOfVoice(ByRef v As WString)
Declare Sub TimerComponent1_Timer(ByRef Sender As TimerComponent)
Declare Sub mnuMenu_Click(ByRef Sender As MenuItem)
Declare Sub Form_Resize(ByRef Sender As Control, NewWidth As Integer, NewHeight As Integer)
Declare Sub Form_MouseMove(ByRef Sender As Control, MouseButton As Integer, x As Integer, y As Integer, Shift As Integer)
Declare Sub Form_Create(ByRef Sender As Control)
Declare Sub Form_Message(ByRef Sender As Control, ByRef Msg As Message)
Declare Sub Form_Close(ByRef Sender As Form, ByRef Action As Integer)
Declare Sub TimerComponent2_Timer(ByRef Sender As TimerComponent)
Declare Sub Form_Paint(ByRef Sender As Control, ByRef Canvas As My.Sys.Drawing.Canvas)
Declare Sub Form_Move(ByRef Sender As Control)
Declare Sub Form_Show(ByRef Sender As Form)
Declare Sub Form_Click(ByRef Sender As Control)
Declare Sub Form_DropFile(ByRef Sender As Control, ByRef Filename As WString)
Declare Constructor
Dim As TimerComponent TimerComponent1, TimerComponent2
Dim As OpenFileDialog OpenFileDialog1
Dim As SaveFileDialog SaveFileDialog1
Dim As FontDialog FontDialog1
Dim As ColorDialog ColorDialog1
Dim As PopupMenu PopupMenu1
Dim As MenuItem mnuAnalogEnabled, mnuAnalogSetting, mnuAnalogBackFile, mnuAnalogTrayEnabled, mnuAnalogScaleEnabled, mnuBar2, mnuTextEnabled, mnuTextSetting, mnuTextShadow, mnuTextBlack, mnuTextRed, mnuTextGreen, mnuTextGradient, mnuTextShowSecond, mnuTextBlinkColon, MenuItem10, mnuAnalogTextEnabled, mnuAnalogHandEnabled, mnuTextWhite, mnuTextBlue, MenuItem2, mnuTextBackEnabled, MenuItem3, mnuBar3, mnuExit, mnuBar6, mnuTransparent, mnuAnalogSquare, mnuTextBorderEnabled, MenuItem9, mnuAbout, mnuBar5, mnuTextPanelEnabled, mnuBar4, mnuSpeechNow, mnuAnnounce, mnuBar1, mnuAutoStart, mnuClickThrough, mnuAlwaysOnTop, mnuVoice, mnuAudio, MenuItem13, mnuAnnounce1, mnuAnnounce3, mnuAnnounce2, mnuAnnounce0, mnuHide, mnuAnalogBackEnabled, mnuTextBackFile, mnuAnalogTextFont, MenuItem11, mnuTextFont, MenuItem12, mnuTextBorderColor, mnuTextColor1, MenuItem16, mnuTextColor2, mnuTextDirection, mnuTextPanelColor, MenuItem20, mnuTextGradientMode1, mnuTextGradientMode2, mnuTextGradientMode3, mnuTextGradientMode4, mnuTextPanelAlpha, mnuTextBorderSize, mnuTextBorderAlpha, MenuItem1, mnuAnalogBackBlur, mnuAnalogBackAlpha, mnuAnalogTextAlpha, mnuAnalogTextBlur
Dim As MenuItem MenuItem4, MenuItem5, mnuAnalogTrayBlur, mnuAnalogTrayAlpha, mnuAnalogScaleBlur, mnuAnalogScaleAlpha, mnuAnalogHandBlur, mnuAnalogHandAlpha, mnuAnalogTextFormat, mnuOpacityValue, mnuAnalogScaleColor, mnuAnalogHandMinute, mnuAnalogHandSecond, mnuAnalogHandHour, mnuProfileMain, MenuItem7, mnuProfileSaveAs, mnuTextBackAlpha, mnuTextBackBlur, mnuTextAlpha1, mnuTextBlur, mnuTest, mnuMonthEnabled, mnuDayEnabled, mnuTextAlpha2, mnuLocate, MenuItem6, mnuLocateReset, mnuLocateRight, mnuLocateLeft, mnuLocateHorizontalMiddle, MenuItem8, MenuItem15, mnuLocateTop, mnuLocateVerticalMiddle, mnuLocateBottom, mnuAspectRatio, MenuItem14, MenuItem17, mnuDaySetting, mnuMonthSetting, mnuDayTextFont, MenuItem21, mnuDaySplit, MenuItem23, mnuDayStyle0, mnuDayStyle1, mnuDayStyle2, MenuItem27, mnuDayBackEnabled, mnuDayBackFile, mnuDayBackAlpha, mnuDayBackBlur, MenuItem32, mnuDayTrayEnabled, mnuMonthControl
Dim As MenuItem mnuMonthWeek, MenuItem22, mnuMonthTrayEnabled, MenuItem26, mnuMonthTextFont, MenuItem30, mnuMonthBackEnabled, mnuMonthBackFile, mnuMonthBackAlpha, mnuMonthBackBlur, mnuAnalogHandSecondEnabled, mnuAnalogHandMinuteEnabled, mnuAnalogHandHourEnabled, mnuAnalogTrayFC1, mnuAnalogTrayFC2, mnuAnalogTrayFA1, mnuAnalogTrayFA2, mnuAnalogTrayEC1, mnuAnalogTrayEC2, mnuAnalogTrayEA2, mnuAnalogTrayEA1, mnuAnalogTraySC, mnuAnalogTraySA, mnuAnalogTextColor, mnuAnalogTextX, mnuAnalogTextY, mnuAnalogTraySetting, mnuAnalogHandSetting, mnuAnalogTextSetting, mnuAnalogTextSize, mnuDayFCWeek, mnuDayFCFocus, mnuDayFCYear, mnuDayFCMonth, mnuDayFCDay, mnuDayBCWeek, mnuDayBCFocus, mnuDayBCYear, mnuDayBCMonth, mnuDayBCDay, mnuMonthFCFocus, mnuMonthFCControl, mnuMonthFCWeek, mnuMonthFCDay, mnuMonthFCSelect, mnuMonthFCHoliday, mnuMonthBCFocus, mnuMonthBCControl, mnuMonthBCWeek, mnuMonthBCDay, mnuMonthFCToday, mnuLocateSticky, mnuTextOutlineSize, mnuTextOutlineColor, mnuTextOutlineAlpha
Dim As MenuItem mnuAnalogOutlineAlpha, mnuAnalogOutlineSize, mnuAnalogOutlineColor, mnuAnalogPanelColor, mnuAnalogPanelAlpha, mnuTextOutlineEnabled, MenuItem24, MenuItem19, mnuAnalogPanelEnabled, MenuItem28, mnuAnalogOutlineEnabled, MenuItem18, mnuDayPanelEnabled, mnuDayPanelColor, mnuDayPanelAlpha, MenuItem33, mnuDayOutlineEnabled, mnuDayOutlineSize, mnuDayOutlineColor, mnuDayOutlineAlpha, MenuItem38, mnuMonthPanelEnabled, mnuMonthPanelColor, mnuMonthPanelAlpha, MenuItem42, mnuMonthOutlineEnabled, mnuMonthOutlineSize, mnuMonthOutlineColor, mnuMonthOutlineAlpha, mnuProfileSave, mnuProfileSaveOnExit, mnuDayForeColor, mnuDayTrayColor, mnuMonthForeColor, mnuMonthTrayColor, mnuMonthTrayAlpha, mnuDayTrayAlpha, mnuMonthBCSelect, mnuMonthBAFocus, mnuMonthBAControl, mnuMonthBAWeek, mnuMonthBADay, mnuMonthBASelect, mnuDayBADay, mnuDayBAYear, mnuDayBAWeek, mnuDayBAMonth, mnuDayBAFocus, MenuItem25, mnuProfileResetDefault
End Type
Constructor frmClockType
' frmClock
With This
.Name = "frmClock"
.Text = "GDIP Clock"
.Designer = @This
.Caption = "GDIP Clock"
.ContextMenu = @PopupMenu1
.OnResize = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As Control, NewWidth As Integer, NewHeight As Integer), @Form_Resize)
.OnMouseMove = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As Control, MouseButton As Integer, x As Integer, y As Integer, Shift As Integer), @Form_MouseMove)
.OnCreate = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As Control), @Form_Create)
.OnMessage = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As Control, ByRef Msg As Message), @Form_Message)
.OnClose = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As Form, ByRef Action As Integer), @Form_Close)
.Icon = "1"
.OnPaint = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As Control, ByRef Canvas As My.Sys.Drawing.Canvas), @Form_Paint)
.OnMove = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As Control), @Form_Move)
.OnShow = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As Form), @Form_Show)
.ShowCaption = False
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As Control), @Form_Click)
.OnDropFile = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As Control, ByRef Filename As WString), @Form_DropFile)
.AllowDrop = True
.SetBounds 0, 0, 240, 200
End With
' TimerComponent1
With TimerComponent1
.Name = "TimerComponent1"
.Interval = 50
.Enabled = False
.SetBounds 10, 10, 16, 16
.Designer = @This
.OnTimer = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As TimerComponent), @TimerComponent1_Timer)
.Parent = @This
End With
' TimerComponent2
With TimerComponent2
.Name = "TimerComponent2"
.Interval = 500
.SetBounds 30, 10, 16, 16
.Designer = @This
.OnTimer = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As TimerComponent), @TimerComponent2_Timer)
.Parent = @This
End With
' PopupMenu1
With PopupMenu1
.Name = "PopupMenu1"
.SetBounds 150, 10, 16, 16
.Designer = @This
.Parent = @This
End With
' OpenFileDialog1
With OpenFileDialog1
.Name = "OpenFileDialog1"
.SetBounds 60, 10, 16, 16
.Designer = @This
.Parent = @This
End With
' SaveFileDialog1
With SaveFileDialog1
.Name = "SaveFileDialog1"
.SetBounds 80, 10, 16, 16
.Designer = @This
.Parent = @This
End With
' FontDialog1
With FontDialog1
.Name = "FontDialog1"
.SetBounds 110, 10, 16, 16
.Designer = @This
.Parent = @This
End With
' ColorDialog1
With ColorDialog1
.Name = "ColorDialog1"
.SetBounds 130, 10, 16, 16
.Designer = @This
.Parent = @This
End With
' mnuAutoStart
With mnuAutoStart
.Name = "mnuAutoStart"
.Designer = @This
.Caption = "Auto start"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @PopupMenu1
End With
' mnuAlwaysOnTop
With mnuAlwaysOnTop
.Name = "mnuAlwaysOnTop"
.Designer = @This
.Caption = "Always on top"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @PopupMenu1
End With
' mnuClickThrough
With mnuClickThrough
.Name = "mnuClickThrough"
.Designer = @This
.Caption = "Click through"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @PopupMenu1
End With
' mnuBar1
With mnuBar1
.Name = "mnuBar1"
.Designer = @This
.Caption = "-"
.Parent = @PopupMenu1
End With
' mnuLocate
With mnuLocate
.Name = "mnuLocate"
.Designer = @This
.Caption = "Locate"
.Parent = @PopupMenu1
End With
' mnuBar3
With mnuBar3
.Name = "mnuBar3"
.Designer = @This
.Caption = "-"
.Parent = @PopupMenu1
End With
' mnuAnalogEnabled
With mnuAnalogEnabled
.Name = "mnuAnalogEnabled"
.Designer = @This
.Caption = !"Analog\tCtrl+A"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @PopupMenu1
End With
' mnuAnalogSetting
With mnuAnalogSetting
.Name = "mnuAnalogSetting"
.Designer = @This
.Caption = "Setting"
.Enabled = False
.Parent = @PopupMenu1
End With
' mnuAnalogSquare
With mnuAnalogSquare
.Name = "mnuAnalogSquare"
.Designer = @This
.Caption = "Square"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogSetting
End With
' MenuItem1
With MenuItem1
.Name = "MenuItem1"
.Designer = @This
.Caption = "-"
.Parent = @mnuAnalogSetting
End With
' mnuAnalogBackEnabled
With mnuAnalogBackEnabled
.Name = "mnuAnalogBackEnabled"
.Designer = @This
.Caption = "Background"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogSetting
End With
' mnuAnalogBackFile
With mnuAnalogBackFile
.Name = "mnuAnalogBackFile"
.Designer = @This
.Caption = "File"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogSetting
End With
' mnuAnalogBackAlpha
With mnuAnalogBackAlpha
.Name = "mnuAnalogBackAlpha"
.Designer = @This
.Caption = "Alpha"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogSetting
End With
' mnuAnalogBackBlur
With mnuAnalogBackBlur
.Name = "mnuAnalogBackBlur"
.Designer = @This
.Caption = "Blur"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogSetting
End With
' MenuItem3
With MenuItem3
.Name = "MenuItem3"
.Designer = @This
.Caption = "-"
.Parent = @mnuAnalogSetting
End With
' mnuAnalogPanelEnabled
With mnuAnalogPanelEnabled
.Name = "mnuAnalogPanelEnabled"
.Designer = @This
.Caption = "Panel"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogSetting
End With
' mnuAnalogPanelColor
With mnuAnalogPanelColor
.Name = "mnuAnalogPanelColor"
.Designer = @This
.Caption = "Back color"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogSetting
End With
' mnuAnalogPanelAlpha
With mnuAnalogPanelAlpha
.Name = "mnuAnalogPanelAlpha"
.Designer = @This
.Caption = "Back alpha"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogSetting
End With
' MenuItem28
With MenuItem28
.Name = "MenuItem28"
.Designer = @This
.Caption = "-"
.Parent = @mnuAnalogSetting
End With
' mnuAnalogOutlineEnabled
With mnuAnalogOutlineEnabled
.Name = "mnuAnalogOutlineEnabled"
.Designer = @This
.Caption = "Outline"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogSetting
End With
' mnuAnalogOutlineSize
With mnuAnalogOutlineSize
.Name = "mnuAnalogOutlineSize"
.Designer = @This
.Caption = "Size"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogSetting
End With
' mnuAnalogOutlineColor
With mnuAnalogOutlineColor
.Name = "mnuAnalogOutlineColor"
.Designer = @This
.Caption = "Color"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogSetting
End With
' mnuAnalogOutlineAlpha
With mnuAnalogOutlineAlpha
.Name = "mnuAnalogOutlineAlpha"
.Designer = @This
.Caption = "Alpha"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogSetting
End With
' MenuItem19
With MenuItem19
.Name = "MenuItem19"
.Designer = @This
.Caption = "-"
.Parent = @mnuAnalogSetting
End With
' mnuAnalogTrayEnabled
With mnuAnalogTrayEnabled
.Name = "mnuAnalogTrayEnabled"
.Designer = @This
.Caption = "Tray"
.Checked = True
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogSetting
End With
' mnuAnalogTraySetting
With mnuAnalogTraySetting
.Name = "mnuAnalogTraySetting"
.Designer = @This
.Caption = "Setting"
.Parent = @mnuAnalogSetting
End With
' mnuAnalogTrayFC1
With mnuAnalogTrayFC1
.Name = "mnuAnalogTrayFC1"
.Designer = @This
.Caption = "Face color 1"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogTraySetting
End With
' mnuAnalogTrayFA1
With mnuAnalogTrayFA1
.Name = "mnuAnalogTrayFA1"
.Designer = @This
.Caption = "Face alpha 1"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogTraySetting
End With
' mnuAnalogTrayFC2
With mnuAnalogTrayFC2
.Name = "mnuAnalogTrayFC2"
.Designer = @This
.Caption = "Face color 2"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogTraySetting
End With
' mnuAnalogTrayFA2
With mnuAnalogTrayFA2
.Name = "mnuAnalogTrayFA2"
.Designer = @This
.Caption = "Face alpha 2"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogTraySetting
End With
' mnuAnalogTrayEC1
With mnuAnalogTrayEC1
.Name = "mnuAnalogTrayEC1"
.Designer = @This
.Caption = "Edge color 1"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogTraySetting
End With
' mnuAnalogTrayEA1
With mnuAnalogTrayEA1
.Name = "mnuAnalogTrayEA1"
.Designer = @This
.Caption = "Edge alpha 1"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogTraySetting
End With
' mnuAnalogTrayEC2
With mnuAnalogTrayEC2
.Name = "mnuAnalogTrayEC2"
.Designer = @This
.Caption = "Edge color 2"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogTraySetting
End With
' mnuAnalogTrayEA2
With mnuAnalogTrayEA2
.Name = "mnuAnalogTrayEA2"
.Designer = @This
.Caption = "Edge alpha 2"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogTraySetting
End With
' mnuAnalogTraySC
With mnuAnalogTraySC
.Name = "mnuAnalogTraySC"
.Designer = @This
.Caption = "Shadow color"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogTraySetting
End With
' mnuAnalogTraySA
With mnuAnalogTraySA
.Name = "mnuAnalogTraySA"
.Designer = @This
.Caption = "Shadow alpha"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogTraySetting
End With
' MenuItem25
With MenuItem25
.Name = "MenuItem25"
.Designer = @This
.Caption = "-"
.Parent = @mnuAnalogTraySetting
End With
' mnuAnalogTrayAlpha
With mnuAnalogTrayAlpha
.Name = "mnuAnalogTrayAlpha"
.Designer = @This
.Caption = "Alpha"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogTraySetting
End With
' mnuAnalogTrayBlur
With mnuAnalogTrayBlur
.Name = "mnuAnalogTrayBlur"
.Designer = @This
.Caption = "Blur"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogTraySetting
End With
' MenuItem4
With MenuItem4
.Name = "MenuItem4"
.Designer = @This
.Caption = "-"
.Parent = @mnuAnalogSetting
End With
' mnuAnalogScaleEnabled
With mnuAnalogScaleEnabled
.Name = "mnuAnalogScaleEnabled"
.Designer = @This
.Caption = "Scale"
.Checked = True
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogSetting
End With
' mnuAnalogScaleColor
With mnuAnalogScaleColor
.Name = "mnuAnalogScaleColor"
.Designer = @This
.Caption = "Color"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogSetting
End With
' mnuAnalogScaleAlpha
With mnuAnalogScaleAlpha
.Name = "mnuAnalogScaleAlpha"
.Designer = @This
.Caption = "Alpha"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogSetting
End With
' mnuAnalogScaleBlur
With mnuAnalogScaleBlur
.Name = "mnuAnalogScaleBlur"
.Designer = @This
.Caption = "Blur"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogSetting
End With
' MenuItem5
With MenuItem5
.Name = "MenuItem5"
.Designer = @This
.Caption = "-"
.Parent = @mnuAnalogSetting
End With
' mnuAnalogHandEnabled
With mnuAnalogHandEnabled
.Name = "mnuAnalogHandEnabled"
.Designer = @This
.Caption = "Hand"
.Checked = True
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogSetting
End With
' mnuAnalogHandSetting
With mnuAnalogHandSetting
.Name = "mnuAnalogHandSetting"
.Designer = @This
.Caption = "Setting"
.Parent = @mnuAnalogSetting
End With
' mnuAnalogHandSecondEnabled
With mnuAnalogHandSecondEnabled
.Name = "mnuAnalogHandSecondEnabled"
.Designer = @This
.Caption = "Second"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogHandSetting
End With
' mnuAnalogHandSecond
With mnuAnalogHandSecond
.Name = "mnuAnalogHandSecond"
.Designer = @This
.Caption = "Second"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogHandSetting
End With
' mnuAnalogHandMinuteEnabled
With mnuAnalogHandMinuteEnabled
.Name = "mnuAnalogHandMinuteEnabled"
.Designer = @This
.Caption = "Minute"
.Checked = True
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogHandSetting
End With
' mnuAnalogHandMinute
With mnuAnalogHandMinute
.Name = "mnuAnalogHandMinute"
.Designer = @This
.Caption = "Minute"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogHandSetting
End With
' mnuAnalogHandHourEnabled
With mnuAnalogHandHourEnabled
.Name = "mnuAnalogHandHourEnabled"
.Designer = @This
.Caption = "Hour"
.Checked = True
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogHandSetting
End With
' mnuAnalogHandHour
With mnuAnalogHandHour
.Name = "mnuAnalogHandHour"
.Designer = @This
.Caption = "Hour"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogHandSetting
End With
' mnuAnalogHandAlpha
With mnuAnalogHandAlpha
.Name = "mnuAnalogHandAlpha"
.Designer = @This
.Caption = "Alpha"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogHandSetting
End With
' mnuAnalogHandBlur
With mnuAnalogHandBlur
.Name = "mnuAnalogHandBlur"
.Designer = @This
.Caption = "Blur"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogHandSetting
End With
' MenuItem12
With MenuItem12
.Name = "MenuItem12"
.Designer = @This
.Caption = "-"
.Parent = @mnuAnalogSetting
End With
' mnuAnalogTextEnabled
With mnuAnalogTextEnabled
.Name = "mnuAnalogTextEnabled"
.Designer = @This
.Caption = "Text"
.Checked = True
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogSetting
End With
' mnuAnalogTextSetting
With mnuAnalogTextSetting
.Name = "mnuAnalogTextSetting"
.Designer = @This
.Caption = "Setting"
.Parent = @mnuAnalogSetting
End With
' mnuAnalogTextSize
With mnuAnalogTextSize
.Name = "mnuAnalogTextSize"
.Designer = @This
.Caption = "Size"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogTextSetting
End With
' mnuAnalogTextFont
With mnuAnalogTextFont
.Name = "mnuAnalogTextFont"
.Designer = @This
.Caption = "Text"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogTextSetting
End With
' mnuAnalogTextColor
With mnuAnalogTextColor
.Name = "mnuAnalogTextColor"
.Designer = @This
.Caption = "Color"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogTextSetting
End With
' mnuAnalogTextFormat
With mnuAnalogTextFormat
.Name = "mnuAnalogTextFormat"
.Designer = @This
.Caption = "Format"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogTextSetting
End With
' mnuAnalogTextX
With mnuAnalogTextX
.Name = "mnuAnalogTextX"
.Designer = @This
.Caption = "X"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogTextSetting
End With
' mnuAnalogTextY
With mnuAnalogTextY
.Name = "mnuAnalogTextY"
.Designer = @This
.Caption = "Y"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogTextSetting
End With
' mnuAnalogTextAlpha
With mnuAnalogTextAlpha
.Name = "mnuAnalogTextAlpha"
.Designer = @This
.Caption = "Alpha"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogTextSetting
End With
' mnuAnalogTextBlur
With mnuAnalogTextBlur
.Name = "mnuAnalogTextBlur"
.Designer = @This
.Caption = "Blur"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnalogTextSetting
End With
' mnuBar2
With mnuBar2
.Name = "mnuBar2"
.Designer = @This
.Caption = "-"
.Parent = @PopupMenu1
End With
' mnuTextEnabled
With mnuTextEnabled
.Name = "mnuTextEnabled"
.Designer = @This
.Caption = !"Text\tCtrl+E"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Checked = True
.Parent = @PopupMenu1
End With
' mnuTextSetting
With mnuTextSetting
.Name = "mnuTextSetting"
.Designer = @This
.Caption = "Setting"
.Enabled = False
.Parent = @PopupMenu1
End With
' mnuTextShowSecond
With mnuTextShowSecond
.Name = "mnuTextShowSecond"
.Designer = @This
.Caption = "Show Second"
.Checked = True
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuTextSetting
End With
' mnuTextBlinkColon
With mnuTextBlinkColon
.Name = "mnuTextBlinkColon"
.Designer = @This
.Caption = "Blink colon"
.Checked = True
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuTextSetting
End With
' mnuTextShadow
With mnuTextShadow
.Name = "mnuTextShadow"
.Designer = @This
.Caption = "Shadow"
.Checked = True
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuTextSetting
End With
' MenuItem24
With MenuItem24
.Name = "MenuItem24"
.Designer = @This
.Caption = "-"
.Parent = @mnuTextSetting
End With
' mnuTextBackEnabled
With mnuTextBackEnabled
.Name = "mnuTextBackEnabled"
.Designer = @This
.Caption = "Background"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuTextSetting
End With
' mnuTextBackFile
With mnuTextBackFile
.Name = "mnuTextBackFile"
.Designer = @This
.Caption = "File"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuTextSetting
End With
' mnuTextBackAlpha
With mnuTextBackAlpha
.Name = "mnuTextBackAlpha"
.Designer = @This
.Caption = "Alpha"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuTextSetting
End With
' mnuTextBackBlur
With mnuTextBackBlur
.Name = "mnuTextBackBlur"
.Designer = @This
.Caption = "Blur"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuTextSetting
End With
' MenuItem11
With MenuItem11
.Name = "MenuItem11"
.Designer = @This
.Caption = "-"
.Parent = @mnuTextSetting
End With
' mnuTextPanelEnabled
With mnuTextPanelEnabled
.Name = "mnuTextPanelEnabled"
.Designer = @This
.Caption = "Panel"
.Checked = True
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuTextSetting
End With
' mnuTextPanelColor
With mnuTextPanelColor
.Name = "mnuTextPanelColor"
.Designer = @This
.Caption = "Color"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuTextSetting
End With
' mnuTextPanelAlpha
With mnuTextPanelAlpha
.Name = "mnuTextPanelAlpha"
.Designer = @This
.Caption = "Alpha"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuTextSetting
End With
' MenuItem20
With MenuItem20
.Name = "MenuItem20"
.Designer = @This
.Caption = "-"
.Parent = @mnuTextSetting
End With
' mnuTextOutlineEnabled
With mnuTextOutlineEnabled
.Name = "mnuTextOutlineEnabled"
.Designer = @This
.Caption = "Outline"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuTextSetting
End With
' mnuTextOutlineSize
With mnuTextOutlineSize
.Name = "mnuTextOutlineSize"
.Designer = @This
.Caption = "Size"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuTextSetting
End With
' mnuTextOutlineColor
With mnuTextOutlineColor
.Name = "mnuTextOutlineColor"
.Designer = @This
.Caption = "Color"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuTextSetting
End With
' mnuTextOutlineAlpha
With mnuTextOutlineAlpha
.Name = "mnuTextOutlineAlpha"
.Designer = @This
.Caption = "Alpha"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuTextSetting
End With
' MenuItem9
With MenuItem9
.Name = "MenuItem9"
.Designer = @This
.Caption = "-"
.Parent = @mnuTextSetting
End With
' mnuTextBorderEnabled
With mnuTextBorderEnabled
.Name = "mnuTextBorderEnabled"
.Designer = @This
.Caption = "Border"
.Checked = True
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuTextSetting
End With
' mnuTextBorderSize
With mnuTextBorderSize
.Name = "mnuTextBorderSize"
.Designer = @This
.Caption = "Size"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuTextSetting
End With
' mnuTextBorderAlpha
With mnuTextBorderAlpha
.Name = "mnuTextBorderAlpha"
.Designer = @This
.Caption = "Alpha"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuTextSetting
End With
' mnuTextBorderColor
With mnuTextBorderColor
.Name = "mnuTextBorderColor"
.Designer = @This
.Caption = "Color"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuTextSetting
End With
' MenuItem10
With MenuItem10
.Name = "MenuItem10"
.Designer = @This
.Caption = "-"
.Parent = @mnuTextSetting
End With
With mnuTextFont
.Name = "mnuTextFont"
.Designer = @This
.Caption = "Text"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuTextSetting
End With
' mnuTextBlur
With mnuTextBlur
.Name = "mnuTextBlur"
.Designer = @This
.Caption = "Blur"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuTextSetting
End With
' mnuTextAlpha1
With mnuTextAlpha1
.Name = "mnuTextAlpha1"
.Designer = @This
.Caption = "Alpha 1"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuTextSetting
End With
' mnuTextAlpha2
With mnuTextAlpha2
.Name = "mnuTextAlpha2"
.Designer = @This
.Caption = "Alpha 2"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuTextSetting
End With
' MenuItem2
With MenuItem2
.Name = "MenuItem2"
.Designer = @This
.Caption = "-"
.Parent = @mnuTextSetting
End With
' mnuTextGradient
With mnuTextGradient
.Name = "mnuTextGradient"
.Designer = @This
.Caption = "Gradient"
.Checked = True
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuTextSetting
End With
' mnuTextColor1
With mnuTextColor1
.Name = "mnuTextColor1"
.Designer = @This
.Caption = "Color 1"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuTextSetting
End With
' mnuTextColor2
With mnuTextColor2
.Name = "mnuTextColor2"
.Designer = @This
.Caption = "Color 2"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuTextSetting
End With
' mnuTextDirection
With mnuTextDirection
.Name = "mnuTextDirection"
.Designer = @This
.Caption = "Mode"
.Parent = @mnuTextSetting
End With
' MenuItem16
With MenuItem16
.Name = "MenuItem16"
.Designer = @This
.Caption = "-"
.Parent = @mnuTextSetting
End With
' mnuTextWhite
With mnuTextWhite
.Name = "mnuTextWhite"
.Designer = @This
.Caption = "White"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuTextSetting
End With
' mnuTextBlack
With mnuTextBlack
.Name = "mnuTextBlack"
.Designer = @This
.Caption = "Black"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuTextSetting
End With
' mnuTextRed
With mnuTextRed
.Name = "mnuTextRed"
.Designer = @This
.Caption = "Red"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuTextSetting
End With
' mnuTextGreen
With mnuTextGreen
.Name = "mnuTextGreen"
.Designer = @This
.Caption = "Green"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuTextSetting
End With
' mnuTextBlue
With mnuTextBlue
.Name = "mnuTextBlue"
.Designer = @This
.Caption = "Blue"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuTextSetting
End With
' mnuTextGradientMode1
With mnuTextGradientMode1
.Name = "mnuTextGradientMode1"
.Designer = @This
.Caption = "Horizontal"
.Checked = True
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuTextDirection
End With
' mnuTextGradientMode2
With mnuTextGradientMode2
.Name = "mnuTextGradientMode2"
.Designer = @This
.Caption = "Vertical"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuTextDirection
End With
' mnuTextGradientMode3
With mnuTextGradientMode3
.Name = "mnuTextGradientMode3"
.Designer = @This
.Caption = "Forward"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuTextDirection
End With
' mnuTextGradientMode4
With mnuTextGradientMode4
.Name = "mnuTextGradientMode4"
.Designer = @This
.Caption = "Backward"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuTextDirection
End With
' mnuLocateReset
With mnuLocateReset
.Name = "mnuLocateReset"
.Designer = @This
.Caption = "Reset"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuLocate
End With
' mnuLocateSticky
With mnuLocateSticky
.Name = "mnuLocateSticky"
.Designer = @This
.Caption = "Sticky"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Checked = True
.Parent = @mnuLocate
End With
' MenuItem8
With MenuItem8
.Name = "MenuItem8"
.Designer = @This
.Caption = "-"
.Parent = @mnuLocate
End With
' mnuLocateLeft
With mnuLocateLeft
.Name = "mnuLocateLeft"
.Designer = @This
.Caption = "Left"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuLocate
End With
' mnuLocateHorizontalMiddle
With mnuLocateHorizontalMiddle
.Name = "mnuLocateHorizontalMiddle"
.Designer = @This
.Caption = "Middle"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuLocate
End With
' mnuLocateRight
With mnuLocateRight
.Name = "mnuLocateRight"
.Designer = @This
.Caption = "Right"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuLocate
End With
' MenuItem15
With MenuItem15
.Name = "MenuItem15"
.Designer = @This
.Caption = "-"
.Parent = @mnuLocate
End With
' mnuLocateTop
With mnuLocateTop
.Name = "mnuLocateTop"
.Designer = @This
.Caption = "Top"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuLocate
End With
' mnuLocateVerticalMiddle
With mnuLocateVerticalMiddle
.Name = "mnuLocateVerticalMiddle"
.Designer = @This
.Caption = "Middle"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuLocate
End With
' mnuLocateBottom
With mnuLocateBottom
.Name = "mnuLocateBottom"
.Designer = @This
.Caption = "Bottom"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuLocate
End With
' MenuItem14
With MenuItem14
.Name = "MenuItem14"
.Designer = @This
.Caption = "-"
.Parent = @PopupMenu1
End With
' mnuDayEnabled
With mnuDayEnabled
.Name = "mnuDayEnabled"
.Designer = @This
.Caption = !"Day\tCtrl+D"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @PopupMenu1
End With
' mnuDaySetting
With mnuDaySetting
.Name = "mnuDaySetting"
.Designer = @This
.Caption = "Setting"
.Enabled = True
.Parent = @PopupMenu1
End With
' MenuItem17
With MenuItem17
.Name = "MenuItem17"
.Designer = @This
.Caption = "-"
.Parent = @PopupMenu1
End With
' mnuMonthEnabled
With mnuMonthEnabled
.Name = "mnuMonthEnabled"
.Designer = @This
.Caption = !"Month\tCtrl+M"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @PopupMenu1
End With
' mnuMonthSetting
With mnuMonthSetting
.Name = "mnuMonthSetting"
.Designer = @This
.Caption = "Setting"
.Enabled = True
.Parent = @PopupMenu1
End With
' MenuItem6
With MenuItem6
.Name = "MenuItem6"
.Designer = @This
.Caption = "-"
.Parent = @PopupMenu1
End With
' mnuAspectRatio
With mnuAspectRatio
.Name = "mnuAspectRatio"
.Designer = @This
.Caption = "Aspect ratio"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @PopupMenu1
End With
' mnuTransparent
With mnuTransparent
.Name = "mnuTransparent"
.Designer = @This
.Caption = !"Transparent\tCtrl+T"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @PopupMenu1
End With
' mnuOpacityValue
With mnuOpacityValue
.Name = "mnuOpacityValue"
.Designer = @This
.Caption = !"Opacity\tCtrl+O"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @PopupMenu1
End With
' mnuHide
With mnuHide
.Name = "mnuHide"
.Designer = @This
.Caption = "Hide"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @PopupMenu1
End With
' mnuBar4
With mnuBar4
.Name = "mnuBar4"
.Designer = @This
.Caption = "-"
.Parent = @PopupMenu1
End With
' mnuAnnounce
With mnuAnnounce
.Name = "mnuAnnounce"
.Designer = @This
.Caption = "Announce"
.Enabled = False
.Parent = @PopupMenu1
End With
' mnuSpeechNow
With mnuSpeechNow
.Name = "mnuSpeechNow"
.Designer = @This
.Caption = "Speech time"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @PopupMenu1
End With
' mnuVoice
With mnuVoice
.Name = "mnuVoice"
.Designer = @This
.Caption = "Voice"
.Enabled = False
.Parent = @mnuAnnounce
End With
' mnuAudio
With mnuAudio
.Name = "mnuAudio"
.Designer = @This
.Caption = "Audio"
.Enabled = False
.Parent = @mnuAnnounce
End With
' MenuItem13
With MenuItem13
.Name = "MenuItem13"
.Designer = @This
.Caption = "-"
.Parent = @mnuAnnounce
End With
' mnuAnnounce0
With mnuAnnounce0
.Name = "mnuAnnounce0"
.Designer = @This
.Caption = "None"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnnounce
End With
' mnuAnnounce1
With mnuAnnounce1
.Name = "mnuAnnounce1"
.Designer = @This
.Caption = "Hourly"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnnounce
End With
' mnuAnnounce2
With mnuAnnounce2
.Name = "mnuAnnounce2"
.Designer = @This
.Caption = "Half hour"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnnounce
End With
' mnuAnnounce3
With mnuAnnounce3
.Name = "mnuAnnounce3"
.Designer = @This
.Caption = "Quarter hour"
.Checked = True
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuAnnounce
End With
' mnuBar5
With mnuBar5
.Name = "mnuBar5"
.Designer = @This
.Caption = "-"
.Parent = @PopupMenu1
End With
' mnuProfileMain
With mnuProfileMain
.Name = "mnuProfileMain"
.Designer = @This
.Caption = "Profile"
.Enabled = True
.Parent = @PopupMenu1
End With
' mnuProfileSaveOnExit
With mnuProfileSaveOnExit
.Name = "mnuProfileSaveOnExit"
.Designer = @This
.Caption = "Save on exit"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Checked = True
.Parent = @PopupMenu1
End With
' mnuProfileResetDefault
With mnuProfileResetDefault
.Name = "mnuProfileResetDefault"
.Designer = @This
.Caption = "Reset default"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @PopupMenu1
End With
' mnuProfileSave
With mnuProfileSave
.Name = "mnuProfileSave"
.Designer = @This
.Caption = "Save"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuProfileMain
End With
' mnuProfileSaveAs
With mnuProfileSaveAs
.Name = "mnuProfileSaveAs"
.Designer = @This
.Caption = "Save as"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuProfileMain
End With
' MenuItem7
With MenuItem7
.Name = "MenuItem7"
.Designer = @This
.Caption = "-"
.Parent = @PopupMenu1
End With
' mnuAbout
With mnuAbout
.Name = "mnuAbout"
.Designer = @This
.Caption = "About"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @PopupMenu1
End With
' mnuTest
With mnuTest
.Name = "mnuTest"
.Designer = @This
.Caption = "Test"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @PopupMenu1
End With
' mnuBar6
With mnuBar6
.Name = "mnuBar6"
.Designer = @This
.Caption = "-"
.Parent = @PopupMenu1
End With
' mnuExit
With mnuExit
.Name = "mnuExit"
.Designer = @This
.Caption = "Exit"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @PopupMenu1
End With
' mnuDaySplit
With mnuDaySplit
.Name = "mnuDaySplit"
.Designer = @This
.Caption = "Split"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuDaySetting
End With
' MenuItem21
With MenuItem21
.Name = "MenuItem21"
.Designer = @This
.Caption = "-"
.Parent = @mnuDaySetting
End With
' mnuDayStyle0
With mnuDayStyle0
.Name = "mnuDayStyle0"
.Designer = @This
.Caption = "Both"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuDaySetting
End With
' mnuDayStyle1
With mnuDayStyle1
.Name = "mnuDayStyle1"
.Designer = @This
.Caption = "Gregorian"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuDaySetting
End With
' mnuDayStyle2
With mnuDayStyle2
.Name = "mnuDayStyle2"
.Designer = @This
.Caption = "Lunar"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuDaySetting
End With
' MenuItem23
With MenuItem23
.Name = "MenuItem23"
.Designer = @This
.Caption = "-"
.Parent = @mnuDaySetting
End With
' mnuDayTextFont
With mnuDayTextFont
.Name = "mnuDayTextFont"
.Designer = @This
.Caption = "Font"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuDaySetting
End With
' mnuDayForeColor
With mnuDayForeColor
.Name = "mnuDayForeColor"
.Designer = @This
.Caption = "Color"
.Parent = @mnuDaySetting
End With
' mnuDayFCFocus
With mnuDayFCFocus
.Name = "mnuDayFCFocus"
.Designer = @This
.Caption = "Focus"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuDayForeColor
End With
' mnuDayFCYear
With mnuDayFCYear
.Name = "mnuDayFCYear"
.Designer = @This
.Caption = "Year"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuDayForeColor
End With
' mnuDayFCMonth
With mnuDayFCMonth
.Name = "mnuDayFCMonth"
.Designer = @This
.Caption = "Month"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuDayForeColor
End With
' mnuDayFCDay
With mnuDayFCDay
.Name = "mnuDayFCDay"
.Designer = @This
.Caption = "Day"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuDayForeColor
End With
' mnuDayFCWeek
With mnuDayFCWeek
.Name = "mnuDayFCWeek"
.Designer = @This
.Caption = "Week"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuDayForeColor
End With
' MenuItem32
With MenuItem32
.Name = "MenuItem32"
.Designer = @This
.Caption = "-"
.Parent = @mnuDaySetting
End With
' mnuDayTrayEnabled
With mnuDayTrayEnabled
.Name = "mnuDayTrayEnabled"
.Designer = @This
.Caption = "Tray"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuDaySetting
End With
' mnuDayTrayColor
With mnuDayTrayColor
.Name = "mnuDayTrayColor"
.Designer = @This
.Caption = "Color"
.Parent = @mnuDaySetting
End With
' mnuDayBCFocus
With mnuDayBCFocus
.Name = "mnuDayBCFocus"
.Designer = @This
.Caption = "Focus"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuDayTrayColor
End With
' mnuDayBCYear
With mnuDayBCYear
.Name = "mnuDayBCYear"
.Designer = @This
.Caption = "Year"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuDayTrayColor
End With
' mnuDayBCMonth
With mnuDayBCMonth
.Name = "mnuDayBCMonth"
.Designer = @This
.Caption = "Month"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuDayTrayColor
End With
' mnuDayBCDay
With mnuDayBCDay
.Name = "mnuDayBCDay"
.Designer = @This
.Caption = "Day"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuDayTrayColor
End With
' mnuDayBCWeek
With mnuDayBCWeek
.Name = "mnuDayBCWeek"
.Designer = @This
.Caption = "Week"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuDayTrayColor
End With
' mnuDayTrayAlpha
With mnuDayTrayAlpha
.Name = "mnuDayTrayAlpha"
.Designer = @This
.Caption = "Alpha"
.Parent = @mnuDaySetting
End With
' MenuItem27
With MenuItem27
.Name = "MenuItem27"
.Designer = @This
.Caption = "-"
.Parent = @mnuDaySetting
End With
' mnuDayBackEnabled
With mnuDayBackEnabled
.Name = "mnuDayBackEnabled"
.Designer = @This
.Caption = "Background"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuDaySetting
End With
' mnuDayBackFile
With mnuDayBackFile
.Name = "mnuDayBackFile"
.Designer = @This
.Caption = "File"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuDaySetting
End With
' mnuDayBackAlpha
With mnuDayBackAlpha
.Name = "mnuDayBackAlpha"
.Designer = @This
.Caption = "Aplha"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuDaySetting
End With
' mnuDayBackBlur
With mnuDayBackBlur
.Name = "mnuDayBackBlur"
.Designer = @This
.Caption = "Blur"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuDaySetting
End With
' mnuMonthControl
With mnuMonthControl
.Name = "mnuMonthControl"
.Designer = @This
.Caption = "Show controls"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuMonthSetting
End With
' mnuMonthWeek
With mnuMonthWeek
.Name = "mnuMonthWeek"
.Designer = @This
.Caption = "Show weeks"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuMonthSetting
End With
' MenuItem22
With MenuItem22
.Name = "MenuItem22"
.Designer = @This
.Caption = "-"
.Parent = @mnuMonthSetting
End With
' mnuMonthTextFont
With mnuMonthTextFont
.Name = "mnuMonthTextFont"
.Designer = @This
.Caption = "Font"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuMonthSetting
End With
' mnuMonthForeColor
With mnuMonthForeColor
.Name = "mnuMonthForeColor"
.Designer = @This
.Caption = "Color"
.Parent = @mnuMonthSetting
End With
' mnuMonthFCFocus
With mnuMonthFCFocus
.Name = "mnuMonthFCFocus"
.Designer = @This
.Caption = "Focus"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuMonthForeColor
End With
' mnuMonthFCControl
With mnuMonthFCControl
.Name = "mnuMonthFCControl"
.Designer = @This
.Caption = "Control"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuMonthForeColor
End With
' mnuMonthFCWeek
With mnuMonthFCWeek
.Name = "mnuMonthFCWeek"
.Designer = @This
.Caption = "Week"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuMonthForeColor
End With
' mnuMonthFCDay
With mnuMonthFCDay
.Name = "mnuMonthFCDay"
.Designer = @This
.Caption = "Day"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuMonthForeColor
End With
' mnuMonthFCSelect
With mnuMonthFCSelect
.Name = "mnuMonthFCSelect"
.Designer = @This
.Caption = "Select"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuMonthForeColor
End With
' mnuMonthFCToday
With mnuMonthFCToday
.Name = "mnuMonthFCToday"
.Designer = @This
.Caption = "Today"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuMonthForeColor
End With
' mnuMonthFCHoliday
With mnuMonthFCHoliday
.Name = "mnuMonthFCHoliday"
.Designer = @This
.Caption = "Holiday"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuMonthForeColor
End With
' MenuItem26
With MenuItem26
.Name = "MenuItem26"
.Designer = @This
.Caption = "-"
.Parent = @mnuMonthSetting
End With
' mnuMonthTrayEnabled
With mnuMonthTrayEnabled
.Name = "mnuMonthTrayEnabled"
.Designer = @This
.Caption = "Tray"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuMonthSetting
End With
' mnuMonthTrayColor
With mnuMonthTrayColor
.Name = "mnuMonthTrayColor"
.Designer = @This
.Caption = "Color"
.Parent = @mnuMonthSetting
End With
' mnuMonthBCFocus
With mnuMonthBCFocus
.Name = "mnuMonthBCFocus"
.Designer = @This
.Caption = "Focus"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuMonthTrayColor
End With
' mnuMonthBCControl
With mnuMonthBCControl
.Name = "mnuMonthBCControl"
.Designer = @This
.Caption = "Control"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuMonthTrayColor
End With
' mnuMonthBCWeek
With mnuMonthBCWeek
.Name = "mnuMonthBCWeek"
.Designer = @This
.Caption = "Week"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuMonthTrayColor
End With
' mnuMonthBCDay
With mnuMonthBCDay
.Name = "mnuMonthBCDay"
.Designer = @This
.Caption = "Day"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuMonthTrayColor
End With
' mnuMonthBCSelect
With mnuMonthBCSelect
.Name = "mnuMonthBCSelect"
.Designer = @This
.Caption = "Select"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuMonthTrayColor
End With
' mnuMonthTrayAlpha
With mnuMonthTrayAlpha
.Name = "mnuMonthTrayAlpha"
.Designer = @This
.Caption = "Alpha"
.Parent = @mnuMonthSetting
End With
' MenuItem30
With MenuItem30
.Name = "MenuItem30"
.Designer = @This
.Caption = "-"
.Parent = @mnuMonthSetting
End With
' mnuMonthBackEnabled
With mnuMonthBackEnabled
.Name = "mnuMonthBackEnabled"
.Designer = @This
.Caption = "Background"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuMonthSetting
End With
' mnuMonthBackFile
With mnuMonthBackFile
.Name = "mnuMonthBackFile"
.Designer = @This
.Caption = "File"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuMonthSetting
End With
' mnuMonthBackAlpha
With mnuMonthBackAlpha
.Name = "mnuMonthBackAlpha"
.Designer = @This
.Caption = "Alpha"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuMonthSetting
End With
' mnuMonthBackBlur
With mnuMonthBackBlur
.Name = "mnuMonthBackBlur"
.Designer = @This
.Caption = "Blur"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuMonthSetting
End With
' MenuItem18
With MenuItem18
.Name = "MenuItem18"
.Designer = @This
.Caption = "-"
.Parent = @mnuDaySetting
End With
' mnuDayPanelEnabled
With mnuDayPanelEnabled
.Name = "mnuDayPanelEnabled"
.Designer = @This
.Caption = "Panel"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuDaySetting
End With
' mnuDayPanelColor
With mnuDayPanelColor
.Name = "mnuDayPanelColor"
.Designer = @This
.Caption = "Color"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuDaySetting
End With
' mnuDayPanelAlpha
With mnuDayPanelAlpha
.Name = "mnuDayPanelAlpha"
.Designer = @This
.Caption = "Alpha"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuDaySetting
End With
' MenuItem33
With MenuItem33
.Name = "MenuItem33"
.Designer = @This
.Caption = "-"
.Parent = @mnuDaySetting
End With
' mnuDayOutlineEnabled
With mnuDayOutlineEnabled
.Name = "mnuDayOutlineEnabled"
.Designer = @This
.Caption = "Outline"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuDaySetting
End With
' mnuDayOutlineSize
With mnuDayOutlineSize
.Name = "mnuDayOutlineSize"
.Designer = @This
.Caption = "Size"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuDaySetting
End With
' mnuDayOutlineColor
With mnuDayOutlineColor
.Name = "mnuDayOutlineColor"
.Designer = @This
.Caption = "Color"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuDaySetting
End With
' mnuDayOutlineAlpha
With mnuDayOutlineAlpha
.Name = "mnuDayOutlineAlpha"
.Designer = @This
.Caption = "Alpha"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuDaySetting
End With
' MenuItem38
With MenuItem38
.Name = "MenuItem38"
.Designer = @This
.Caption = "-"
.Parent = @mnuMonthSetting
End With
' mnuMonthPanelEnabled
With mnuMonthPanelEnabled
.Name = "mnuMonthPanelEnabled"
.Designer = @This
.Caption = "Panel"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuMonthSetting
End With
' mnuMonthPanelColor
With mnuMonthPanelColor
.Name = "mnuMonthPanelColor"
.Designer = @This
.Caption = "Color"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuMonthSetting
End With
' mnuMonthPanelAlpha
With mnuMonthPanelAlpha
.Name = "mnuMonthPanelAlpha"
.Designer = @This
.Caption = "Alpha"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuMonthSetting
End With
' MenuItem42
With MenuItem42
.Name = "MenuItem42"
.Designer = @This
.Caption = "-"
.Parent = @mnuMonthSetting
End With
' mnuMonthOutlineEnabled
With mnuMonthOutlineEnabled
.Name = "mnuMonthOutlineEnabled"
.Designer = @This
.Caption = "Outline"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuMonthSetting
End With
' mnuMonthOutlineSize
With mnuMonthOutlineSize
.Name = "mnuMonthOutlineSize"
.Designer = @This
.Caption = "Size"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuMonthSetting
End With
' mnuMonthOutlineColor
With mnuMonthOutlineColor
.Name = "mnuMonthOutlineColor"
.Designer = @This
.Caption = "Color"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuMonthSetting
End With
' mnuMonthOutlineAlpha
With mnuMonthOutlineAlpha
.Name = "mnuMonthOutlineAlpha"
.Designer = @This
.Caption = "Alpha"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuMonthSetting
End With
' mnuMonthBAFocus
With mnuMonthBAFocus
.Name = "mnuMonthBAFocus"
.Designer = @This
.Caption = "Focus"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuMonthTrayAlpha
End With
' mnuMonthBAControl
With mnuMonthBAControl
.Name = "mnuMonthBAControl"
.Designer = @This
.Caption = "Control"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuMonthTrayAlpha
End With
' mnuMonthBAWeek
With mnuMonthBAWeek
.Name = "mnuMonthBAWeek"
.Designer = @This
.Caption = "Week"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuMonthTrayAlpha
End With
' mnuMonthBADay
With mnuMonthBADay
.Name = "mnuMonthBADay"
.Designer = @This
.Caption = "Day"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuMonthTrayAlpha
End With
' mnuMonthBASelect
With mnuMonthBASelect
.Name = "mnuMonthBASelect"
.Designer = @This
.Caption = "Select"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuMonthTrayAlpha
End With
' mnuDayBAFocus
With mnuDayBAFocus
.Name = "mnuDayBAFocus"
.Designer = @This
.Caption = "Focus"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuDayTrayAlpha
End With
' mnuDayBAYear
With mnuDayBAYear
.Name = "mnuDayBAYear"
.Designer = @This
.Caption = "Year"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuDayTrayAlpha
End With
' mnuDayBAMonth
With mnuDayBAMonth
.Name = "mnuDayBAMonth"
.Designer = @This
.Caption = "Month"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuDayTrayAlpha
End With
' mnuDayBADay
With mnuDayBADay
.Name = "mnuDayBADay"
.Designer = @This
.Caption = "Day"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuDayTrayAlpha
End With
' mnuDayBAWeek
With mnuDayBAWeek
.Name = "mnuDayBAWeek"
.Designer = @This
.Caption = "Week"
.OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
.Parent = @mnuDayTrayAlpha
End With
End Constructor
Dim Shared frmClock As frmClockType
#if _MAIN_FILE_ = __FILE__
App.DarkMode = True
frmClock.MainForm = True
frmClock.Show
App.Run
#endif
'#End Region
#include once "frmDay.frm"
#include once "frmMonth.frm"
'Region Tray Menu
#include once "windows.bi"
Dim Shared As NOTIFYICONDATA SystrayIcon
Const WM_SHELLNOTIFY = WM_USER + 5
Private Function CheckAutoStart() As Integer
Dim As Integer CheckResult = 0
#ifdef __USE_WINAPI__
'Region registry
Dim As Any Ptr hReg
Dim As WString Ptr sNewRegValue = NULL
Dim As DWORD lRegLen = 0
Dim As DWORD lpType = 0
Dim As Long lRes
'open
lRes = RegOpenKeyEx(HKEY_CURRENT_USER, "SOFTWARE\Microsoft\Windows\CurrentVersion\Run", 0, KEY_ALL_ACCESS, @hReg)
If lRes <> ERROR_SUCCESS Then
RegCloseKey(hReg)
Exit Function
End If
lRes = RegQueryValueEx(hReg, WStr("VFBE GDIP Clock"), 0, @lpType, 0, @lRegLen)
If lRes <> ERROR_SUCCESS Then RegCloseKey(hReg): Exit Function
sNewRegValue = Reallocate(sNewRegValue, (lRegLen + 1) * 2)
lRes = RegQueryValueEx(hReg, WStr("VFBE GDIP Clock"), 0, @lpType, Cast(Byte Ptr, sNewRegValue), @lRegLen)
If lRes <> ERROR_SUCCESS Then RegCloseKey(hReg): Exit Function
'close registry
RegCloseKey(hReg)
CheckResult = InStr(*sNewRegValue, Command(0))
Deallocate(sNewRegValue)
#endif
Return CheckResult
End Function
Private Sub AutoStartReg(flag As Boolean = True)
#ifdef __USE_WINAPI__
'Region registry
Dim As Any Ptr hReg
Dim As WString Ptr sNewRegValue
Dim As Integer lRegLen = (Len(WChr(34) & Command(0) & WChr(34) & WChr(0)) + 1) * 2
sNewRegValue = Allocate(lRegLen)
*sNewRegValue = WChr(34) & Command(0) & WChr(34) & WChr(0)
'open
RegOpenKeyEx(HKEY_CURRENT_USER, "SOFTWARE\Microsoft\Windows\CurrentVersion\Run", 0, KEY_ALL_ACCESS, @hReg)
If flag Then
RegSetValueEx(hReg, WStr("VFBE GDIP Clock"), NULL, REG_SZ, Cast(Byte Ptr, sNewRegValue), lRegLen)
Else
RegDeleteValue(hReg, WStr("VFBE GDIP Clock"))
End If
RegFlushKey(hReg)
'close registry
RegCloseKey(hReg)
Deallocate(sNewRegValue)
#endif
End Sub
Private Sub frmClockType.TestBackup()
ReDim TestMenu(TestCount)
ReDim TestSetting(TestCount)
TestMenu(0) = @mnuAnalogEnabled
TestMenu(1) = @mnuAnalogOutlineEnabled
TestMenu(2) = @mnuAnalogPanelEnabled
TestMenu(3) = @mnuAnalogBackEnabled
TestMenu(4) = @mnuAnalogTrayEnabled
TestMenu(5) = @mnuAnalogScaleEnabled
TestMenu(6) = @mnuAnalogTextEnabled
TestMenu(7) = @mnuAnalogHandEnabled
TestMenu(8) = @mnuAnalogHandSecondEnabled
TestMenu(9) = @mnuAnalogHandMinuteEnabled
TestMenu(10) = @mnuAnalogHandHourEnabled
TestMenu(11) = @mnuTextEnabled
TestMenu(12) = @mnuTextOutlineEnabled
TestMenu(13) = @mnuTextPanelEnabled
TestMenu(14) = @mnuTextBackEnabled
TestMenu(15) = @mnuTextPanelEnabled
TestMenu(16) = @mnuTextShowSecond
TestMenu(17) = @mnuTextBlinkColon
TestMenu(18) = @mnuTextBorderEnabled
TestMenu(19) = @mnuTextGradient
TestMenu(20) = @mnuTextWhite
TestMenu(21) = @mnuTextBlack
TestMenu(22) = @mnuTextRed
TestMenu(23) = @mnuTextGreen
TestMenu(24) = @mnuTextBlue
TestMenu(25) = @mnuDayEnabled
TestMenu(26) = @mnuDayStyle0
TestMenu(27) = @mnuDayStyle1
TestMenu(28) = @mnuDayStyle2
TestMenu(29) = @mnuDayTrayEnabled
TestMenu(30) = @mnuDayPanelEnabled
TestMenu(31) = @mnuDayBackEnabled
TestMenu(32) = @mnuDayOutlineEnabled
TestMenu(33) = @mnuMonthEnabled
TestMenu(34) = @mnuMonthWeek
TestMenu(35) = @mnuMonthControl
TestMenu(36) = @mnuMonthTrayEnabled
TestMenu(37) = @mnuMonthPanelEnabled
TestMenu(38) = @mnuMonthBackEnabled
TestMenu(39) = @mnuTransparent
Dim i As Integer
For i = 0 To TestCount
TestSetting(i) = TestMenu(i)->Checked
Next
End Sub
Private Sub frmClockType.TestRestore()
Dim i As Integer
For i = 0 To TestCount
If TestSetting(i) <> TestMenu(i)->Checked Then
mnuMenu_Click(*TestMenu(i))
End If
Next
End Sub
Private Sub frmClockType.TestStress()
Dim i As Integer
Do
i = Rnd(Timer) * TestCount * 2
Loop While i < 0 Or i > TestCount
mnuMenu_Click(*TestMenu(i))
End Sub
Private Function frmClockType.ProfileIdx(ByVal fDefNum As Integer = -1) As Integer
Static sIdx As Integer
If fDefNum < 0 Then
'默认参数返回+1索引值
sIdx = sIdx + 1
Else
'传入非负数参数设置索引值
sIdx = fDefNum
End If
Return sIdx
End Function
Private Sub frmClockType.FileName2Menu(sExt As WString)
Dim i As Integer
For i = mnuProfileCount To 0 Step -1
mnuProfileMain.Remove(mnuProfileList(i))
Delete mnuProfileList(i)
Next
Erase mnuProfileList
mnuProfileCount = -1
Dim f As String
Dim t As String
f = Dir(*mAppPath & "*" & sExt)
Do
i = Len(f) - Len(sExt)
If i > 0 Then
mnuProfileCount += 1
ReDim Preserve mnuProfileList(mnuProfileCount)
mnuProfileList(mnuProfileCount) = New MenuItem
If mnuProfileCount = 0 Then
mnuProfileList(mnuProfileCount)->Name = "mnuProfileList"
mnuProfileList(mnuProfileCount)->Caption = "-"
mnuProfileList(mnuProfileCount)->Designer = @This
mnuProfileList(mnuProfileCount)->Parent = @mnuProfileMain
mnuProfileMain.Add mnuProfileList(mnuProfileCount)
mnuProfileCount += 1
ReDim Preserve mnuProfileList(mnuProfileCount)
mnuProfileList(mnuProfileCount) = New MenuItem
End If
t = Mid(f, 1, i)
If InStr(*mProfileName, f) Then mnuProfileList(mnuProfileCount)->Checked = True
mnuProfileList(mnuProfileCount)->Name = "mnuProfileList"
mnuProfileList(mnuProfileCount)->Caption = t
mnuProfileList(mnuProfileCount)->Designer = @This
mnuProfileList(mnuProfileCount)->Parent = @mnuProfileMain
mnuProfileList(mnuProfileCount)->OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
mnuProfileMain.Add mnuProfileList(mnuProfileCount)
End If
f = Dir()
Loop While f <> ""
End Sub
Private Sub frmClockType.Clock2Interface()
mnuOpacityValue.Caption = !"Opacity\t&&H" & Hex(mOpacity)
mnuAnalogBackAlpha.Caption = !"Alpha\t&&H" & Hex(mAnalogClock.mBackAlpha)
mnuAnalogBackBlur.Caption = !"Blur\t" & mAnalogClock.mBackBlur
mnuAnalogBackEnabled.Checked = mAnalogClock.mBackEnabled
mnuAnalogBackFile.Caption = !"File\t" & FullName2File(mAnalogClock.FileName)
mnuAnalogHandAlpha.Caption = !"Alpha\t&&H" & Hex(mAnalogClock.mHandAlpha)
mnuAnalogHandBlur.Caption = !"Blur\t" & mAnalogClock.mHandBlur
mnuAnalogHandEnabled.Checked = mAnalogClock.mHandEnabled
mnuAnalogHandHour.Caption = !"Hour Color\t&&H" & mAnalogClock.mHandHourColor
mnuAnalogHandHourEnabled.Checked = mAnalogClock.mHandHourEnabled
mnuAnalogHandMinute.Caption = !"Minute Color\t&&H" & Hex(mAnalogClock.mHandMinuteColor)
mnuAnalogHandMinuteEnabled.Checked = mAnalogClock.mHandMinuteEnabled
mnuAnalogHandSecond.Caption = !"Second Color\t&&H" & Hex(mAnalogClock.mHandSecondColor)
mnuAnalogHandSecondEnabled.Checked = mAnalogClock.mHandSecondEnabled
mnuAnalogOutlineAlpha.Caption = !"Alpha\t&&H" & Hex(mAnalogClock.mOutlineAlpha)
mnuAnalogOutlineColor.Caption = !"Color\t&&H" & Hex(mAnalogClock.mOutlineColor)
mnuAnalogOutlineEnabled.Checked = mAnalogClock.mOutlineEnabled
mnuAnalogOutlineSize.Caption = !"Size\t" & mAnalogClock.mOutlineSize
mnuAnalogPanelAlpha.Caption = !"Alpha\t&&H" & Hex(mAnalogClock.mPanelAlpha)
mnuAnalogPanelColor.Caption = !"Color\t&&H" & Hex(mAnalogClock.mPanelColor)
mnuAnalogPanelEnabled.Checked = mAnalogClock.mPanelEnabled
mnuAnalogScaleAlpha.Caption = !"Alpha\t&&H" & Hex(mAnalogClock.mScaleAlpha)
mnuAnalogScaleBlur.Caption = !"Blur\t" & mAnalogClock.mScaleBlur
mnuAnalogScaleColor.Caption = !"Color\t&&H" & Hex(mAnalogClock.mScaleColor)
mnuAnalogScaleEnabled.Checked = mAnalogClock.mScaleEnabled
mnuAnalogSetting.Enabled = mnuAnalogEnabled.Checked
mnuAnalogTextAlpha.Caption = !"Alpha\t&&H" & Hex(mAnalogClock.mTextAlpha)
mnuAnalogTextBlur.Caption = !"Blur\t" & mAnalogClock.mTextBlur
mnuAnalogTextColor.Caption = !"Color\t&&H" & Hex(mAnalogClock.mTextColor)
mnuAnalogTextEnabled.Checked = mAnalogClock.mTextEnabled
mnuAnalogTextFont.Caption = !"Font\t" & *mAnalogClock.mTextFont & ", " & mAnalogClock.mTextBold
mnuAnalogTextFormat.Caption = !"Format\t" & *mAnalogClock.mTextFormat
mnuAnalogTextSize.Caption = !"Size\t" & mAnalogClock.mTextSize
mnuAnalogTextX.Caption = !"X\t" & mAnalogClock.mTextOffsetX
mnuAnalogTextY.Caption = !"Y\t" & mAnalogClock.mTextOffsetY
mnuAnalogTrayAlpha.Caption = !"Alpha\t&&H" & Hex(mAnalogClock.mTrayAlpha)
mnuAnalogTrayBlur.Caption = !"Blur\t" & mAnalogClock.mTrayBlur
mnuAnalogTrayEA1.Caption = !"Edge Alpha 1\t&&H" & Hex( mAnalogClock.mTrayEdgeAlpha1)
mnuAnalogTrayEA2.Caption = !"Edge Alpha 2\t&&H" & Hex(mAnalogClock.mTrayEdgeAlpha2)
mnuAnalogTrayEC1.Caption = !"Edge Color 1\t&&H" & Hex(mAnalogClock.mTrayEdgeColor1)
mnuAnalogTrayEC2.Caption = !"Edge Color 2\t&&H" & Hex(mAnalogClock.mTrayEdgeColor2)
mnuAnalogTrayEnabled.Checked = mAnalogClock.mTrayEnabled
mnuAnalogTrayFA1.Caption = !"Face Alpha 1\t&&H" & Hex(mAnalogClock.mTrayFaceAlpha1)
mnuAnalogTrayFA2.Caption = !"Face Alpha 2\t&&H" & Hex(mAnalogClock.mTrayFaceAlpha2)
mnuAnalogTrayFC1.Caption = !"Face Color 1\t&&H" & Hex(mAnalogClock.mTrayFaceColor1)
mnuAnalogTrayFC2.Caption = !"Face Color 2\t&&H" & Hex(mAnalogClock.mTrayFaceColor2)
mnuAnalogTraySA.Caption = !"Shadow Alpha\t&&H" & Hex(mAnalogClock.mTrayShadowAlpha)
mnuAnalogTraySC.Caption = !"Shadow Color\t&&H" & Hex(mAnalogClock.mTrayShadowColor)
mnuTextAlpha1.Caption = !"Alpha1\t&&H" & Hex(mTextAlpha1)
mnuTextAlpha2.Caption = !"Alpha2\t&&H" & Hex(mTextAlpha2)
mnuTextBackAlpha.Caption = !"Alpha\t&&H" & Hex(mTextClock.mBackAlpha)
mnuTextBackBlur.Caption = !"Blur\t" & mTextClock.mBackBlur
mnuTextBackEnabled.Checked = mTextClock.mBackEnabled
mnuTextBackFile.Caption = !"File\t" & FullName2File(mTextClock.FileName)
mnuTextBlinkColon.Checked = mTextClock.mBlinkColon
mnuTextBlur.Caption = !"Blur\t" & mTextClock.mTextBlur
mnuTextBorderAlpha.Caption = !"Alpha\t&&H" & Hex(mTextClock.mBorderAlpha)
mnuTextBorderColor.Caption = !"Color\t&&H" & Hex(mTextClock.mBorderColor)
mnuTextBorderEnabled.Checked = mTextClock.mBorderEnabled
mnuTextBorderSize.Caption = !"Size\t" & mTextClock.mBorderSize
mnuTextColor1.Caption = !"Color 1\t&&H" & Hex(mTextColor1)
mnuTextColor2.Caption = !"Color 2\t&&H" & Hex(mTextColor2)
mnuTextFont.Caption = !"Font\t" & *mTextClock.mFontName & ", " & mTextClock.mFontStyle
mnuTextOutlineAlpha.Caption = !"Alpha\t&&H" & Hex(mTextClock.mOutlineAlpha)
mnuTextOutlineColor.Caption = !"Color\t&&H" & Hex(mTextClock.mOutlineColor)
mnuTextOutlineEnabled.Checked = mTextClock.mOutlineEnabled
mnuTextOutlineSize.Caption = !"Size\t" & mTextClock.mOutlineSize
mnuTextPanelAlpha.Caption = !"Alpha\t&&H" & Hex(mTextClock.mPanelAlpha)
mnuTextPanelColor.Caption = !"Color\t&&H" & Hex(mTextClock.mPanelColor)
mnuTextPanelEnabled.Checked = mTextClock.mPanelEnabled
mnuTextSetting.Enabled = mnuTextEnabled.Checked
mnuTextShadow.Checked = mTextClock.mShadowEnabled
mnuTextShowSecond.Checked = mTextClock.mShowSecond
mnuDayBackAlpha.Caption = !"Alpha\t&&H" & Hex(frmDay.mDay.mBackAlpha(DayImageFile) Shr 24)
mnuDayBackBlur.Caption = !"Blur\t" & frmDay.mDay.mBackBlur
mnuDayBackEnabled.Checked = frmDay.mDay.mBackEnabled
mnuDayBackFile.Caption = !"File\t" & FullName2File(frmDay.mDay.mBackImage.ImageFile)
mnuDayBADay.Caption = !"Day\t&&H" & Hex(frmDay.mDay.mBackAlpha(DayDay) Shr 24)
mnuDayBAFocus.Caption = !"Focus\t&&H" & Hex(frmDay.mDay.mBackAlpha(DayFocus) Shr 24)
mnuDayBAMonth.Caption = !"Month\t&&H" & Hex(frmDay.mDay.mBackAlpha(DayMonth) Shr 24)
mnuDayBAWeek.Caption = !"Week\t&&H" & Hex(frmDay.mDay.mBackAlpha(DayWeek) Shr 24)
mnuDayBAYear.Caption = !"Year\t&&H" & Hex(frmDay.mDay.mBackAlpha(DayYear) Shr 24)
mnuDayBCDay.Caption = !"Day\t&&H" & Hex(frmDay.mDay.mBackColor(DayDay))
mnuDayBCFocus.Caption = !"Focus\t&&H" & Hex(frmDay.mDay.mBackColor(DayFocus))
mnuDayBCMonth.Caption = !"Month\t&&H" & Hex(frmDay.mDay.mBackColor(DayMonth))
mnuDayBCWeek.Caption = !"Week\t&&H" & Hex(frmDay.mDay.mBackColor(DayWeek))
mnuDayBCYear.Caption = !"Year\t&&H" & Hex(frmDay.mDay.mBackColor(DayYear))
mnuDayFCDay.Caption = !"Day\t&&H" & Hex(frmDay.mDay.mForeColor(DayDay))
mnuDayFCFocus.Caption = !"Focus\t&&H" & Hex(frmDay.mDay.mForeColor(DayFocus))
mnuDayFCMonth.Caption = !"Month\t&&H" & Hex(frmDay.mDay.mForeColor(DayMonth))
mnuDayFCWeek.Caption = !"Week\t&&H" & Hex(frmDay.mDay.mForeColor(DayWeek))
mnuDayFCYear.Caption = !"Year\t&&H" & Hex(frmDay.mDay.mForeColor(DayYear))
mnuDayOutlineAlpha.Caption = !"Alpha\t&&H" & Hex(frmDay.mDay.mForeAlpha(DayPanel) Shr 24)
mnuDayOutlineColor.Caption = !"Color\t&&H" & Hex(frmDay.mDay.mForeColor(DayPanel))
mnuDayOutlineEnabled.Checked = frmDay.mDay.mOutlineEnabled
mnuDayOutlineSize.Caption = !"Size\t" & frmDay.mDay.mOutlineSize
mnuDayPanelAlpha.Caption = !"Alpha\t&&H" & Hex(frmDay.mDay.mBackAlpha(DayPanel) Shr 24)
mnuDayPanelColor.Caption = !"Color\t&&H" & Hex(frmDay.mDay.mBackColor(DayPanel))
mnuDayPanelEnabled.Checked = frmDay.mDay.mPanelEnabled
mnuDaySetting.Enabled = mnuDayEnabled.Checked
mnuDaySplit.Caption = !"Split\t" & frmDay.mDay.mSplitXScale
mnuDayStyle0.Checked = CBool(frmDay.mDay.mShowStyle = 0)
mnuDayStyle1.Checked = CBool(frmDay.mDay.mShowStyle = 1)
mnuDayStyle2.Checked = CBool(frmDay.mDay.mShowStyle = 2)
mnuDayTextFont.Caption = !"Font\t" & *frmDay.mDay.mFontName
mnuDayTrayEnabled.Checked = frmDay.mDay.mTrayEnabled
mnuDayTrayEnabled.Checked = frmDay.mDay.mTrayEnabled
mnuMonthBackAlpha.Caption = !"Alpha\t&&H" & Hex(frmMonth.mMonth.mBackAlpha(MonthImageFile) Shr 24)
mnuMonthBackBlur.Caption = !"Blur\t" & frmMonth.mMonth.mBackBlur
mnuMonthBackEnabled.Checked = frmMonth.mMonth.mBackEnabled
mnuMonthBackFile.Caption = !"File\t" & FullName2File(frmMonth.mMonth.mBackImage.ImageFile)
mnuMonthBAControl.Caption = !"Control\t&&H" & Hex(frmMonth.mMonth.mBackAlpha(MonthControl) Shr 24)
mnuMonthBADay.Caption = !"Day\t&&H" & Hex(frmMonth.mMonth.mBackAlpha(MonthDay) Shr 24)
mnuMonthBAFocus.Caption = !"Focus\t&&H" & Hex(frmMonth.mMonth.mBackAlpha(MonthFocus) Shr 24)
mnuMonthBASelect.Caption = !"Select\t&&H" & Hex(frmMonth.mMonth.mBackAlpha(MonthSelect) Shr 24)
mnuMonthBAWeek.Caption = !"Week\t&&H" & Hex(frmMonth.mMonth.mBackAlpha(MonthWeek) Shr 24)
mnuMonthBCControl.Caption = !"Control\t&&H" & Hex(frmMonth.mMonth.mBackColor(MonthControl))
mnuMonthBCDay.Caption = !"Day\t&&H" & Hex(frmMonth.mMonth.mBackColor(MonthDay))
mnuMonthBCFocus.Caption = !"Focus\t&&H" & Hex(frmMonth.mMonth.mBackColor(MonthFocus))
mnuMonthBCSelect.Caption = !"Select\t&&H" & Hex(frmMonth.mMonth.mBackColor(MonthSelect))
mnuMonthBCWeek.Caption = !"Week\t&&H" & Hex(frmMonth.mMonth.mBackColor(MonthWeek))
mnuMonthControl.Checked = frmMonth.mMonth.mShowControls
mnuMonthFCControl.Caption = !"Control\t&&H" & Hex(frmMonth.mMonth.mForeColor(MonthControl))
mnuMonthFCDay.Caption = !"Day\t&&H" & Hex(frmMonth.mMonth.mForeColor(MonthDay))
mnuMonthFCFocus.Caption = !"Focus\t&&H" & Hex(frmMonth.mMonth.mForeColor(MonthFocus))
mnuMonthFCHoliday.Caption = !"Holiday\t&&H" & Hex(frmMonth.mMonth.mForeColor(MonthHoliday))
mnuMonthFCSelect.Caption = !"Select\t&&H" & Hex(frmMonth.mMonth.mForeColor(MonthSelect))
mnuMonthFCToday.Caption = !"Today\t&&H" & Hex(frmMonth.mMonth.mForeColor(MonthToday))
mnuMonthFCWeek.Caption = !"Week\t&&H" & Hex(frmMonth.mMonth.mForeColor(MonthWeek))
mnuMonthOutlineAlpha.Caption = !"Alpha\t&&H" & Hex(frmMonth.mMonth.mForeAlpha(MonthPanel) Shr 24)
mnuMonthOutlineColor.Caption = !"Color\t&&H" & Hex(frmMonth.mMonth.mForeColor(MonthPanel))
mnuMonthOutlineEnabled.Checked = frmMonth.mMonth.mOutlineEnabled
mnuMonthOutlineSize.Caption = !"Size\t" & frmMonth.mMonth.mOutlineSize
mnuMonthPanelAlpha.Caption = !"Alpha\t&&H" & Hex(frmMonth.mMonth.mBackAlpha(MonthPanel) Shr 24)
mnuMonthPanelColor.Caption = !"Color\t&&H" & Hex(frmMonth.mMonth.mBackColor(MonthPanel))
mnuMonthPanelEnabled.Checked = frmMonth.mMonth.mPanelEnabled
mnuMonthSetting.Enabled = mnuMonthEnabled.Checked
mnuMonthTextFont.Caption = !"Font\t" & *frmMonth.mMonth.mFontName
mnuMonthTrayEnabled.Checked = frmMonth.mMonth.mTrayEnabled
mnuMonthWeek.Checked = frmMonth.mMonth.mShowWeeks
End Sub
Private Function frmClockType.ProfileDefLoad() As UString
Dim sProfile As WString Ptr
TextFromFile(FullNameFromFile("gdipClock.ini"), sProfile)
Dim As UString rtn = *sProfile
Deallocate(sProfile)
If rtn = "" Then
Return FullNameFromFile("gdipClock.prf")
Else
Return FullNameFromFile(rtn)
End If
End Function
Private Sub frmClockType.ProfileDefSave()
TextToFile(FullNameFromFile("gdipClock.ini"), FullName2File(*mProfileName))
End Sub
Private Sub frmClockType.ProfileInitial()
WLet(mAppPath, ExePath & "\")
ReDim mKeyName(mKeyCount)
ReDim mKeyValDef(mKeyCount)
ReDim mKeyValue(mKeyCount)
ReDim mKeyNameLen(mKeyCount)
mSetMainStart = ProfileIdx(0)
WLet(mKeyName(ProfileIdx(0)), WStr("[Main]"))
WLet(mKeyName(ProfileIdx()), "Clock left = ")
WLet(mKeyName(ProfileIdx()), "Clock top = ")
WLet(mKeyName(ProfileIdx()), "Clock width = ")
WLet(mKeyName(ProfileIdx()), "Clock height = ")
WLet(mKeyName(ProfileIdx()), "Clock always on top = ")
WLet(mKeyName(ProfileIdx()), "Clock click through = ")
WLet(mKeyName(ProfileIdx()), "Clock analog enabled = ")
WLet(mKeyName(ProfileIdx()), "Clock text enabled = ")
WLet(mKeyName(ProfileIdx()), "Clock day enabled = ")
WLet(mKeyName(ProfileIdx()), "Clock month enabled = ")
WLet(mKeyName(ProfileIdx()), "Clock transparent = ")
WLet(mKeyName(ProfileIdx()), "Clock opacity value = ")
WLet(mKeyName(ProfileIdx()), "Clock locate sticky = ")
WLet(mKeyName(ProfileIdx()), "Clock hide = ")
WLet(mKeyName(ProfileIdx()), "Clock profile auto save = ")
mSetAnalogStart = ProfileIdx()
WLet(mKeyName(ProfileIdx(mSetAnalogStart)), WStr("[Analog]"))
WLet(mKeyName(ProfileIdx()), "Analog background enabled = ")
WLet(mKeyName(ProfileIdx()), "Analog background file = ")
WLet(mKeyName(ProfileIdx()), "Analog background alpha = ")
WLet(mKeyName(ProfileIdx()), "Analog background blur = ")
WLet(mKeyName(ProfileIdx()), "Analog panel enabled = ")
WLet(mKeyName(ProfileIdx()), "Analog panel color = ")
WLet(mKeyName(ProfileIdx()), "Analog panel alpha = ")
WLet(mKeyName(ProfileIdx()), "Analog outline enabled = ")
WLet(mKeyName(ProfileIdx()), "Analog outline size = ")
WLet(mKeyName(ProfileIdx()), "Analog outline color = ")
WLet(mKeyName(ProfileIdx()), "Analog outline alpha = ")
WLet(mKeyName(ProfileIdx()), "Analog tray enabled = ")
WLet(mKeyName(ProfileIdx()), "Analog tray face color 1 = ")
WLet(mKeyName(ProfileIdx()), "Analog tray face alpha 1 = ")
WLet(mKeyName(ProfileIdx()), "Analog tray face color 2 = ")
WLet(mKeyName(ProfileIdx()), "Analog tray face alpha 2 = ")
WLet(mKeyName(ProfileIdx()), "Analog tray edge color 1 = ")
WLet(mKeyName(ProfileIdx()), "Analog tray edge alpha 1 = ")
WLet(mKeyName(ProfileIdx()), "Analog tray edge color 2 = ")
WLet(mKeyName(ProfileIdx()), "Analog tray edge alpha 2 = ")
WLet(mKeyName(ProfileIdx()), "Analog tray shadow color = ")
WLet(mKeyName(ProfileIdx()), "Analog tray shadow alpha = ")
WLet(mKeyName(ProfileIdx()), "Analog tray alpha = ")
WLet(mKeyName(ProfileIdx()), "Analog tray blur = ")
WLet(mKeyName(ProfileIdx()), "Analog scale enabled = ")
WLet(mKeyName(ProfileIdx()), "Analog scale color = ")
WLet(mKeyName(ProfileIdx()), "Analog scale alpha = ")
WLet(mKeyName(ProfileIdx()), "Analog scale blur = ")
WLet(mKeyName(ProfileIdx()), "Analog hand enabled = ")
WLet(mKeyName(ProfileIdx()), "Analog hand second enabled = ")
WLet(mKeyName(ProfileIdx()), "Analog hand second color = ")
WLet(mKeyName(ProfileIdx()), "Analog hand minute enabled = ")
WLet(mKeyName(ProfileIdx()), "Analog hand minute color = ")
WLet(mKeyName(ProfileIdx()), "Analog hand hour enabled = ")
WLet(mKeyName(ProfileIdx()), "Analog hand hour color = ")
WLet(mKeyName(ProfileIdx()), "Analog hand alpha = ")
WLet(mKeyName(ProfileIdx()), "Analog hand blur = ")
WLet(mKeyName(ProfileIdx()), "Analog text enabled = ")
WLet(mKeyName(ProfileIdx()), "Analog text size = ")
WLet(mKeyName(ProfileIdx()), "Analog text font = ")
WLet(mKeyName(ProfileIdx()), "Analog text bold = ")
WLet(mKeyName(ProfileIdx()), "Analog text color = ")
WLet(mKeyName(ProfileIdx()), "Analog text x = ")
WLet(mKeyName(ProfileIdx()), "Analog text y = ")
WLet(mKeyName(ProfileIdx()), "Analog text format = ")
WLet(mKeyName(ProfileIdx()), "Analog text alpha = ")
WLet(mKeyName(ProfileIdx()), "Analog text blur = ")
mSetTextStart = ProfileIdx()
WLet(mKeyName(ProfileIdx(mSetTextStart)), WStr("[Text]"))
WLet(mKeyName(ProfileIdx()), "Text show second = ")
WLet(mKeyName(ProfileIdx()), "Text blink colon = ")
WLet(mKeyName(ProfileIdx()), "Text shadow = ")
WLet(mKeyName(ProfileIdx()), "Text background enabled = ")
WLet(mKeyName(ProfileIdx()), "Text background file = ")
WLet(mKeyName(ProfileIdx()), "Text background alpha = ")
WLet(mKeyName(ProfileIdx()), "Text background blur = ")
WLet(mKeyName(ProfileIdx()), "Text panel enabled = ")
WLet(mKeyName(ProfileIdx()), "Text panel color = ")
WLet(mKeyName(ProfileIdx()), "Text panel alpha = ")
WLet(mKeyName(ProfileIdx()), "Text outline enabled = ")
WLet(mKeyName(ProfileIdx()), "Text outline size = ")
WLet(mKeyName(ProfileIdx()), "Text outline alpha = ")
WLet(mKeyName(ProfileIdx()), "Text outline color = ")
WLet(mKeyName(ProfileIdx()), "Text font = ")
WLet(mKeyName(ProfileIdx()), "Text bold = ")
WLet(mKeyName(ProfileIdx()), "Text alpha 1 = ")
WLet(mKeyName(ProfileIdx()), "Text alpha 2 = ")
WLet(mKeyName(ProfileIdx()), "Text blur = ")
WLet(mKeyName(ProfileIdx()), "Text border enabled = ")
WLet(mKeyName(ProfileIdx()), "Text border size = ")
WLet(mKeyName(ProfileIdx()), "Text border alpha = ")
WLet(mKeyName(ProfileIdx()), "Text border color = ")
WLet(mKeyName(ProfileIdx()), "Text gradient color 1 = ")
WLet(mKeyName(ProfileIdx()), "Text gradient color 2 = ")
WLet(mKeyName(ProfileIdx()), "Text color index = ")
WLet(mKeyName(ProfileIdx()), "Text gradient mode = ")
mSetDayStart = ProfileIdx()
WLet(mKeyName(ProfileIdx(mSetDayStart)), WStr("[Day]"))
WLet(mKeyName(ProfileIdx()), "Day Left = ")
WLet(mKeyName(ProfileIdx()), "Day Top = ")
WLet(mKeyName(ProfileIdx()), "Day Width = ")
WLet(mKeyName(ProfileIdx()), "Day Height = ")
WLet(mKeyName(ProfileIdx()), "Day text font = ")
WLet(mKeyName(ProfileIdx()), "Day fore color focus = ")
WLet(mKeyName(ProfileIdx()), "Day fore color year = ")
WLet(mKeyName(ProfileIdx()), "Day fore color month = ")
WLet(mKeyName(ProfileIdx()), "Day fore color day = ")
WLet(mKeyName(ProfileIdx()), "Day fore color week = ")
WLet(mKeyName(ProfileIdx()), "Day split = ")
WLet(mKeyName(ProfileIdx()), "Day style index = ")
WLet(mKeyName(ProfileIdx()), "Day tray enabled = ")
WLet(mKeyName(ProfileIdx()), "Day back color focus = ")
WLet(mKeyName(ProfileIdx()), "Day back color year = ")
WLet(mKeyName(ProfileIdx()), "Day back color month = ")
WLet(mKeyName(ProfileIdx()), "Day back color day = ")
WLet(mKeyName(ProfileIdx()), "Day back color week = ")
WLet(mKeyName(ProfileIdx()), "Day back alpha focus = ")
WLet(mKeyName(ProfileIdx()), "Day back alpha year = ")
WLet(mKeyName(ProfileIdx()), "Day back alpha month = ")
WLet(mKeyName(ProfileIdx()), "Day back alpha day = ")
WLet(mKeyName(ProfileIdx()), "Day back alpha week = ")
WLet(mKeyName(ProfileIdx()), "Day background enabled = ")
WLet(mKeyName(ProfileIdx()), "Day background file = ")
WLet(mKeyName(ProfileIdx()), "Day background alpha = ")
WLet(mKeyName(ProfileIdx()), "Day background blur = ")
WLet(mKeyName(ProfileIdx()), "Day panel enabled = ")
WLet(mKeyName(ProfileIdx()), "Day panel color = ")
WLet(mKeyName(ProfileIdx()), "Day panel alpha = ")
WLet(mKeyName(ProfileIdx()), "Day outline enabled = ")
WLet(mKeyName(ProfileIdx()), "Day outline size = ")
WLet(mKeyName(ProfileIdx()), "Day outline color = ")
WLet(mKeyName(ProfileIdx()), "Day outline alpha = ")
mSetMonthStart = ProfileIdx()
WLet(mKeyName(ProfileIdx(mSetMonthStart)), WStr("[Month]"))
WLet(mKeyName(ProfileIdx()), "Month Left = ")
WLet(mKeyName(ProfileIdx()), "Month Top = ")
WLet(mKeyName(ProfileIdx()), "Month Width = ")
WLet(mKeyName(ProfileIdx()), "Month Height = ")
WLet(mKeyName(ProfileIdx()), "Month show controls = ")
WLet(mKeyName(ProfileIdx()), "Month show weeks = ")
WLet(mKeyName(ProfileIdx()), "Month tray enabled = ")
WLet(mKeyName(ProfileIdx()), "Month back color focus = ")
WLet(mKeyName(ProfileIdx()), "Month back color control = ")
WLet(mKeyName(ProfileIdx()), "Month back color week = ")
WLet(mKeyName(ProfileIdx()), "Month back color day = ")
WLet(mKeyName(ProfileIdx()), "Month back alpha focus = ")
WLet(mKeyName(ProfileIdx()), "Month back alpha control = ")
WLet(mKeyName(ProfileIdx()), "Month back alpha week = ")
WLet(mKeyName(ProfileIdx()), "Month back alpha day = ")
WLet(mKeyName(ProfileIdx()), "Month text font = ")
WLet(mKeyName(ProfileIdx()), "Month fore color focus = ")
WLet(mKeyName(ProfileIdx()), "Month fore color control = ")
WLet(mKeyName(ProfileIdx()), "Month fore color week = ")
WLet(mKeyName(ProfileIdx()), "Month fore color day = ")
WLet(mKeyName(ProfileIdx()), "Month fore color select = ")
WLet(mKeyName(ProfileIdx()), "Month fore color today = ")
WLet(mKeyName(ProfileIdx()), "Month fore color holiday = ")
WLet(mKeyName(ProfileIdx()), "Month background enabled = ")
WLet(mKeyName(ProfileIdx()), "Month background file = ")
WLet(mKeyName(ProfileIdx()), "Month background alpha = ")
WLet(mKeyName(ProfileIdx()), "Month background blur = ")
WLet(mKeyName(ProfileIdx()), "Month panel enabled = ")
WLet(mKeyName(ProfileIdx()), "Month panel color = ")
WLet(mKeyName(ProfileIdx()), "Month panel alpha = ")
WLet(mKeyName(ProfileIdx()), "Month outline enabled = ")
WLet(mKeyName(ProfileIdx()), "Month outline size = ")
WLet(mKeyName(ProfileIdx()), "Month outline color = ")
WLet(mKeyName(ProfileIdx()), "Month outline alpha = ")
mSetSpeechStart = ProfileIdx()
WLet(mKeyName(ProfileIdx(mSetSpeechStart)), WStr("[Speech]"))
WLet(mKeyName(ProfileIdx()), "Announce freequency = ")
WLet(mKeyName(ProfileIdx()), "Voice = ")
WLet(mKeyName(ProfileIdx()), "Audio = ")
Dim i As Integer
For i = 0 To mKeyCount
mKeyNameLen(i) = Len(*mKeyName(i))
Next
End Sub
Private Sub frmClockType.ProfileRelease()
Erase mKeyNameLen
ArrayDeallocate(mKeyName())
ArrayDeallocate(mKeyValDef())
ArrayDeallocate(mKeyValue())
If mProfileName Then Deallocate(mProfileName)
If mAppPath Then Deallocate(mAppPath)
End Sub
Private Sub frmClockType.Profile2Clock(sKeyValue() As WString Ptr)
ProfileIdx(mSetMainStart)
If *sKeyValue(ProfileIdx()) = "" Then Exit Sub
ProfileIdx(mSetMainStart)
With mRectMain
.Left = CLng(*sKeyValue(ProfileIdx()))
.Top = CLng(*sKeyValue(ProfileIdx()))
.Right = CLng(*sKeyValue(ProfileIdx()))
.Bottom = CLng(*sKeyValue(ProfileIdx()))
End With
If mnuAlwaysOnTop.Checked <> CBool(*sKeyValue(ProfileIdx())) Then mnuMenu_Click(mnuAlwaysOnTop)
If mnuClickThrough.Checked <> CBool(*sKeyValue(ProfileIdx())) Then mnuMenu_Click(mnuClickThrough)
If CBool(*sKeyValue(ProfileIdx())) Then mnuMenu_Click(mnuAnalogEnabled)
If CBool(*sKeyValue(ProfileIdx())) Then mnuMenu_Click(mnuTextEnabled)
mShowDay = CBool(*sKeyValue(ProfileIdx()))
mShowMonth = CBool(*sKeyValue(ProfileIdx()))
mTransparent = CBool(*sKeyValue(ProfileIdx()))
mOpacity = CInt(*sKeyValue(ProfileIdx()))
If mnuLocateSticky.Checked <> CBool(*sKeyValue(ProfileIdx())) Then mnuMenu_Click(mnuLocateSticky)
If mnuHide.Checked <> CBool(*sKeyValue(ProfileIdx())) Then mnuMenu_Click(mnuTextEnabled)
If mnuProfileSaveOnExit.Checked <> CBool(*sKeyValue(ProfileIdx())) Then mnuMenu_Click(mnuProfileSaveOnExit)
'ProfileIdx(mSetAnalogStart)
'With mRectAnalog
' .Left = CInt(*sKeyValue(ProfileIdx()))
' .Top = CInt(*sKeyValue(ProfileIdx()))
' .Right = CInt(*sKeyValue(ProfileIdx()))
' .Bottom = CInt(*sKeyValue(ProfileIdx()))
'End With
ProfileIdx(mSetAnalogStart)
mAnalogClock.mBackEnabled = CBool(*sKeyValue(ProfileIdx()))
mAnalogClock.FileName = FullNameFromFile(*sKeyValue(ProfileIdx()))
mAnalogClock.mBackAlpha = CSng(*sKeyValue(ProfileIdx()))
mAnalogClock.mBackBlur = CInt(*sKeyValue(ProfileIdx()))
mAnalogClock.mPanelEnabled = CBool(*sKeyValue(ProfileIdx()))
mAnalogClock.mPanelColor = CULng(*sKeyValue(ProfileIdx()))
mAnalogClock.mPanelAlpha = CULng(*sKeyValue(ProfileIdx()))
mAnalogClock.mOutlineEnabled = CBool(*sKeyValue(ProfileIdx()))
mAnalogClock.mOutlineSize = CSng(*sKeyValue(ProfileIdx()))
mAnalogClock.mOutlineColor = CULng(*sKeyValue(ProfileIdx()))
mAnalogClock.mOutlineAlpha = CULng(*sKeyValue(ProfileIdx()))
mAnalogClock.mTrayEnabled = CBool(*sKeyValue(ProfileIdx()))
mAnalogClock.mTrayFaceColor1 = CULng(*sKeyValue(ProfileIdx()))
mAnalogClock.mTrayFaceAlpha1 = CULng(*sKeyValue(ProfileIdx()))
mAnalogClock.mTrayFaceColor2 = CULng(*sKeyValue(ProfileIdx()))
mAnalogClock.mTrayFaceAlpha2 = CULng(*sKeyValue(ProfileIdx()))
mAnalogClock.mTrayEdgeColor1 = CULng(*sKeyValue(ProfileIdx()))
mAnalogClock.mTrayEdgeAlpha1 = CULng(*sKeyValue(ProfileIdx()))
mAnalogClock.mTrayEdgeColor2 = CULng(*sKeyValue(ProfileIdx()))
mAnalogClock.mTrayEdgeAlpha2 = CULng(*sKeyValue(ProfileIdx()))
mAnalogClock.mTrayShadowColor = CULng(*sKeyValue(ProfileIdx()))
mAnalogClock.mTrayShadowAlpha = CULng(*sKeyValue(ProfileIdx()))
mAnalogClock.mTrayAlpha = CULng(*sKeyValue(ProfileIdx()))
mAnalogClock.mTrayBlur = CInt(*sKeyValue(ProfileIdx()))
mAnalogClock.mScaleEnabled = CBool(*sKeyValue(ProfileIdx()))
mAnalogClock.mScaleColor = CULng(*sKeyValue(ProfileIdx()))
mAnalogClock.mScaleAlpha = CULng(*sKeyValue(ProfileIdx()))
mAnalogClock.mScaleBlur = CInt(*sKeyValue(ProfileIdx()))
mAnalogClock.mHandEnabled = CBool(*sKeyValue(ProfileIdx()))
mAnalogClock.mHandSecondEnabled = CBool(*sKeyValue(ProfileIdx()))
mAnalogClock.mHandSecondColor = CULng(*sKeyValue(ProfileIdx()))
mAnalogClock.mHandMinuteEnabled = CBool(*sKeyValue(ProfileIdx()))
mAnalogClock.mHandMinuteColor = CULng(*sKeyValue(ProfileIdx()))
mAnalogClock.mHandHourEnabled = CBool(*sKeyValue(ProfileIdx()))
mAnalogClock.mHandHourColor = CULng(*sKeyValue(ProfileIdx()))
mAnalogClock.mHandAlpha = CULng(*sKeyValue(ProfileIdx()))
mAnalogClock.mHandBlur = CInt(*sKeyValue(ProfileIdx()))
mAnalogClock.mTextEnabled = CBool(*sKeyValue(ProfileIdx()))
mAnalogClock.mTextSize = CSng(*sKeyValue(ProfileIdx()))
WLet(mAnalogClock.mTextFont, *sKeyValue(ProfileIdx()))
mAnalogClock.mTextBold = CBool(*sKeyValue(ProfileIdx()))
mAnalogClock.mTextColor = CULng(*sKeyValue(ProfileIdx()))
mAnalogClock.mTextOffsetX = CSng(*sKeyValue(ProfileIdx()))
mAnalogClock.mTextOffsetY = CSng(*sKeyValue(ProfileIdx()))
WLet(mAnalogClock.mTextFormat, *sKeyValue(ProfileIdx()))
mAnalogClock.mTextAlpha = CULng(*sKeyValue(ProfileIdx()))
mAnalogClock.mTextBlur = CInt(*sKeyValue(ProfileIdx()))
ProfileIdx(mSetTextStart)
'With mRectText
' .Left = CInt(*sKeyValue(ProfileIdx()))
' .Top = CInt(*sKeyValue(ProfileIdx()))
' .Right = CInt(*sKeyValue(ProfileIdx()))
' .Bottom = CInt(*sKeyValue(ProfileIdx()))
'End If
mTextClock.mShowSecond = CBool(*sKeyValue(ProfileIdx()))
mTextClock.mBlinkColon = CBool(*sKeyValue(ProfileIdx()))
mTextClock.mShadowEnabled = CBool(*sKeyValue(ProfileIdx()))
mTextClock.mBackEnabled = CBool(*sKeyValue(ProfileIdx()))
mTextClock.FileName = FullNameFromFile(*sKeyValue(ProfileIdx()))
mTextClock.mBackAlpha = CULng(*sKeyValue(ProfileIdx()))
mTextClock.mBackBlur = CInt(*sKeyValue(ProfileIdx()))
mTextClock.mPanelEnabled = CBool(*sKeyValue(ProfileIdx()))
mTextClock.mPanelColor = CULng(*sKeyValue(ProfileIdx()))
mTextClock.mPanelAlpha = CULng(*sKeyValue(ProfileIdx()))
mTextClock.mOutlineEnabled = CBool(*sKeyValue(ProfileIdx()))
mTextClock.mOutlineSize = CSng(*sKeyValue(ProfileIdx()))
mTextClock.mOutlineAlpha = CULng(*sKeyValue(ProfileIdx()))
mTextClock.mOutlineColor = CULng(*sKeyValue(ProfileIdx()))
WLet(mTextClock.mFontName, *sKeyValue(ProfileIdx()))
mTextClock.mFontStyle = CLng(*sKeyValue(ProfileIdx()))
mTextAlpha1 = CULng(*sKeyValue(ProfileIdx()))
mTextAlpha2 = CULng(*sKeyValue(ProfileIdx()))
mTextClock.mTextBlur = CInt(*sKeyValue(ProfileIdx()))
mTextClock.mBorderEnabled = CBool(*sKeyValue(ProfileIdx()))
mTextClock.mBorderSize = CDbl(*sKeyValue(ProfileIdx()))
mTextClock.mBorderAlpha = CULng(*sKeyValue(ProfileIdx()))
mTextClock.mBorderColor = CULng(*sKeyValue(ProfileIdx()))
mTextColor1 = CULng(*sKeyValue(ProfileIdx()))
mTextColor2 = CULng(*sKeyValue(ProfileIdx()))
IndexOfTextColor = CInt(*sKeyValue(ProfileIdx()))
IndexOfGradientMode = CLng(*sKeyValue(ProfileIdx()))
ProfileIdx(mSetDayStart)
If *sKeyValue(ProfileIdx()) <> "" Then
ProfileIdx(mSetDayStart)
With mRectDay
.Left = CLng(*sKeyValue(ProfileIdx()))
.Top = CLng(*sKeyValue(ProfileIdx()))
.Right = CLng(*sKeyValue(ProfileIdx()))
.Bottom = CLng(*sKeyValue(ProfileIdx()))
End With
WLet(frmDay.mDay.mFontName, *sKeyValue(ProfileIdx()))
frmDay.mDay.mForeColor(DayFocus) = CULng(*sKeyValue(ProfileIdx()))
frmDay.mDay.mForeColor(DayYear) = CULng(*sKeyValue(ProfileIdx()))
frmDay.mDay.mForeColor(DayMonth) = CULng(*sKeyValue(ProfileIdx()))
frmDay.mDay.mForeColor(DayDay) = CULng(*sKeyValue(ProfileIdx()))
frmDay.mDay.mForeColor(DayWeek) = CULng(*sKeyValue(ProfileIdx()))
frmDay.mDay.mSplitXScale = CSng(*sKeyValue(ProfileIdx()))
frmDay.mDay.mShowStyle = CInt(*sKeyValue(ProfileIdx()))
frmDay.mDay.mTrayEnabled = CBool(*sKeyValue(ProfileIdx()))
frmDay.mDay.mBackColor(DayFocus) = CULng(*sKeyValue(ProfileIdx()))
frmDay.mDay.mBackColor(DayYear) = CULng(*sKeyValue(ProfileIdx()))
frmDay.mDay.mBackColor(DayMonth) = CULng(*sKeyValue(ProfileIdx()))
frmDay.mDay.mBackColor(DayDay) = CULng(*sKeyValue(ProfileIdx()))
frmDay.mDay.mBackColor(DayWeek) = CULng(*sKeyValue(ProfileIdx()))
frmDay.mDay.mBackAlpha(DayFocus) = CULng(*sKeyValue(ProfileIdx()))
frmDay.mDay.mBackAlpha(DayYear) = CULng(*sKeyValue(ProfileIdx()))
frmDay.mDay.mBackAlpha(DayMonth) = CULng(*sKeyValue(ProfileIdx()))
frmDay.mDay.mBackAlpha(DayDay) = CULng(*sKeyValue(ProfileIdx()))
frmDay.mDay.mBackAlpha(DayWeek) = CULng(*sKeyValue(ProfileIdx()))
frmDay.mDay.mBackEnabled = CBool(*sKeyValue(ProfileIdx()))
frmDay.mDay.mBackImage.ImageFile = FullNameFromFile(*sKeyValue(ProfileIdx()))
frmDay.mDay.mBackAlpha(DayImageFile) = CULng(*sKeyValue(ProfileIdx()))
frmDay.mDay.mBackBlur = CInt(*sKeyValue(ProfileIdx()))
frmDay.mDay.mPanelEnabled = CBool(*sKeyValue(ProfileIdx()))
frmDay.mDay.mBackColor(DayPanel) = CULng(*sKeyValue(ProfileIdx()))
frmDay.mDay.mBackAlpha(DayPanel) = CULng(*sKeyValue(ProfileIdx()))
frmDay.mDay.mOutlineEnabled = CBool(*sKeyValue(ProfileIdx()))
frmDay.mDay.mOutlineSize = CSng(*sKeyValue(ProfileIdx()))
frmDay.mDay.mForeColor(DayPanel) = CULng(*sKeyValue(ProfileIdx()))
frmDay.mDay.mForeAlpha(DayPanel) = CULng(*sKeyValue(ProfileIdx()))
End If
ProfileIdx(mSetMonthStart)
If *sKeyValue(ProfileIdx()) <> "" Then
ProfileIdx(mSetMonthStart)
With mRectMonth
.Left = CLng(*sKeyValue(ProfileIdx()))
.Top = CLng(*sKeyValue(ProfileIdx()))
.Right = CLng(*sKeyValue(ProfileIdx()))
.Bottom = CLng(*sKeyValue(ProfileIdx()))
End With
frmMonth.mMonth.mShowControls = CBool(*sKeyValue(ProfileIdx()))
frmMonth.mMonth.mShowWeeks = CBool(*sKeyValue(ProfileIdx()))
frmMonth.mMonth.mTrayEnabled = CBool(*sKeyValue(ProfileIdx()))
frmMonth.mMonth.mBackColor(MonthFocus) = CULng(*sKeyValue(ProfileIdx()))
frmMonth.mMonth.mBackColor(MonthControl) = CULng(*sKeyValue(ProfileIdx()))
frmMonth.mMonth.mBackColor(MonthWeek) = CULng(*sKeyValue(ProfileIdx()))
frmMonth.mMonth.mBackColor(MonthDay) = CULng(*sKeyValue(ProfileIdx()))
frmMonth.mMonth.mBackAlpha(MonthFocus) = CULng(*sKeyValue(ProfileIdx()))
frmMonth.mMonth.mBackAlpha(MonthControl) = CULng(*sKeyValue(ProfileIdx()))
frmMonth.mMonth.mBackAlpha(MonthWeek) = CULng(*sKeyValue(ProfileIdx()))
frmMonth.mMonth.mBackAlpha(MonthDay) = CULng(*sKeyValue(ProfileIdx()))
WLet(frmMonth.mMonth.mFontName, *sKeyValue(ProfileIdx()))
frmMonth.mMonth.mForeColor(MonthFocus) = CULng(*sKeyValue(ProfileIdx()))
frmMonth.mMonth.mForeColor(MonthControl) = CULng(*sKeyValue(ProfileIdx()))
frmMonth.mMonth.mForeColor(MonthWeek) = CULng(*sKeyValue(ProfileIdx()))
frmMonth.mMonth.mForeColor(MonthDay) = CULng(*sKeyValue(ProfileIdx()))
frmMonth.mMonth.mForeColor(MonthSelect) = CULng(*sKeyValue(ProfileIdx()))
frmMonth.mMonth.mForeColor(MonthToday) = CULng(*sKeyValue(ProfileIdx()))
frmMonth.mMonth.mForeColor(MonthHoliday) = CULng(*sKeyValue(ProfileIdx()))
frmMonth.mMonth.mBackEnabled = CBool(*sKeyValue(ProfileIdx()))
frmMonth.mMonth.mBackImage.ImageFile = FullNameFromFile(*sKeyValue(ProfileIdx()))
frmMonth.mMonth.mBackAlpha(MonthImageFile) = CULng(*sKeyValue(ProfileIdx()))
frmMonth.mMonth.mBackBlur = CInt(*sKeyValue(ProfileIdx()))
frmMonth.mMonth.mPanelEnabled = CBool(*sKeyValue(ProfileIdx()))
frmMonth.mMonth.mBackColor(MonthPanel) = CULng(*sKeyValue(ProfileIdx()))
frmMonth.mMonth.mBackAlpha(MonthPanel) = CULng(*sKeyValue(ProfileIdx()))
frmMonth.mMonth.mOutlineEnabled = CBool(*sKeyValue(ProfileIdx()))
frmMonth.mMonth.mOutlineSize = CSng(*sKeyValue(ProfileIdx()))
frmMonth.mMonth.mForeColor(MonthPanel) = CULng(*sKeyValue(ProfileIdx()))
frmMonth.mMonth.mForeAlpha(MonthPanel) = CULng(*sKeyValue(ProfileIdx()))
End If
ProfileIdx(mSetSpeechStart)
IndexOfAnnouce = CInt(*sKeyValue(ProfileIdx()))
IndexOfVoice = *sKeyValue(ProfileIdx())
IndexOfAudio = *sKeyValue(ProfileIdx())
End Sub
Private Sub frmClockType.ProfileFrmClock(sKeyValue() As WString Ptr)
ProfileIdx(mSetMainStart)
WLet(sKeyValue(ProfileIdx()), "" & Left)
WLet(sKeyValue(ProfileIdx()), "" & Top)
WLet(sKeyValue(ProfileIdx()), "" & Width)
WLet(sKeyValue(ProfileIdx()), "" & Height)
WLet(sKeyValue(ProfileIdx()), "" & mnuAlwaysOnTop.Checked)
WLet(sKeyValue(ProfileIdx()), "" & mnuClickThrough.Checked)
WLet(sKeyValue(ProfileIdx()), "" & mnuAnalogEnabled.Checked)
WLet(sKeyValue(ProfileIdx()), "" & mnuTextEnabled.Checked)
WLet(sKeyValue(ProfileIdx()), "" & mnuDayEnabled.Checked) 'mShowDay)
WLet(sKeyValue(ProfileIdx()), "" & mnuMonthEnabled.Checked) 'mShowMonth)
WLet(sKeyValue(ProfileIdx()), "" & mnuTransparent.Checked) 'mTransparent)
WLet(sKeyValue(ProfileIdx()), "" & mOpacity)
WLet(sKeyValue(ProfileIdx()), "" & mnuLocateSticky.Checked)
WLet(sKeyValue(ProfileIdx()), "" & mnuHide.Checked)
WLet(sKeyValue(ProfileIdx()), "" & mnuProfileSaveOnExit.Checked)
ProfileIdx(mSetAnalogStart)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mBackEnabled)
WLet(sKeyValue(ProfileIdx()), FullName2File(mAnalogClock.FileName))
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mBackAlpha)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mBackBlur)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mPanelEnabled)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mPanelColor)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mPanelAlpha)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mOutlineEnabled)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mOutlineSize)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mOutlineColor)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mOutlineAlpha)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mTrayEnabled)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mTrayFaceColor1)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mTrayFaceAlpha1)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mTrayFaceColor2)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mTrayFaceAlpha2)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mTrayEdgeColor1)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mTrayEdgeAlpha1)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mTrayEdgeColor2)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mTrayEdgeAlpha2)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mTrayShadowColor)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mTrayShadowAlpha)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mTrayAlpha)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mTrayBlur)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mScaleEnabled)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mScaleColor)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mScaleAlpha)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mScaleBlur)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mHandEnabled)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mHandSecondEnabled)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mHandSecondColor)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mHandMinuteEnabled)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mHandMinuteColor)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mHandHourEnabled)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mHandHourColor)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mHandAlpha)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mHandBlur)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mTextEnabled)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mTextSize)
WLet(sKeyValue(ProfileIdx()), *mAnalogClock.mTextFont)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mTextBold)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mTextColor)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mTextOffsetX)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mTextOffsetY)
WLet(sKeyValue(ProfileIdx()), *mAnalogClock.mTextFormat)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mTextAlpha)
WLet(sKeyValue(ProfileIdx()), "" & mAnalogClock.mTextBlur)
ProfileIdx(mSetTextStart)
WLet(sKeyValue(ProfileIdx()), "" & mTextClock.mShowSecond)
WLet(sKeyValue(ProfileIdx()), ""& mTextClock.mBlinkColon)
WLet(sKeyValue(ProfileIdx()), ""& mTextClock.mShadowEnabled)
WLet(sKeyValue(ProfileIdx()), ""& mTextClock.mBackEnabled)
WLet(sKeyValue(ProfileIdx()), FullName2File(mTextClock.FileName))
WLet(sKeyValue(ProfileIdx()), ""& mTextClock.mBackAlpha)
WLet(sKeyValue(ProfileIdx()), ""& mTextClock.mBackBlur)
WLet(sKeyValue(ProfileIdx()), "" & mTextClock.mPanelEnabled)
WLet(sKeyValue(ProfileIdx()), "" & mTextClock.mPanelColor)
WLet(sKeyValue(ProfileIdx()), "" & mTextClock.mPanelAlpha)
WLet(sKeyValue(ProfileIdx()), "" & mTextClock.mOutlineEnabled)
WLet(sKeyValue(ProfileIdx()), "" & mTextClock.mOutlineSize)
WLet(sKeyValue(ProfileIdx()), "" & mTextClock.mOutlineAlpha)
WLet(sKeyValue(ProfileIdx()), "" & mTextClock.mOutlineColor)
WLet(sKeyValue(ProfileIdx()), *mTextClock.mFontName)
WLet(sKeyValue(ProfileIdx()), ""& mTextClock.mFontStyle)
WLet(sKeyValue(ProfileIdx()), ""& mTextAlpha1)
WLet(sKeyValue(ProfileIdx()), ""& mTextAlpha2)
WLet(sKeyValue(ProfileIdx()), ""& mTextClock.mTextBlur)
WLet(sKeyValue(ProfileIdx()), ""& mTextClock.mBorderEnabled)
WLet(sKeyValue(ProfileIdx()), ""& mTextClock.mBorderSize)
WLet(sKeyValue(ProfileIdx()), ""& mTextClock.mBorderAlpha)
WLet(sKeyValue(ProfileIdx()), ""& mTextClock.mBorderColor)
WLet(sKeyValue(ProfileIdx()), ""& mTextColor1)
WLet(sKeyValue(ProfileIdx()), ""& mTextColor2)
WLet(sKeyValue(ProfileIdx()), ""& IndexOfTextColor)
WLet(sKeyValue(ProfileIdx()), "" & IndexOfGradientMode)
ProfileIdx(mSetDayStart)
WLet(sKeyValue(ProfileIdx()), "" & frmDay.Left)
WLet(sKeyValue(ProfileIdx()), "" & frmDay.Top)
WLet(sKeyValue(ProfileIdx()), "" & frmDay.Width)
WLet(sKeyValue(ProfileIdx()), "" & frmDay.Height)
WLet(sKeyValue(ProfileIdx()), *frmDay.mDay.mFontName)
WLet(sKeyValue(ProfileIdx()), "" & frmDay.mDay.mForeColor(DayFocus))
WLet(sKeyValue(ProfileIdx()), "" & frmDay.mDay.mForeColor(DayYear))
WLet(sKeyValue(ProfileIdx()), "" & frmDay.mDay.mForeColor(DayMonth))
WLet(sKeyValue(ProfileIdx()), "" & frmDay.mDay.mForeColor(DayDay))
WLet(sKeyValue(ProfileIdx()), "" & frmDay.mDay.mForeColor(DayWeek))
WLet(sKeyValue(ProfileIdx()), "" & frmDay.mDay.mSplitXScale)
WLet(sKeyValue(ProfileIdx()), "" & frmDay.mDay.mShowStyle)
WLet(sKeyValue(ProfileIdx()), "" & frmDay.mDay.mTrayEnabled)
WLet(sKeyValue(ProfileIdx()), "" & frmDay.mDay.mBackColor(DayFocus))
WLet(sKeyValue(ProfileIdx()), "" & frmDay.mDay.mBackColor(DayYear))
WLet(sKeyValue(ProfileIdx()), "" & frmDay.mDay.mBackColor(DayMonth))
WLet(sKeyValue(ProfileIdx()), "" & frmDay.mDay.mBackColor(DayDay))
WLet(sKeyValue(ProfileIdx()), "" & frmDay.mDay.mBackColor(DayWeek))
WLet(sKeyValue(ProfileIdx()), "" & frmDay.mDay.mBackAlpha(DayFocus))
WLet(sKeyValue(ProfileIdx()), "" & frmDay.mDay.mBackAlpha(DayYear))
WLet(sKeyValue(ProfileIdx()), "" & frmDay.mDay.mBackAlpha(DayMonth))
WLet(sKeyValue(ProfileIdx()), "" & frmDay.mDay.mBackAlpha(DayDay))
WLet(sKeyValue(ProfileIdx()), "" & frmDay.mDay.mBackAlpha(DayWeek))
WLet(sKeyValue(ProfileIdx()), "" & frmDay.mDay.mBackEnabled)
WLet(sKeyValue(ProfileIdx()), FullName2File(frmDay.mDay.mBackImage.ImageFile))
WLet(sKeyValue(ProfileIdx()), "" & frmDay.mDay.mBackAlpha(DayImageFile))
WLet(sKeyValue(ProfileIdx()), "" & frmDay.mDay.mBackBlur)
WLet(sKeyValue(ProfileIdx()), "" & frmDay.mDay.mPanelEnabled)
WLet(sKeyValue(ProfileIdx()), "" & frmDay.mDay.mBackColor(DayPanel))
WLet(sKeyValue(ProfileIdx()), "" & frmDay.mDay.mBackAlpha(DayPanel))
WLet(sKeyValue(ProfileIdx()), "" & frmDay.mDay.mOutlineEnabled)
WLet(sKeyValue(ProfileIdx()), "" & frmDay.mDay.mOutlineSize)
WLet(sKeyValue(ProfileIdx()), "" & frmDay.mDay.mForeColor(DayPanel))
WLet(sKeyValue(ProfileIdx()), "" & frmDay.mDay.mForeAlpha(DayPanel))
ProfileIdx(mSetMonthStart)
WLet(sKeyValue(ProfileIdx()), "" & frmMonth.Left)
WLet(sKeyValue(ProfileIdx()), "" & frmMonth.Top)
WLet(sKeyValue(ProfileIdx()), "" & frmMonth.Width)
WLet(sKeyValue(ProfileIdx()), "" & frmMonth.Height)
WLet(sKeyValue(ProfileIdx()), "" & frmMonth.mMonth.mShowControls)
WLet(sKeyValue(ProfileIdx()), "" & frmMonth.mMonth.mShowWeeks)
WLet(sKeyValue(ProfileIdx()), "" & frmMonth.mMonth.mTrayEnabled)
WLet(sKeyValue(ProfileIdx()), "" & frmMonth.mMonth.mBackColor(MonthFocus))
WLet(sKeyValue(ProfileIdx()), "" & frmMonth.mMonth.mBackColor(MonthControl))
WLet(sKeyValue(ProfileIdx()), "" & frmMonth.mMonth.mBackColor(MonthWeek))
WLet(sKeyValue(ProfileIdx()), "" & frmMonth.mMonth.mBackColor(MonthDay))
WLet(sKeyValue(ProfileIdx()), "" & frmMonth.mMonth.mBackAlpha(MonthFocus))
WLet(sKeyValue(ProfileIdx()), "" & frmMonth.mMonth.mBackAlpha(MonthControl))
WLet(sKeyValue(ProfileIdx()), "" & frmMonth.mMonth.mBackAlpha(MonthWeek))
WLet(sKeyValue(ProfileIdx()), "" & frmMonth.mMonth.mBackAlpha(MonthDay))
WLet(sKeyValue(ProfileIdx()), *frmMonth.mMonth.mFontName)
WLet(sKeyValue(ProfileIdx()), "" & frmMonth.mMonth.mForeColor(MonthFocus))
WLet(sKeyValue(ProfileIdx()), "" & frmMonth.mMonth.mForeColor(MonthControl))
WLet(sKeyValue(ProfileIdx()), "" & frmMonth.mMonth.mForeColor(MonthWeek))
WLet(sKeyValue(ProfileIdx()), "" & frmMonth.mMonth.mForeColor(MonthDay))
WLet(sKeyValue(ProfileIdx()), "" & frmMonth.mMonth.mForeColor(MonthSelect))
WLet(sKeyValue(ProfileIdx()), "" & frmMonth.mMonth.mForeColor(MonthToday))
WLet(sKeyValue(ProfileIdx()), "" & frmMonth.mMonth.mForeColor(MonthHoliday))
WLet(sKeyValue(ProfileIdx()), "" & frmMonth.mMonth.mBackEnabled)
WLet(sKeyValue(ProfileIdx()), FullName2File(frmMonth.mMonth.mBackImage.ImageFile))
WLet(sKeyValue(ProfileIdx()), "" & frmMonth.mMonth.mBackAlpha(MonthImageFile))
WLet(sKeyValue(ProfileIdx()), "" & frmMonth.mMonth.mBackBlur)
WLet(sKeyValue(ProfileIdx()), "" & frmMonth.mMonth.mPanelEnabled)
WLet(sKeyValue(ProfileIdx()), "" & frmMonth.mMonth.mBackColor(MonthPanel))
WLet(sKeyValue(ProfileIdx()), "" & frmMonth.mMonth.mBackAlpha(MonthPanel))
WLet(sKeyValue(ProfileIdx()), "" & frmMonth.mMonth.mOutlineEnabled)
WLet(sKeyValue(ProfileIdx()), "" & frmMonth.mMonth.mOutlineSize)
WLet(sKeyValue(ProfileIdx()), "" & frmMonth.mMonth.mForeColor(MonthPanel))
WLet(sKeyValue(ProfileIdx()), "" & frmMonth.mMonth.mForeAlpha(MonthPanel))
ProfileIdx(mSetSpeechStart)
WLet(sKeyValue(ProfileIdx()), "" & IndexOfAnnouce)
WLet(sKeyValue(ProfileIdx()), "" & IndexOfVoice)
WLet(sKeyValue(ProfileIdx()), "" & IndexOfAudio)
End Sub
Private Function frmClockType.ProfileLoad(sFileName As WString, sKeyValue() As WString Ptr) As Boolean
If Dir(sFileName) = "" Then Return False
Dim s As WString Ptr
'WLet(s, TextFromFile(sFileName))
TextFromFile(sFileName,s)
Dim ss() As WString Ptr
Dim i As Integer
Dim j As Integer = SplitWStr(*s, !"\r\n", ss())
Dim k As Integer
Dim l As Integer
Dim m As Integer
With mRectMain
.Left = This.Left
.Top = This.Top
.Right = This.Width
.Bottom = This.Height
End With
For i = 0 To j
l = Len(*ss(i))
For k = 0 To mKeyCount
m = InStr(*ss(i), *mKeyName(k))
If m = 6 Then
WLet(sKeyValue(k), Mid(*ss(i), m + mKeyNameLen(k), l - mKeyNameLen(k)))
Exit For
End If
Next
Next
ArrayDeallocate(ss())
Deallocate(s)
Return True
End Function
Private Sub frmClockType.ProfileSave(sFileName As WString, sKeyValue() As WString Ptr)
Dim ss() As WString Ptr
Dim i As Integer
ReDim ss(mKeyCount)
ProfileFrmClock(sKeyValue())
For i = 0 To mKeyCount
WLet(ss(i), Format(i, "000") & ". " & *mKeyName(i) & *sKeyValue(i))
Next
Dim s As WString Ptr
JoinWStr(ss(), !"\r\n", s)
If Dir(sFileName) <> "" Then Kill(sFileName)
TextToFile(sFileName, *s)
ArrayDeallocate(ss())
Deallocate(s)
End Sub
Private Sub frmClockType.SpeechNow(sDt As Double, ByVal sLan As Integer = 0)
Dim As WString Ptr s
Dim m As Integer = Minute(sDt)
Dim h As Integer = Hour(sDt)
Dim s2(2) As String
Select Case sLan
Case 0
s2(0) = "It's {hour} o'clock"
s2(1) = "It's {hour} {minute}"
s2(2) = "It's {hour} {minute}"
Case 1
s2(0) = "现在是 {hour} 点整"
s2(1) = "现在是 {hour} 点 {minute} 分"
s2(2) = "现在是 {hour} 点 {minute} 分"
End Select
Select Case m
Case 0
WLet(s, Replace(Replace(s2(0), "{hour}", "" & h), "{minute}", Format(m, "00")))
Case 30
WLet(s, Replace(Replace(s2(1), "{hour}", "" & h), "{minute}", Format(m, "00")))
Case Else
WLet(s, Replace(Replace(s2(2), "{hour}", "" & h), "{minute}", Format(m, "00")))
End Select
#ifdef __USE_WINAPI__
If pSpVoice Then pSpVoice->Speak(s, SVSFlagsAsync, NULL)
Notify(!"VisualFBEditor GDIP Clock\0", *s)
#endif
WDeAllocate(s)
End Sub
Private Sub frmClockType.SpeechInit()
#ifdef __USE_WINAPI__
' Create an instance of the SpVoice object
Dim classID As IID, riid As IID
CLSIDFromString(CLSID_SpVoice, @classID)
IIDFromString(IID_ISpVoice, @riid)
CoCreateInstance(@classID, NULL, CLSCTX_ALL, @riid, @pSpVoice)
If pSpVoice = NULL Then Exit Sub
mnuAnnounce.Enabled = True
' Set the object of interest to word boundaries
pSpVoice->SetInterest(SPFEI(SPEI_WORD_BOUNDARY), SPFEI(SPEI_WORD_BOUNDARY))
' Set the handle of the window that will receive the MSG_SAPI_EVENT message
pSpVoice->SetNotifyWindowMessage(Handle, MSG_SAPI_EVENT, 0, 0)
Dim pVoice As ISpObjectToken Ptr
Dim pAudio As ISpObjectToken Ptr
Dim pTokenCategory As ISpObjectTokenCategory Ptr
Dim pTokenEnum As IEnumSpObjectTokens Ptr
Dim pTokenItem As ISpObjectToken Ptr
Dim pStr As WString Ptr = CAllocate(0, 2048)
Dim pCount As Long
Dim i As Long
pSpVoice->GetVoice(@pVoice)
pVoice->GetCategory(@pTokenCategory)
pTokenCategory->EnumTokens(@"", @"", @pTokenEnum)
pTokenEnum->GetCount(@pCount)
mVoiceCount = pCount - 1
If mVoiceCount >-1 Then
ReDim mnuVoiceSub(mVoiceCount)
For i = 0 To mVoiceCount
pTokenEnum->Item(i, @pTokenItem)
pTokenItem->GetStringValue(NULL, @pStr)
mnuVoiceSub(i) = New MenuItem
mnuVoiceSub(i)->Designer = @This
mnuVoiceSub(i)->Parent = @mnuVoice
mnuVoiceSub(i)->Name = "mnuVoiceSub" & i
mnuVoiceSub(i)->Caption = *pStr
mnuVoiceSub(i)->OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
mnuVoiceSub(i)->Tag = pTokenItem
mnuVoice.Add mnuVoiceSub(i)
Next
mnuVoiceSub(0)->Checked = True
mnuVoice.Enabled = True
mnuMenu_Click(*mnuVoiceSub(0))
pVoice->Release()
pVoice = NULL
pTokenCategory->Release()
pTokenCategory = NULL
pTokenEnum->Release()
pTokenEnum = NULL
End If
pSpVoice->GetOutputObjectToken(@pAudio)
pAudio->GetCategory(@pTokenCategory)
pTokenCategory->EnumTokens(@"", @"", @pTokenEnum)
pTokenEnum->GetCount(@pCount)
mAudioCount = pCount - 1
If mAudioCount >-1 Then
ReDim mnuAudioSub(mAudioCount)
For i = 0 To mAudioCount
pTokenEnum->Item(i, @pTokenItem)
pTokenItem->GetStringValue(NULL, @pStr)
mnuAudioSub(i) = New MenuItem
mnuAudioSub(i)->Designer = @This
mnuAudioSub(i)->Parent = @mnuAudio
mnuAudioSub(i)->Name = "mnuAudioSub" & i
mnuAudioSub(i)->Caption = *pStr
mnuAudioSub(i)->OnClick = Cast(Sub(ByRef Designer As My.Sys.Object, ByRef Sender As MenuItem), @mnuMenu_Click)
mnuAudioSub(i)->Tag = pTokenItem
mnuAudio.Add mnuAudioSub(i)
Next
mnuAudioSub(0)->Checked = True
pAudio->Release()
pAudio = NULL
pTokenCategory->Release()
pTokenCategory = NULL
pTokenEnum->Release()
pTokenEnum = NULL
mnuAudio.Enabled = True
End If
#endif
End Sub
Private Property frmClockType.IndexOfTextColor(v As Integer)
mnuTextBlack.Checked = False
mnuTextWhite.Checked = False
mnuTextRed.Checked = False
mnuTextGreen.Checked = False
mnuTextBlue.Checked = False
mnuTextGradient.Checked = False
Select Case v
Case 0
mTextClock.TextColor(&H000000, &H000000)
mnuTextBlack.Checked = True
Case 1
mTextClock.TextColor(&HFFFFFF, &HFFFFFF)
mnuTextWhite.Checked = True
Case 2
mTextClock.TextColor(&HFF0000, &HFF0000)
mnuTextRed.Checked = True
Case 3
mTextClock.TextColor(&H00FF00, &H00FF00)
mnuTextGreen.Checked = True
Case 4
mTextClock.TextColor(&H0000FF, &H0000FF)
mnuTextBlue.Checked = True
Case Else
mTextClock.TextColor(mTextColor1, mTextColor2)
mnuTextGradient.Checked = True
End Select
End Property
Private Property frmClockType.IndexOfTextColor() As Integer
If mnuTextBlack.Checked Then Return 0
If mnuTextWhite.Checked Then Return 1
If mnuTextRed.Checked Then Return 2
If mnuTextGreen.Checked Then Return 3
If mnuTextBlue.Checked Then Return 4
If mnuTextGradient.Checked Then Return 5
Return 0
End Property
Private Property frmClockType.IndexOfLocateH(v As Integer)
Select Case v
Case 0
Left = 0
Case 1
Left = (mScreenWidth / xdpi - Width) / 2
Case 2
Left = mScreenWidth / xdpi - Width
End Select
End Property
Private Property frmClockType.IndexOfLocateH() As Integer
If mnuLocateLeft.Checked Then Return 0
If mnuLocateHorizontalMiddle.Checked Then Return 1
If mnuLocateRight.Checked Then Return 2
Return 0
End Property
Private Property frmClockType.IndexOfLocateV(v As Integer)
Select Case v
Case 0
Top = 0
Case 1
Top = (mScreenHeight / ydpi - Height) / 2
Case 2
Top = mScreenHeight / ydpi - Height
End Select
End Property
Private Property frmClockType.IndexOfLocateV() As Integer
If mnuLocateTop.Checked Then Return 0
If mnuLocateVerticalMiddle.Checked Then Return 1
If mnuLocateBottom.Checked Then Return 2
Return 0
End Property
Private Property frmClockType.IndexOfGradientMode(v As Integer)
mnuTextGradientMode1.Checked = False
mnuTextGradientMode2.Checked = False
mnuTextGradientMode3.Checked = False
mnuTextGradientMode4.Checked = False
Select Case v
Case LinearGradientModeVertical
mnuTextGradientMode1.Checked = True
Case LinearGradientModeHorizontal
mnuTextGradientMode2.Checked = True
Case LinearGradientModeForwardDiagonal
mnuTextGradientMode3.Checked = True
Case Else
mnuTextGradientMode4.Checked = True
End Select
mTextClock.mGradientMode = v
End Property
Private Property frmClockType.IndexOfGradientMode() As Integer
If mnuTextGradientMode1.Checked Then Return LinearGradientModeVertical
If mnuTextGradientMode2.Checked Then Return LinearGradientModeHorizontal
If mnuTextGradientMode3.Checked Then Return LinearGradientModeForwardDiagonal
If mnuTextGradientMode4.Checked Then Return LinearGradientModeBackwardDiagonal
Return LinearGradientModeVertical
End Property
Private Property frmClockType.IndexOfAnnouce(v As Integer)
mnuAnnounce0.Checked = False
mnuAnnounce1.Checked = False
mnuAnnounce2.Checked = False
mnuAnnounce3.Checked = False
Select Case v
Case 0
mnuAnnounce0.Checked = True
Case 1
mnuAnnounce1.Checked = True
Case 2
mnuAnnounce2.Checked = True
Case Else
mnuAnnounce3.Checked = True
End Select
End Property
Private Property frmClockType.IndexOfAnnouce() As Integer
If mnuAnnounce0.Checked Then Return 0
If mnuAnnounce1.Checked Then Return 1
If mnuAnnounce2.Checked Then Return 2
If mnuAnnounce3.Checked Then Return 3
Return 0
End Property
Private Property frmClockType.IndexOfVoice(ByRef v As WString)
Dim i As Integer
For i = 0 To mVoiceCount
If mnuVoiceSub(i)->Caption = v Then
mnuMenu_Click(*mnuVoiceSub(i))
Exit Property
End If
Next
End Property
Private Property frmClockType.IndexOfVoice() ByRef As WString
Dim i As Integer
For i = 0 To mVoiceCount
If mnuVoiceSub(i)->Checked Then
Return mnuVoiceSub(i)->Caption
End If
Next
End Property
Private Property frmClockType.IndexOfAudio(ByRef v As WString)
Dim i As Integer
For i = 0 To mAudioCount
If mnuAudioSub(i)->Caption = v Then
mnuMenu_Click(*mnuAudioSub(i))
Exit Property
End If
Next
End Property
Private Property frmClockType.IndexOfAudio() ByRef As WString
Dim i As Integer
For i = 0 To mAudioCount
If mnuAudioSub(i)->Checked Then
Return mnuAudioSub(i)->Caption
End If
Next
End Property
Private Sub frmClockType.mnuMenu_Click(ByRef Sender As MenuItem)
Select Case Sender.Name
Case "mnuAlwaysOnTop"
Sender.Checked = Not Sender.Checked
FormStyle = IIf(Sender.Checked, FormStyles.fsStayOnTop, FormStyles.fsNormal)
Case "mnuClickThrough"
Sender.Checked = Not Sender.Checked
SetWindowLong(Handle, GWL_EXSTYLE, IIf(Sender.Checked, GetWindowLong(Handle, GWL_EXSTYLE) Or WS_EX_TRANSPARENT, GetWindowLong(Handle, GWL_EXSTYLE) And Not WS_EX_TRANSPARENT))
Case "mnuAutoStart"
Sender.Checked = Not Sender.Checked
AutoStartReg Sender.Checked
CheckAutoStart
Case "mnuAnalogEnabled"
Sender.Checked = True
mnuAnalogSetting.Enabled = True
mnuTextEnabled.Checked = False
mnuTextSetting.Enabled = False
mnuMenu_Click(mnuAspectRatio)
Form_Resize(This, Width, Height)
Case "mnuTextEnabled"
Sender.Checked = True
mnuTextSetting.Enabled = True
mnuAnalogEnabled.Checked = False
mnuAnalogSetting.Enabled = False
mnuMenu_Click(mnuAspectRatio)
Form_Resize(This, Width, Height)
Case "mnuDayEnabled"
Sender.Checked = Not Sender.Checked
If Sender.Checked Then
If mnuLocateSticky.Checked Then
frmDay.Show(This)
Else
frmDay.Show()
End If
Else
frmDay.CloseForm()
End If
mnuDaySetting.Enabled = Sender.Checked
Form_Resize(This, Width, Height)
Case "mnuMonthEnabled"
Sender.Checked = Not Sender.Checked
If Sender.Checked Then
If mnuLocateSticky.Checked Then
frmMonth.Show(This)
Else
frmMonth.Show()
End If
Else
frmMonth.CloseForm()
End If
mnuMonthSetting.Enabled = Sender.Checked
Form_Resize(This, Width, Height)
Case "mnuAspectRatio"
Dim w As Single
Dim h As Single
Dim s As Single
If mnuTransparent.Checked Then
h = 0
w = 0
Else
w = Width - ClientWidth
h = Height - ClientHeight
End If
If mnuTextEnabled.Checked Then
If mnuTextBackEnabled.Checked Then
s = mTextClock.mBackScale
Else
s = mTextClock.mTxtScale
End If
Else
If mnuAnalogBackEnabled.Checked Then
s = mAnalogClock.mBackScale
Else
s = 1
End If
End If
Move(Left, Top, Width, h + (Width - w)*s)
Case "mnuTransparent"
Sender.Checked = Not Sender.Checked
mnuTransparent.Checked = Sender.Checked
Transparent(Sender.Checked)
mnuMenu_Click(mnuAspectRatio)
If frmDay.Handle Then frmDay.Transparent(Sender.Checked)
If frmMonth.Handle Then frmMonth.Transparent(Sender.Checked)
Case "mnuOpacityValue"
Dim As String s = InputBox("GDIP Clock", "Opacity", "&H" & Hex(mOpacity), , , Handle)
mOpacity = CInt(s)
Form_Resize(This, Width, Height)
Case "mnuHide"
Sender.Checked = Not Sender.Checked
This.Visible = Sender.Checked = False
Case "mnuTest"
Sender.Checked = Not Sender.Checked
If Sender.Checked Then
TestBackup
TimerComponent2.Enabled = Sender.Checked
Else
TimerComponent2.Enabled = Sender.Checked
TestRestore
End If
Case "mnuAbout"
MsgBox(!"Visual FB Editor\r\nGDIP Clock\r\nBy Cm Wang", "GDIP Clock")
Case "mnuExit"
CloseForm
Case "mnuLocateReset"
If mnuLocateSticky.Checked = False Then mnuMenu_Click(mnuLocateSticky)
IndexOfLocateH = 2
IndexOfLocateV = 0
Case "mnuLocateLeft"
IndexOfLocateH = 0
Case "mnuLocateHorizontalMiddle"
IndexOfLocateH = 1
Case "mnuLocateRight"
IndexOfLocateH = 2
Case "mnuLocateTop"
IndexOfLocateV = 0
Case "mnuLocateVerticalMiddle"
IndexOfLocateV = 1
Case "mnuLocateBottom"
IndexOfLocateV = 2
Case "mnuLocateSticky"
Sender.Checked = Not Sender.Checked
Form_Resize(This, Width, Height)
Case "mnuProfileSaveOnExit"
Sender.Checked = Not Sender.Checked
Case "mnuProfileResetDefault"
TimerComponent1.Enabled = False
Hide()
If frmDay.Handle Then frmDay.CloseForm
If frmMonth.Handle Then frmMonth.CloseForm
Profile2Clock(mKeyValDef())
mTextClock.TextAlpha(mTextAlpha1, mTextAlpha2)
If mRectMain.Right And mRectMain.Bottom Then Move(mRectMain.Left, mRectMain.Top, mRectMain.Right, mRectMain.Bottom)
mnuMenu_Click(mnuAspectRatio)
Show()
Case "mnuProfileSave"
ProfileSave(*mProfileName, mKeyValue())
Form_Resize(This, Width, Height)
FileName2Menu(*mProfileExt)
Notify(!"VisualFBEditor GDIP Clock\0", !"Profile saved.\r\n" & *mProfileName)
Case "mnuProfileSaveAs"
SaveFileDialog1.FileName = *mProfileName
SaveFileDialog1.Filter = "gdipClock Profile|*" & *mProfileExt
SaveFileDialog1.FilterIndex = 1
If SaveFileDialog1.Execute Then
WLet(mProfileName, SaveFileDialog1.FileName)
If Dir(*mProfileName) <> "" Then
If MsgBox(*mProfileName & !"\r\nAre you sure you want to overwrite it?", "The profile already exists.", , ButtonsTypes.btYesNo) <> MessageResult.mrYes Then Exit Sub
End If
ProfileSave(*mProfileName, mKeyValue())
Form_Resize(This, Width, Height)
FileName2Menu(*mProfileExt)
End If
Case "mnuProfileList"
TimerComponent1.Enabled = False
Hide()
If frmDay.Handle Then frmDay.CloseForm
If frmMonth.Handle Then frmMonth.CloseForm
WLet(mProfileName, *mAppPath & Sender.Caption & *mProfileExt)
If ProfileLoad(*mProfileName, mKeyValue()) Then
Profile2Clock(mKeyValue())
Notify(!"VisualFBEditor GDIP Clock\0", !"Profile loaded.\r\n" & *mProfileName)
End If
mTextClock.TextAlpha(mTextAlpha1, mTextAlpha2)
If mRectMain.Right And mRectMain.Bottom Then Move(mRectMain.Left, mRectMain.Top, mRectMain.Right, mRectMain.Bottom)
Show()
Case "mnuAnalogBackEnabled"
mAnalogClock.mBackEnabled = Not mAnalogClock.mBackEnabled
Form_Resize(This, Width, Height)
mnuMenu_Click(mnuAspectRatio)
Case "mnuAnalogBackFile"
OpenFileDialog1.FileName = mAnalogClock.FileName
If OpenFileDialog1.Execute Then
mAnalogClock.FileName = OpenFileDialog1.FileName
Form_Resize(This, Width, Height)
mnuMenu_Click(mnuAspectRatio)
End If
Case "mnuAnalogSquare"
Move(Left, Top, Width, Width)
Form_Resize(This, Width, Height)
Case "mnuAnalogHandEnabled"
mAnalogClock.mHandEnabled = Not mAnalogClock.mHandEnabled
Form_Resize(This, Width, Height)
Case "mnuAnalogHandSecondEnabled"
mAnalogClock.mHandSecondEnabled = Not mAnalogClock.mHandSecondEnabled
Form_Resize(This, Width, Height)
Case "mnuAnalogHandMinuteEnabled"
mAnalogClock.mHandMinuteEnabled = Not mAnalogClock.mHandMinuteEnabled
Form_Resize(This, Width, Height)
Case "mnuAnalogHandHourEnabled"
mAnalogClock.mHandHourEnabled = Not mAnalogClock.mHandHourEnabled
Form_Resize(This, Width, Height)
Case "mnuAnalogScaleColor"
ColorDialog1.Color = Color2Gdip(mAnalogClock.mScaleColor)
If ColorDialog1.Execute() Then
mAnalogClock.mScaleColor = Color2Gdip(ColorDialog1.Color)
Form_Resize(This, Width, Height)
End If
Case "mnuAnalogHandSecond"
ColorDialog1.Color = Color2Gdip(mAnalogClock.mHandSecondColor)
If ColorDialog1.Execute() Then
mAnalogClock.mHandSecondColor = Color2Gdip(ColorDialog1.Color)
Form_Resize(This, Width, Height)
End If
Case "mnuAnalogHandMinute"
ColorDialog1.Color = Color2Gdip(mAnalogClock.mHandMinuteColor)
If ColorDialog1.Execute() Then
mAnalogClock.mHandMinuteColor = Color2Gdip(ColorDialog1.Color)
Form_Resize(This, Width, Height)
End If
Case "mnuAnalogHandHour"
ColorDialog1.Color = Color2Gdip(mAnalogClock.mHandHourColor)
If ColorDialog1.Execute() Then
mAnalogClock.mHandHourColor = Color2Gdip(ColorDialog1.Color)
Form_Resize(This, Width, Height)
End If
Case "mnuAnalogPanelEnabled"
mAnalogClock.mPanelEnabled = Not mAnalogClock.mPanelEnabled
Form_Resize(This, Width, Height)
Case "mnuAnalogPanelColor"
ColorDialog1.Color = Color2Gdip(mAnalogClock.mPanelColor)
If ColorDialog1.Execute() Then
mAnalogClock.mPanelColor = Color2Gdip(ColorDialog1.Color)
Form_Resize(This, Width, Height)
End If
Case "mnuAnalogPanelAlpha"
Dim As String s = InputBox("GDIP Clock", "Analog Back Alpha", "&H" & Hex(mAnalogClock.mPanelAlpha), , , Handle)
mAnalogClock.mPanelAlpha = CInt(s)
Form_Resize(This, Width, Height)
Case "mnuAnalogOutlineEnabled"
mAnalogClock.mOutlineEnabled = Not mAnalogClock.mOutlineEnabled
Form_Resize(This, Width, Height)
Case "mnuAnalogOutlineSize"
Dim As String s = InputBox("GDIP Clock", "Analog Outline Size", "" & mAnalogClock.mOutlineSize, , , Handle)
mAnalogClock.mOutlineSize = CSng(s)
Form_Resize(This, Width, Height)
Case "mnuAnalogOutlineColor"
ColorDialog1.Color = Color2Gdip(mAnalogClock.mOutlineColor)
If ColorDialog1.Execute() Then
mAnalogClock.mOutlineColor = Color2Gdip(ColorDialog1.Color)
Form_Resize(This, Width, Height)
End If
Case "mnuAnalogOutlineAlpha"
Dim As String s = InputBox("GDIP Clock", "Analog Outline Alpha", "&H" & Hex(mAnalogClock.mOutlineAlpha), , , Handle)
mAnalogClock.mOutlineAlpha = CInt(s)
Form_Resize(This, Width, Height)
Case "mnuAnalogHandAlpha"
Dim As String s = InputBox("GDIP Clock", "Analog Hand Alpha", "&H" & Hex(mAnalogClock.mHandAlpha), , , Handle)
mAnalogClock.mHandAlpha = CInt(s)
Form_Resize(This, Width, Height)
Case "mnuAnalogHandBlur"
Dim As String s = InputBox("GDIP Clock", "Analog Text Blur", "" & mAnalogClock.mHandBlur, , , Handle)
mAnalogClock.mHandBlur = CInt(s)
Form_Resize(This, Width, Height)
Case "mnuAnalogTrayEnabled"
mAnalogClock.mTrayEnabled = Not mAnalogClock.mTrayEnabled
Form_Resize(This, Width, Height)
Case "mnuAnalogTrayFC1"
ColorDialog1.Color = Color2Gdip(mAnalogClock.mTrayFaceColor1)
If ColorDialog1.Execute() Then
mAnalogClock.mTrayFaceColor1 = Color2Gdip(ColorDialog1.Color)
Form_Resize(This, Width, Height)
End If
Case "mnuAnalogTrayFC2"
ColorDialog1.Color = Color2Gdip(mAnalogClock.mTrayFaceColor2)
If ColorDialog1.Execute() Then
mAnalogClock.mTrayFaceColor2 = Color2Gdip(ColorDialog1.Color)
Form_Resize(This, Width, Height)
End If
Case "mnuAnalogTrayEC1"
ColorDialog1.Color = Color2Gdip(mAnalogClock.mTrayEdgeColor1)
If ColorDialog1.Execute() Then
mAnalogClock.mTrayEdgeColor1 = Color2Gdip(ColorDialog1.Color)
Form_Resize(This, Width, Height)
End If
Case "mnuAnalogTrayEC2"
ColorDialog1.Color = Color2Gdip(mAnalogClock.mTrayEdgeColor2)
If ColorDialog1.Execute() Then
mAnalogClock.mTrayEdgeColor2 = Color2Gdip(ColorDialog1.Color)
Form_Resize(This, Width, Height)
End If
Case "mnuAnalogTrayFA1"
Dim As String s = InputBox("GDIP Clock", "Analog Tray Face Alpha 1", "&H" & Hex(mAnalogClock.mTrayFaceAlpha1), , , Handle)
mAnalogClock.mTrayFaceAlpha1 = CSng(s)
Form_Resize(This, Width, Height)
Case "mnuAnalogTrayFA2"
Dim As String s = InputBox("GDIP Clock", "Analog Tray Face Alpha 2", "&H" & Hex(mAnalogClock.mTrayFaceAlpha2), , , Handle)
mAnalogClock.mTrayFaceAlpha2 = CSng(s)
Form_Resize(This, Width, Height)
Case "mnuAnalogTrayEA1"
Dim As String s = InputBox("GDIP Clock", "Analog Tray Edge Alpha 1", "&H" & Hex(mAnalogClock.mTrayEdgeAlpha1), , , Handle)
mAnalogClock.mTrayEdgeAlpha1 = CSng(s)
Form_Resize(This, Width, Height)
Case "mnuAnalogTrayEA2"
Dim As String s = InputBox("GDIP Clock", "Analog Tray Edge Alpha 2", "&H" & Hex(mAnalogClock.mTrayEdgeAlpha2), , , Handle)
mAnalogClock.mTrayEdgeAlpha2 = CSng(s)
Form_Resize(This, Width, Height)
Case "mnuAnalogTraySC"
ColorDialog1.Color = Color2Gdip(mAnalogClock.mTrayShadowColor)
If ColorDialog1.Execute() Then
mAnalogClock.mTrayShadowColor = Color2Gdip(ColorDialog1.Color)
Form_Resize(This, Width, Height)
End If
Case "mnuAnalogTraySA"
Dim As String s = InputBox("GDIP Clock", "Analog Tray Shadow Alpha", "&H" & Hex(mAnalogClock.mTrayShadowAlpha), , , Handle)
mAnalogClock.mTrayShadowAlpha = CSng(s)
Form_Resize(This, Width, Height)
Case "mnuAnalogScaleEnabled"
mAnalogClock.mScaleEnabled = Not mAnalogClock.mScaleEnabled
Form_Resize(This, Width, Height)
Case "mnuAnalogTextEnabled"
mAnalogClock.mTextEnabled = Not mAnalogClock.mTextEnabled
Form_Resize(This, Width, Height)
Case "mnuAnalogTextSize"
Dim As String s = InputBox("GDIP Clock", "Analog Text Size", "" & mAnalogClock.mTextSize, , , Handle)
mAnalogClock.mTextSize = CSng(s)
Form_Resize(This, Width, Height)
Case "mnuAnalogTextFont"
FontDialog1.Font.Name = *mAnalogClock.mTextFont
FontDialog1.Font.Bold = mAnalogClock.mTextBold
If FontDialog1.Execute Then
WLet(mAnalogClock.mTextFont, FontDialog1.Font.Name)
mAnalogClock.mTextBold = FontDialog1.Font.Bold
Form_Resize(This, Width, Height)
End If
Case "mnuAnalogTextColor"
ColorDialog1.Color = Color2Gdip(mAnalogClock.mTextColor)
If ColorDialog1.Execute() Then
mAnalogClock.mTextColor = Color2Gdip(ColorDialog1.Color)
Form_Resize(This, Width, Height)
End If
Form_Resize(This, Width, Height)
Case "mnuAnalogTextX"
Dim As String s = InputBox("GDIP Clock", "Analog Text Offset X", "" & mAnalogClock.mTextOffsetX, , , Handle)
mAnalogClock.mTextOffsetX = CSng(s)
Form_Resize(This, Width, Height)
Case "mnuAnalogTextY"
Dim As String s = InputBox("GDIP Clock", "Analog Text Offset Y", "" & mAnalogClock.mTextOffsetY, , , Handle)
mAnalogClock.mTextOffsetY = CSng(s)
Form_Resize(This, Width, Height)
Case "mnuAnalogBackAlpha"
Dim As String s = InputBox("GDIP Clock", "Analog Back Alpha", "&H" & Hex(mAnalogClock.mBackAlpha), , , Handle)
mAnalogClock.mBackAlpha = CSng(s)
Form_Resize(This, Width, Height)
Case "mnuAnalogBackBlur"
Dim As String s = InputBox("GDIP Clock", "Analog Back Blur", "" & mAnalogClock.mBackBlur, , , Handle)
mAnalogClock.mBackBlur = CInt(s)
Form_Resize(This, Width, Height)
Case "mnuAnalogTrayAlpha"
Dim As String s = InputBox("GDIP Clock", "Analog Tray Alpha", "&H" & Hex(mAnalogClock.mTrayAlpha), , , Handle)
mAnalogClock.mTrayAlpha = CInt(s)
Form_Resize(This, Width, Height)
Case "mnuAnalogTrayBlur"
Dim As String s = InputBox("GDIP Clock", "Analog Tray Blur", "" & mAnalogClock.mTrayBlur, , , Handle)
mAnalogClock.mTrayBlur = CInt(s)
Form_Resize(This, Width, Height)
Case "mnuAnalogScaleColor"
ColorDialog1.Color = Color2Gdip(mAnalogClock.mScaleColor)
If ColorDialog1.Execute() Then
mAnalogClock.mScaleColor = Color2Gdip(ColorDialog1.Color)
Form_Resize(This, Width, Height)
End If
Form_Resize(This, Width, Height)
Case "mnuAnalogScaleAlpha"
Dim As String s = InputBox("GDIP Clock", "Analog Scale Alpha", "&H" & Hex(mAnalogClock.mScaleAlpha), , , Handle)
mAnalogClock.mScaleAlpha = CInt(s)
Form_Resize(This, Width, Height)
Case "mnuAnalogScaleBlur"
Dim As String s = InputBox("GDIP Clock", "Analog Scale Blur", "" & mAnalogClock.mScaleBlur, , , Handle)
mAnalogClock.mScaleBlur = CInt(s)
Form_Resize(This, Width, Height)
Case "mnuAnalogTextFormat"
Dim As String s = InputBox("GDIP Clock", "Analog Text Format", "" & *mAnalogClock.mTextFormat, , , Handle)
WLet(mAnalogClock.mTextFormat, s)
Form_Resize(This, Width, Height)
Case "mnuAnalogTextAlpha"
Dim As String s = InputBox("GDIP Clock", "Analog Text Alpha", "&H" & Hex(mAnalogClock.mTextAlpha), , , Handle)
mAnalogClock.mTextAlpha = CInt(s)
Form_Resize(This, Width, Height)
Case "mnuAnalogTextBlur"
Dim As String s = InputBox("GDIP Clock", "Analog Text Blur", "" & mAnalogClock.mTextBlur, , , Handle)
mAnalogClock.mTextBlur = CInt(s)
Form_Resize(This, Width, Height)
Case "mnuTextBackEnabled"
mTextClock.mBackEnabled = Not mTextClock.mBackEnabled
Form_Resize(This, Width, Height)
mnuMenu_Click(mnuAspectRatio)
Case "mnuTextBackFile"
OpenFileDialog1.FileName = mTextClock.FileName
If OpenFileDialog1.Execute Then
mTextClock.FileName = OpenFileDialog1.FileName
Form_Resize(This, Width, Height)
mnuMenu_Click(mnuAspectRatio)
End If
Case "mnuTextBackAlpha"
Dim As String s = InputBox("GDIP Clock", "Text Back Alpha", "&H" & Hex(mTextClock.mBackAlpha), , , Handle)
mTextClock.mBackAlpha = CInt(s)
Form_Resize(This, Width, Height)
Case "mnuTextBackBlur"
Dim As String s = InputBox("GDIP Clock", "Text Back Blur", "" & mTextClock.mBackBlur, , , Handle)
mTextClock.mBackBlur = CInt(s)
Form_Resize(This, Width, Height)
Case "mnuTextFont"
FontDialog1.Font.Name = *mTextClock.mFontName
FontDialog1.Font.Bold = IIf(mTextClock.mFontStyle = FontStyleBold, True, False)
If FontDialog1.Execute Then
mTextClock.TextFont(FontDialog1.Font.Name, IIf(FontDialog1.Font.Bold, FontStyleBold, FontStyleRegular))
mnuTextFont.Caption = *mTextClock.mFontName & ",\t" & mTextClock.mFontStyle
Form_Resize(This, Width, Height)
End If
Case "mnuTextBlur"
Dim As String s = InputBox("GDIP Clock", "Text Blur", "" & mTextClock.mTextBlur, , , Handle)
mTextClock.mTextBlur = CInt(s)
Form_Resize(This, Width, Height)
Case "mnuTextShowSecond"
mTextClock.mShowSecond = Not mTextClock.mShowSecond
Form_Resize(This, Width, Height)
mnuMenu_Click(mnuAspectRatio)
Case "mnuTextBlinkColon"
mTextClock.mBlinkColon = Not mTextClock.mBlinkColon
Form_Resize(This, Width, Height)
Case "mnuTextBorderEnabled"
mTextClock.mBorderEnabled = Not mTextClock.mBorderEnabled
Form_Resize(This, Width, Height)
Case "mnuTextShadow"
mTextClock.mShadowEnabled = Not mTextClock.mShadowEnabled
Form_Resize(This, Width, Height)
Case "mnuTextBlack"
IndexOfTextColor = 0
Case "mnuTextWhite"
IndexOfTextColor = 1
Case "mnuTextRed"
IndexOfTextColor = 2
Case "mnuTextGreen"
IndexOfTextColor = 3
Case "mnuTextBlue"
IndexOfTextColor = 4
Case "mnuTextGradient"
IndexOfTextColor = 5
Case "mnuTextColor1"
If IndexOfTextColor <> 5 Then IndexOfTextColor = 5
ColorDialog1.Color = Color2Gdip(mTextColor1)
If ColorDialog1.Execute() Then
mTextColor1 = Color2Gdip(ColorDialog1.Color)
mTextClock.TextColor(mTextColor1, mTextColor2)
Form_Resize(This, Width, Height)
End If
Case "mnuTextColor2"
If IndexOfTextColor <> 5 Then IndexOfTextColor = 5
ColorDialog1.Color = Color2Gdip(mTextColor2)
If ColorDialog1.Execute() Then
mTextColor2 = Color2Gdip(ColorDialog1.Color)
mTextClock.TextColor(mTextColor1, mTextColor2)
Form_Resize(This, Width, Height)
End If
Case "mnuTextAlpha1"
Dim As String s = InputBox("GDIP Clock", "Text Alpha 1", "" & mTextAlpha1, , , Handle)
mTextAlpha1 = CInt(s)
mTextClock.TextAlpha(mTextAlpha1, mTextAlpha2)
Form_Resize(This, Width, Height)
Case "mnuTextAlpha2"
Dim As String s = InputBox("GDIP Clock", "Text Alpha 2", "" & mTextAlpha2, , , Handle)
mTextAlpha2 = CInt(s)
mTextClock.TextAlpha(mTextAlpha1, mTextAlpha2)
Form_Resize(This, Width, Height)
Case "mnuTextPanelEnabled"
mTextClock.mPanelEnabled = Not mTextClock.mPanelEnabled
Form_Resize(This, Width, Height)
Case "mnuTextPanelAlpha"
Dim As String s = InputBox("GDIP Clock", "Tray Alpha", "&H" & Hex(mTextClock.mPanelAlpha), , , Handle)
mTextClock.mPanelAlpha = CInt(s)
Form_Resize(This, Width, Height)
Case "mnuTextPanelColor"
ColorDialog1.Color = Color2Gdip(mTextClock.mPanelColor)
If ColorDialog1.Execute() Then
mTextClock.mPanelColor = Color2Gdip(ColorDialog1.Color)
Form_Resize(This, Width, Height)
End If
Case "mnuTextOutlineEnabled"
mTextClock.mOutlineEnabled = Not mTextClock.mOutlineEnabled
Form_Resize(This, Width, Height)
Case "mnuTextOutlineSize"
Dim As String s = InputBox("GDIP Clock", "Outline size", "" & mTextClock.mOutlineSize, , , Handle)
mTextClock.mOutlineSize = CSng(s)
Form_Resize(This, Width, Height)
Case "mnuTextOutlineColor"
ColorDialog1.Color = Color2Gdip(mTextClock.mOutlineColor)
If ColorDialog1.Execute() Then
mTextClock.mOutlineColor = Color2Gdip(ColorDialog1.Color)
Form_Resize(This, Width, Height)
End If
Case "mnuTextOutlineAlpha"
Dim As String s = InputBox("GDIP Clock", "Outline Alpha", "&H" & Hex(mTextClock.mOutlineAlpha), , , Handle)
mTextClock.mOutlineAlpha = CInt(s)
Form_Resize(This, Width, Height)
Case "mnuTextBorderAlpha"
Dim As String s = InputBox("GDIP Clock", "Border Alpha", "&H" & Hex(mTextClock.mBorderAlpha), , , Handle)
mTextClock.mBorderAlpha = CInt(s)
Form_Resize(This, Width, Height)
Case "mnuTextBorderSize"
Dim As String s = InputBox("GDIP Clock", "Border Size", "" & mTextClock.mBorderSize, , , Handle)
mTextClock.mBorderSize = CDbl(s)
Form_Resize(This, Width, Height)
Case "mnuTextBorderColor"
ColorDialog1.Color = Color2Gdip(mTextClock.mBorderColor)
If ColorDialog1.Execute() Then
mTextClock.mBorderColor = Color2Gdip(ColorDialog1.Color)
Form_Resize(This, Width, Height)
End If
Case "mnuTextGradientMode1"
IndexOfGradientMode = LinearGradientModeVertical
Case "mnuTextGradientMode2"
IndexOfGradientMode = LinearGradientModeHorizontal
Case "mnuTextGradientMode3"
IndexOfGradientMode = LinearGradientModeForwardDiagonal
Case "mnuTextGradientMode4"
IndexOfGradientMode = LinearGradientModeBackwardDiagonal
Case "mnuDaySplit"
Dim As String s = InputBox("GDIP Clock", "Day Split", "" & frmDay.mDay.mSplitXScale, , , Handle)
frmDay.mDay.mSplitXScale = CSng(s)
frmDay.Form_Resize(frmDay, frmDay.Width, frmDay.Height)
Form_Resize(This, Width, Height)
Case "mnuDayStyle0"
mnuDayStyle0.Checked = True
mnuDayStyle1.Checked = False
mnuDayStyle2.Checked = False
frmDay.mDay.mShowStyle = 0
frmDay.Form_Resize(frmDay, frmDay.Width, frmDay.Height)
Form_Resize(This, Width, Height)
Case "mnuDayStyle1"
mnuDayStyle0.Checked = False
mnuDayStyle1.Checked = True
mnuDayStyle2.Checked = False
frmDay.mDay.mShowStyle = 1
frmDay.Form_Resize(frmDay, frmDay.Width, frmDay.Height)
Form_Resize(This, Width, Height)
Case "mnuDayStyle2"
mnuDayStyle0.Checked = False
mnuDayStyle1.Checked = False
mnuDayStyle2.Checked = True
frmDay.mDay.mShowStyle = 2
frmDay.Form_Resize(frmDay, frmDay.Width, frmDay.Height)
Form_Resize(This, Width, Height)
Case "mnuDayTextFont"
FontDialog1.Font.Name = *frmDay.mDay.mFontName
If FontDialog1.Execute Then
WLet(frmDay.mDay.mFontName, FontDialog1.Font.Name)
frmDay.Form_Resize(frmDay, frmDay.Width, frmDay.Height)
Form_Resize(This, Width, Height)
End If
Case "mnuDayFCFocus"
ColorDialog1.Color = Color2Gdip(frmDay.mDay.mForeColor(DayFocus))
If ColorDialog1.Execute() Then
frmDay.mDay.mForeColor(DayFocus) = Color2Gdip(ColorDialog1.Color)
frmDay.Form_Resize(frmDay, frmDay.Width, frmDay.Height)
Form_Resize(This, Width, Height)
End If
Case "mnuDayFCYear"
ColorDialog1.Color = Color2Gdip(frmDay.mDay.mForeColor(DayYear))
If ColorDialog1.Execute() Then
frmDay.mDay.mForeColor(DayYear) = Color2Gdip(ColorDialog1.Color)
frmDay.Form_Resize(frmDay, frmDay.Width, frmDay.Height)
Form_Resize(This, Width, Height)
End If
Case "mnuDayFCMonth"
ColorDialog1.Color = Color2Gdip(frmDay.mDay.mForeColor(DayMonth))
If ColorDialog1.Execute() Then
frmDay.mDay.mForeColor(DayMonth) = Color2Gdip(ColorDialog1.Color)
frmDay.Form_Resize(frmDay, frmDay.Width, frmDay.Height)
Form_Resize(This, Width, Height)
End If
Case "mnuDayFCDay"
ColorDialog1.Color = Color2Gdip(frmDay.mDay.mForeColor(DayDay))
If ColorDialog1.Execute() Then
frmDay.mDay.mForeColor(DayDay) = Color2Gdip(ColorDialog1.Color)
frmDay.Form_Resize(frmDay, frmDay.Width, frmDay.Height)
Form_Resize(This, Width, Height)
End If
Case "mnuDayFCWeek"
ColorDialog1.Color = Color2Gdip(frmDay.mDay.mForeColor(DayWeek))
If ColorDialog1.Execute() Then
frmDay.mDay.mForeColor(DayWeek) = Color2Gdip(ColorDialog1.Color)
frmDay.Form_Resize(frmDay, frmDay.Width, frmDay.Height)
Form_Resize(This, Width, Height)
End If
Case "mnuDayTrayEnabled"
frmDay.mDay.mTrayEnabled = Not frmDay.mDay.mTrayEnabled
frmDay.Form_Resize(frmDay, frmDay.Width, frmDay.Height)
Form_Resize(This, Width, Height)
Case "mnuDayBCFocus"
ColorDialog1.Color = Color2Gdip(frmDay.mDay.mBackColor(DayFocus))
If ColorDialog1.Execute() Then
frmDay.mDay.mBackColor(DayFocus) = Color2Gdip(ColorDialog1.Color)
frmDay.Form_Resize(frmDay, frmDay.Width, frmDay.Height)
Form_Resize(This, Width, Height)
End If
Case "mnuDayBCYear"
ColorDialog1.Color = Color2Gdip(frmDay.mDay.mBackColor(DayYear))
If ColorDialog1.Execute() Then
frmDay.mDay.mBackColor(DayYear) = Color2Gdip(ColorDialog1.Color)
frmDay.Form_Resize(frmDay, frmDay.Width, frmDay.Height)
Form_Resize(This, Width, Height)
End If
Case "mnuDayBCMonth"
ColorDialog1.Color = Color2Gdip(frmDay.mDay.mBackColor(DayMonth))
If ColorDialog1.Execute() Then
frmDay.mDay.mBackColor(DayMonth) = Color2Gdip(ColorDialog1.Color)
frmDay.Form_Resize(frmDay, frmDay.Width, frmDay.Height)
Form_Resize(This, Width, Height)
End If
Case "mnuDayBCDay"
ColorDialog1.Color = Color2Gdip(frmDay.mDay.mBackColor(DayDay))
If ColorDialog1.Execute() Then
frmDay.mDay.mBackColor(DayDay) = Color2Gdip(ColorDialog1.Color)
frmDay.Form_Resize(frmDay, frmDay.Width, frmDay.Height)
Form_Resize(This, Width, Height)
End If
Case "mnuDayBCWeek"
ColorDialog1.Color = Color2Gdip(frmDay.mDay.mBackColor(DayWeek))
If ColorDialog1.Execute() Then
frmDay.mDay.mBackColor(DayWeek) = Color2Gdip(ColorDialog1.Color)
frmDay.Form_Resize(frmDay, frmDay.Width, frmDay.Height)
Form_Resize(This, Width, Height)
End If
Case "mnuDayBAFocus"
Dim As String s = InputBox("GDIP Clock", "Day Tray Focus Alpha", "&H" & Hex(frmDay.mDay.mBackAlpha(DayFocus) Shr 24), , , Handle)
frmDay.mDay.mBackAlpha(DayFocus) = CULng(s) Shl 24
frmDay.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
Case "mnuDayBAYear"
Dim As String s = InputBox("GDIP Clock", "Day Tray Year Alpha", "&H" & Hex(frmDay.mDay.mBackAlpha(DayYear) Shr 24), , , Handle)
frmDay.mDay.mBackAlpha(DayYear) = CULng(s) Shl 24
frmDay.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
Case "mnuDayBAMonth"
Dim As String s = InputBox("GDIP Clock", "Day Tray Month Alpha", "&H" & Hex(frmDay.mDay.mBackAlpha(DayMonth) Shr 24), , , Handle)
frmDay.mDay.mBackAlpha(DayMonth) = CULng(s) Shl 24
frmDay.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
Case "mnuDayBADay"
Dim As String s = InputBox("GDIP Clock", "Day Tray Day Alpha", "&H" & Hex(frmDay.mDay.mBackAlpha(DayDay) Shr 24), , , Handle)
frmDay.mDay.mBackAlpha(DayDay) = CULng(s) Shl 24
frmDay.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
Case "mnuDayBAWeek"
Dim As String s = InputBox("GDIP Clock", "Day Tray Week Alpha", "&H" & Hex(frmDay.mDay.mBackAlpha(DayWeek) Shr 24), , , Handle)
frmDay.mDay.mBackAlpha(DayWeek) = CULng(s) Shl 24
frmDay.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
Case "mnuDayBackEnabled"
frmDay.mDay.mBackEnabled = Not frmDay.mDay.mBackEnabled
frmDay.Form_Resize(frmDay, frmDay.Width, frmDay.Height)
Form_Resize(This, Width, Height)
Case "mnuDayBackFile"
OpenFileDialog1.FileName = frmDay.mDay.mBackImage.ImageFile
If OpenFileDialog1.Execute Then
frmDay.mDay.mBackImage.ImageFile = OpenFileDialog1.FileName
frmDay.Form_Resize(frmDay, frmDay.Width, frmDay.Height)
Form_Resize(This, Width, Height)
End If
Case "mnuDayBackAlpha"
Dim As String s = InputBox("GDIP Clock", "Day Back Alpha", "&H" & Hex(frmDay.mDay.mBackAlpha(DayImageFile) Shr 24), , , Handle)
frmDay.mDay.mBackAlpha(DayImageFile) = CULng(s) Shl 24
frmDay.Form_Resize(frmDay, frmDay.Width, frmDay.Height)
Form_Resize(This, Width, Height)
Case "mnuDayBackBlur"
Dim As String s = InputBox("GDIP Clock", "Day Back Blur", "" & frmDay.mDay.mBackBlur, , , Handle)
frmDay.mDay.mBackBlur = CInt(s)
frmDay.Form_Resize(frmDay, frmDay.Width, frmDay.Height)
Form_Resize(This, Width, Height)
Case "mnuDayPanelEnabled"
frmDay.mDay.mPanelEnabled = Not frmDay.mDay.mPanelEnabled
frmDay.Form_Resize(frmDay, frmDay.Width, frmDay.Height)
Form_Resize(This, Width, Height)
Case "mnuDayPanelAlpha"
Dim As String s = InputBox("GDIP Clock", "Tray Alpha", "&H" & Hex(frmDay.mDay.mBackAlpha(DayPanel) Shr 24), , , Handle)
frmDay.mDay.mBackAlpha(DayPanel) = CULng(s) Shl 24
frmDay.Form_Resize(frmDay, frmDay.Width, frmDay.Height)
Form_Resize(This, Width, Height)
Case "mnuDayPanelColor"
ColorDialog1.Color = Color2Gdip(frmDay.mDay.mBackColor(DayPanel))
If ColorDialog1.Execute() Then
frmDay.mDay.mBackColor(DayPanel) = Color2Gdip(ColorDialog1.Color)
frmDay.Form_Resize(frmDay, frmDay.Width, frmDay.Height)
Form_Resize(This, Width, Height)
End If
Case "mnuDayOutlineEnabled"
frmDay.mDay.mOutlineEnabled = Not frmDay.mDay.mOutlineEnabled
frmDay.Form_Resize(frmDay, frmDay.Width, frmDay.Height)
Form_Resize(This, Width, Height)
Case "mnuDayOutlineSize"
Dim As String s = InputBox("GDIP Clock", "Outline size", "" & frmDay.mDay.mOutlineSize, , , Handle)
frmDay.mDay.mOutlineSize = CSng(s)
frmDay.Form_Resize(frmDay, frmDay.Width, frmDay.Height)
Form_Resize(This, Width, Height)
Case "mnuDayOutlineColor"
ColorDialog1.Color = Color2Gdip(frmDay.mDay.mForeColor(DayPanel))
If ColorDialog1.Execute() Then
frmDay.mDay.mForeColor(DayPanel) = Color2Gdip(ColorDialog1.Color)
frmDay.Form_Resize(frmDay, frmDay.Width, frmDay.Height)
Form_Resize(This, Width, Height)
End If
Case "mnuDayOutlineAlpha"
Dim As String s = InputBox("GDIP Clock", "Outline Alpha", "&H" & Hex(frmDay.mDay.mForeAlpha(DayPanel) Shr 24), , , Handle)
frmDay.mDay.mForeAlpha(DayPanel) = CULng(s) Shl 24
frmDay.Form_Resize(frmDay, frmDay.Width, frmDay.Height)
Form_Resize(This, Width, Height)
Case "mnuMonthControl"
frmMonth.mMonth.mShowControls = Not frmMonth.mMonth.mShowControls
frmMonth.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
Case "mnuMonthWeek"
frmMonth.mMonth.mShowWeeks = Not frmMonth.mMonth.mShowWeeks
frmMonth.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
Case "mnuMonthTextFont"
FontDialog1.Font.Name = *frmMonth.mMonth.mFontName
If FontDialog1.Execute Then
WLet(frmMonth.mMonth.mFontName, FontDialog1.Font.Name)
frmMonth.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
End If
Case "mnuMonthFCFocus"
ColorDialog1.Color = Color2Gdip(frmMonth.mMonth.mForeColor(MonthFocus))
If ColorDialog1.Execute() Then
frmMonth.mMonth.mForeColor(MonthFocus) = Color2Gdip(ColorDialog1.Color)
frmMonth.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
End If
Case "mnuMonthFCControl"
ColorDialog1.Color = Color2Gdip(frmMonth.mMonth.mForeColor(MonthControl))
If ColorDialog1.Execute() Then
frmMonth.mMonth.mForeColor(MonthControl) = Color2Gdip(ColorDialog1.Color)
frmMonth.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
End If
Case "mnuMonthFCWeek"
ColorDialog1.Color = Color2Gdip(frmMonth.mMonth.mForeColor(MonthWeek))
If ColorDialog1.Execute() Then
frmMonth.mMonth.mForeColor(MonthWeek) = Color2Gdip(ColorDialog1.Color)
frmMonth.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
End If
Case "mnuMonthFCDay"
ColorDialog1.Color = Color2Gdip(frmMonth.mMonth.mForeColor(MonthDay))
If ColorDialog1.Execute() Then
frmMonth.mMonth.mForeColor(MonthDay) = Color2Gdip(ColorDialog1.Color)
frmMonth.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
End If
Case "mnuMonthFCSelect"
ColorDialog1.Color = Color2Gdip(frmMonth.mMonth.mForeColor(MonthSelect))
If ColorDialog1.Execute() Then
frmMonth.mMonth.mForeColor(MonthSelect) = Color2Gdip(ColorDialog1.Color)
frmMonth.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
End If
Case "mnuMonthFCToday"
ColorDialog1.Color = Color2Gdip(frmMonth.mMonth.mForeColor(MonthToday))
If ColorDialog1.Execute() Then
frmMonth.mMonth.mForeColor(MonthToday) = Color2Gdip(ColorDialog1.Color)
frmMonth.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
End If
Case "mnuMonthFCHoliday"
ColorDialog1.Color = Color2Gdip(frmMonth.mMonth.mForeColor(MonthHoliday))
If ColorDialog1.Execute() Then
frmMonth.mMonth.mForeColor(MonthHoliday) = Color2Gdip(ColorDialog1.Color)
frmMonth.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
End If
Case "mnuMonthTrayEnabled"
frmMonth.mMonth.mTrayEnabled = Not frmMonth.mMonth.mTrayEnabled
frmMonth.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
Case "mnuMonthBCFocus"
ColorDialog1.Color = Color2Gdip(frmMonth.mMonth.mBackColor(MonthFocus))
If ColorDialog1.Execute() Then
frmMonth.mMonth.mBackColor(MonthFocus) = Color2Gdip(ColorDialog1.Color)
frmMonth.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
End If
Case "mnuMonthBCControl"
ColorDialog1.Color = Color2Gdip(frmMonth.mMonth.mBackColor(MonthControl))
If ColorDialog1.Execute() Then
frmMonth.mMonth.mBackColor(MonthControl) = Color2Gdip(ColorDialog1.Color)
frmMonth.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
End If
Case "mnuMonthBCWeek"
ColorDialog1.Color = Color2Gdip(frmMonth.mMonth.mBackColor(MonthWeek))
If ColorDialog1.Execute() Then
frmMonth.mMonth.mBackColor(MonthWeek) = Color2Gdip(ColorDialog1.Color)
frmMonth.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
End If
Case "mnuMonthBCDay"
ColorDialog1.Color = Color2Gdip(frmMonth.mMonth.mBackColor(MonthDay))
If ColorDialog1.Execute() Then
frmMonth.mMonth.mBackColor(MonthDay) = Color2Gdip(ColorDialog1.Color)
frmMonth.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
End If
Case "mnuMonthBCSelect"
ColorDialog1.Color = Color2Gdip(frmMonth.mMonth.mBackColor(MonthSelect))
If ColorDialog1.Execute() Then
frmMonth.mMonth.mBackColor(MonthSelect) = Color2Gdip(ColorDialog1.Color)
frmMonth.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
End If
Case "mnuMonthBAFocus"
Dim As String s = InputBox("GDIP Clock", "Month Tray Focus Alpha", "&H" & Hex(frmMonth.mMonth.mBackAlpha(MonthFocus) Shr 24), , , Handle)
frmMonth.mMonth.mBackAlpha(MonthFocus) = CULng(s) Shl 24
frmMonth.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
Case "mnuMonthBAControl"
Dim As String s = InputBox("GDIP Clock", "Month Tray Control Alpha", "&H" & Hex(frmMonth.mMonth.mBackAlpha(MonthControl) Shr 24), , , Handle)
frmMonth.mMonth.mBackAlpha(MonthControl) = CULng(s) Shl 24
frmMonth.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
Case "mnuMonthBAWeek"
Dim As String s = InputBox("GDIP Clock", "Month Tray Week Alpha", "&H" & Hex(frmMonth.mMonth.mBackAlpha(MonthWeek) Shr 24), , , Handle)
frmMonth.mMonth.mBackAlpha(MonthWeek) = CULng(s) Shl 24
frmMonth.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
Case "mnuMonthBADay"
Dim As String s = InputBox("GDIP Clock", "Month Tray Day Alpha", "&H" & Hex(frmMonth.mMonth.mBackAlpha(MonthDay) Shr 24), , , Handle)
frmMonth.mMonth.mBackAlpha(MonthDay) = CULng(s) Shl 24
frmMonth.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
Case "mnuMonthBASelect"
Dim As String s = InputBox("GDIP Clock", "Month Tray Select Alpha", "&H" & Hex(frmMonth.mMonth.mBackAlpha(MonthSelect) Shr 24), , , Handle)
frmMonth.mMonth.mBackAlpha(MonthSelect) = CULng(s) Shl 24
frmMonth.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
Case "mnuMonthBackEnabled"
frmMonth.mMonth.mBackEnabled = Not frmMonth.mMonth.mBackEnabled
frmMonth.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
Case "mnuMonthBackFile"
OpenFileDialog1.FileName = frmMonth.mMonth.mBackImage.ImageFile
If OpenFileDialog1.Execute Then
frmMonth.mMonth.mBackImage.ImageFile = OpenFileDialog1.FileName
frmMonth.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
End If
Case "mnuMonthBackAlpha"
Dim As String s = InputBox("GDIP Clock", "Month Back Alpha", "&H" & Hex(frmMonth.mMonth.mBackAlpha(MonthImageFile) Shr 24), , , Handle)
frmMonth.mMonth.mBackAlpha(MonthImageFile) = CULng(s) Shl 24
frmMonth.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
Case "mnuMonthBackBlur"
Dim As String s = InputBox("GDIP Clock", "Month Back Blur", "" & frmMonth.mMonth.mBackBlur, , , Handle)
frmMonth.mMonth.mBackBlur = CInt(s)
frmMonth.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
Case "mnuMonthPanelEnabled"
frmMonth.mMonth.mPanelEnabled = Not frmMonth.mMonth.mPanelEnabled
frmMonth.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
Case "mnuMonthPanelAlpha"
Dim As String s = InputBox("GDIP Clock", "Panel Alpha", "&H" & Hex(frmMonth.mMonth.mBackAlpha(MonthPanel) Shr 24), , , Handle)
frmMonth.mMonth.mBackAlpha(MonthPanel) = CULng(s) Shl 24
frmMonth.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
Case "mnuMonthPanelColor"
ColorDialog1.Color = Color2Gdip(frmMonth.mMonth.mBackColor(MonthPanel))
If ColorDialog1.Execute() Then
frmMonth.mMonth.mBackColor(MonthPanel) = Color2Gdip(ColorDialog1.Color)
frmMonth.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
End If
Case "mnuMonthOutlineEnabled"
frmMonth.mMonth.mOutlineEnabled = Not frmMonth.mMonth.mOutlineEnabled
frmMonth.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
Case "mnuMonthOutlineSize"
Dim As String s = InputBox("GDIP Clock", "Outline size", "" & frmMonth.mMonth.mOutlineSize, , , Handle)
frmMonth.mMonth.mOutlineSize = CSng(s)
frmMonth.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
Case "mnuMonthOutlineColor"
ColorDialog1.Color = Color2Gdip(frmMonth.mMonth.mForeColor(MonthPanel))
If ColorDialog1.Execute() Then
frmMonth.mMonth.mForeColor(MonthPanel) = Color2Gdip(ColorDialog1.Color)
frmMonth.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
End If
Case "mnuMonthOutlineAlpha"
Dim As String s = InputBox("GDIP Clock", "Outline Alpha", "&H" & Hex(frmMonth.mMonth.mForeAlpha(MonthPanel) Shr 24), , , Handle)
frmMonth.mMonth.mForeAlpha(MonthPanel) = CULng(s) Shl 24
frmMonth.Form_Resize(frmMonth, frmMonth.Width, frmMonth.Height)
Form_Resize(This, Width, Height)
Case "mnuAnnounce0"
IndexOfAnnouce = 0
Case "mnuAnnounce1"
IndexOfAnnouce = 1
Case "mnuAnnounce2"
IndexOfAnnouce = 2
Case "mnuAnnounce3"
IndexOfAnnouce = 3
Case "mnuSpeechNow"
SpeechNow(Now(), mLanguage)
Case Else 'Speech Voice & Audio
Dim i As Integer
Sender.Checked = True
If InStr(Sender.Name, "mnuVoice") Then
If InStr(Sender.Caption, "English") Then mLanguage = 0
If InStr(Sender.Caption, "Chinese") Then mLanguage = 1
For i = 0 To mVoiceCount
If @Sender = mnuVoiceSub(i) Then
#ifdef __USE_WINAPI__
If pSpVoice Then pSpVoice->SetVoice(Cast(ISpObjectToken Ptr, Sender.Tag))
#endif
Else
mnuVoiceSub(i)->Checked = False
End If
Next
End If
If InStr(Sender.Name, "mnuAudio") Then
For i = 0 To mAudioCount
If @Sender = mnuAudioSub(i) Then
#ifdef __USE_WINAPI__
If pSpVoice Then pSpVoice->SetOutput(Cast(ISpObjectToken Ptr, Sender.Tag), True)
#endif
Else
mnuAudioSub(i)->Checked = False
End If
Next
End If
End Select
End Sub
Private Sub frmClockType.Form_Create(ByRef Sender As Control)
ProfileInitial()
SpeechInit()
midiOutOpen(@mMidiOut, mMidiID, NULL, NULL, NULL)
If mMidiOut Then SendProgramChange(mMidiOut, 0, 14)
ProfileFrmClock(mKeyValDef())
ScreenInfo(mScreenWidth, mScreenHeight)
If CheckAutoStart() Then mnuAutoStart.Checked = True
If mnuAnalogEnabled.Checked Then
mAnalogClock.Background(ClientWidth, ClientHeight)
frmTrans.Create(Handle, mAnalogClock.ImageUpdate())
Else
If mnuTextEnabled.Checked Then
mTextClock.Background(ClientWidth, ClientHeight)
frmTrans.Create(Handle, mTextClock.ImageUpdate())
Else
mnuMenu_Click(mnuTextEnabled)
End If
End If
mnuMenu_Click(mnuAspectRatio)
With SystrayIcon
.cbSize = SizeOf(SystrayIcon)
.hWnd = Handle
.uID = This.ID
.uFlags = NIF_ICON Or NIF_TIP Or NIF_MESSAGE
.szTip = !"VisualFBEditor\r\nGDIP Clock\r\nBy Cm Wang\0"
.uCallbackMessage = WM_SHELLNOTIFY
.hIcon = This.Icon.Handle
.uVersion = NOTIFYICON_VERSION
End With
Shell_NotifyIcon(NIM_ADD, @SystrayIcon)
Notify(!"VisualFBEditor\0", !"Welcome to use GDIP Clock!\0")
WLet(mProfileName, ProfileDefLoad())
If ProfileLoad(*mProfileName, mKeyValue()) Then
Profile2Clock(mKeyValue())
End If
mTextClock.TextAlpha(mTextAlpha1, mTextAlpha2)
If mRectMain.Right And mRectMain.Bottom Then Move(mRectMain.Left, mRectMain.Top, mRectMain.Right, mRectMain.Bottom)
End Sub
Private Sub frmClockType.Form_Show(ByRef Sender As Form)
FileName2Menu(*mProfileExt)
Clock2Interface()
mnuDayEnabled.Checked = Not mShowDay
mnuMenu_Click(mnuDayEnabled)
mnuMonthEnabled.Checked = Not mShowMonth
mnuMenu_Click(mnuMonthEnabled)
mnuTransparent.Checked = Not mTransparent
mnuMenu_Click(mnuTransparent)
TimerComponent1.Enabled = True
End Sub
Private Sub frmClockType.Notify(Title As WString, Info As WString)
With SystrayIcon
.uFlags = NIF_INFO
.szInfo = !"\0"
.szInfoTitle = !"\0"
End With
Shell_NotifyIcon(NIM_MODIFY, @SystrayIcon)
With SystrayIcon
.uFlags = NIF_INFO
.szInfo = Info
.szInfoTitle = Title
.uTimeout = 1
.dwInfoFlags = 1
End With
Shell_NotifyIcon(NIM_MODIFY, @SystrayIcon)
End Sub
Private Sub frmClockType.Transparent(v As Boolean)
Form_Resize(This, Width, Height)
frmTrans.Enabled = v
PaintClock()
End Sub
Private Sub frmClockType.Form_Resize(ByRef Sender As Control, NewWidth As Integer, NewHeight As Integer)
If mnuTransparent.Checked Then
If mnuTextEnabled.Checked Then
mTextClock.Background(Width*xdpi, Height*ydpi)
Else
mAnalogClock.Background(Width*xdpi, Height*ydpi)
End If
Else
If mnuTextEnabled.Checked Then
mTextClock.Background(ClientWidth*xdpi, ClientHeight*ydpi)
Else
mAnalogClock.Background(ClientWidth*xdpi, ClientHeight*ydpi)
End If
End If
PaintClock()
If mnuLocateSticky.Checked Then Form_Move(This)
Clock2Interface()
End Sub
Private Sub frmClockType.PaintClock()
If mnuTransparent.Checked Then
If mnuAnalogEnabled.Checked Then frmTrans.Create(Handle, mAnalogClock.ImageUpdate())
If mnuTextEnabled.Checked Then frmTrans.Create(Handle, mTextClock.ImageUpdate())
frmTrans.Transform(mOpacity)
Else
frmDC.Initial(Handle)
memDC.Initial(0, ClientWidth*xdpi, ClientHeight*ydpi)
frmGraphic.Initial(memDC.DC, True)
If mnuAnalogEnabled.Checked Then frmGraphic.DrawImage(mAnalogClock.ImageUpdate())
If mnuTextEnabled.Checked Then frmGraphic.DrawImage(mTextClock.ImageUpdate())
BitBlt(frmDC.DC, 0, 0, ClientWidth*xdpi, ClientHeight*ydpi, memDC.DC, 0, 0, SRCCOPY)
End If
End Sub
Private Sub frmClockType.Form_Paint(ByRef Sender As Control, ByRef Canvas As My.Sys.Drawing.Canvas)
PaintClock()
End Sub
Private Sub frmClockType.Form_Message(ByRef Sender As Control, ByRef Msg As Message)
Select Case Msg.Msg
Case WM_SHELLNOTIFY
Select Case Msg.lParam
Case WM_LBUTTONDBLCLK
mnuMenu_Click(mnuHide)
Case WM_RBUTTONDOWN
Dim tPOINT As Point
GetCursorPos(@tPOINT)
SetForegroundWindow(Handle)
PopupMenu1.Popup(tPOINT.X, tPOINT.Y)
End Select
End Select
End Sub
Private Sub frmClockType.Form_Close(ByRef Sender As Form, ByRef Action As Integer)
If mnuTest.Checked Then
mnuMenu_Click(mnuTest)
App.DoEvents
End If
ProfileDefSave()
If mnuProfileSaveOnExit.Checked Then ProfileSave(*mProfileName, mKeyValue())
ProfileRelease()
If mMidiOut Then midiOutClose(mMidiOut)
Shell_NotifyIcon(NIM_DELETE, @SystrayIcon)
End Sub
Private Sub frmClockType.Form_Move(ByRef Sender As Control)
If mnuLocateSticky.Checked = False Then Exit Sub
'窗口粘连
Dim sDayHight As Single
Dim sMonthHight As Single
sDayHight = Width / Height * 0.6
sMonthHight = Width / Height * 0.8
If frmDay.Handle Then
frmDay.Move(Left, Top + Height, Width, Height * sDayHight)
If frmMonth.Handle Then frmMonth.Move(Left, Top + Height * (1 + sDayHight), Width, Height * sMonthHight)
Else
If frmMonth.Handle Then frmMonth.Move(Left, Top + Height, Width, Height * sMonthHight)
End If
End Sub
Private Sub frmClockType.TimerComponent1_Timer(ByRef Sender As TimerComponent)
PaintClock()
Static sNow As Double
Dim dNow As Double = Now()
If sNow = dNow Then Exit Sub
sNow = dNow
If mnuAnnounce0.Checked Then Exit Sub
Dim m As Integer
Dim h As Integer
'midi报时
If Second(dNow) = 0 Then
m = Minute(dNow)
h = Hour(dNow)
If mnuAnnounce1.Checked Then
If m = 0 Then
If mMidiOut Then SendNoteOn(mMidiOut, 0, 61, 255)
End If
End If
If mnuAnnounce2.Checked Then
If m = 0 Or m = 30 Then
If mMidiOut Then SendNoteOn(mMidiOut, 0, 61, 255)
End If
End If
If mnuAnnounce3.Checked Then
If m = 0 Or m = 15 Or m = 30 Or m = 45 Then
If mMidiOut Then SendNoteOn(mMidiOut, 0, 61, 255)
End If
End If
End If
'1/4,1/2,整点报时
If Second(dNow) = 1 Then
m = Minute(dNow)
h = Hour(dNow)
If mnuAnnounce1.Checked Then
If m = 0 Then SpeechNow(dNow, mLanguage)
End If
If mnuAnnounce2.Checked Then
If m = 0 Or m = 30 Then SpeechNow(dNow, mLanguage)
End If
If mnuAnnounce3.Checked Then
If m = 0 Or m = 15 Or m = 30 Or m = 45 Then SpeechNow(dNow, mLanguage)
End If
End If
End Sub
Private Sub frmClockType.TimerComponent2_Timer(ByRef Sender As TimerComponent)
TestStress()
End Sub
Private Sub frmClockType.Form_MouseMove(ByRef Sender As Control, MouseButton As Integer, x As Integer, y As Integer, Shift As Integer)
Static sX As Integer
Static sY As Integer
If CBool(sX = x) And CBool(sY = y) Then Exit Sub
sX = x
sY = y
If MouseButton = 0 Then
ReleaseCapture()
SendMessage(Sender.Handle, WM_NCLBUTTONDOWN, HTCAPTION, 0)
End If
End Sub
Private Sub frmClockType.Form_Click(ByRef Sender As Control)
If mMidiOut Then SendNoteOn(mMidiOut, 0, 61, 255)
End Sub
Private Sub frmClockType.Form_DropFile(ByRef Sender As Control, ByRef Filename As WString)
If mnuTextEnabled.Checked Then
mTextClock.FileName = Filename
mTextClock.mBackEnabled = True
Else
mAnalogClock.FileName = Filename
mAnalogClock.mBackEnabled = True
End If
mnuMenu_Click(mnuAspectRatio)
Form_Resize(This, Width, Height)
End Sub
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化