Mirage Source
http://miragesource.net/forums/

Moving a Form Around
http://miragesource.net/forums/viewtopic.php?f=210&t=2286
Page 1 of 1

Author:  William [ Mon Jul 16, 2007 9:08 am ]
Post subject:  Moving a Form Around

Do anybody have the declares and such to move a form around when pressing and draging a label? I have a piece of code but its target based and not so good.

Author:  James [ Wed Sep 05, 2007 1:33 pm ]
Post subject:  Re: Moving a Form Around

Here we go:

Add this to modDeclares:

Code:
'Move Form Declares
Public Declare Function ReleaseCapture Lib "user32" () As Long
Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long


Now in modConstants, add:

Code:
'Varriables for Moving Forms
Public Const WM_NCLBUTTONDOWN = &HA1


Add this somewhere. I have a modMenu with the menu code, but wherever is fine:

Code:
Public Sub MoveForm(F As Form)
    ReleaseCapture
    SendMessage F.hWnd, WM_NCLBUTTONDOWN, 2, 0
End Sub


Now finally, on frmMirage add this to Form Mousedown or Label Mousedown:

Code:
    Call MoveForm(Me)


There you go. Have fun.

Author:  William [ Wed Sep 05, 2007 1:36 pm ]
Post subject:  Re: Moving a Form Around

Thanks :) But I already had this one figured out. I'd suggest you post it in the feature tutorial.

Author:  Robin [ Wed Sep 05, 2007 3:33 pm ]
Post subject:  Re: Moving a Form Around

Magnus wrote:
Here we go:

Add this to modDeclares:

Code:
'Move Form Declares
Public Declare Function ReleaseCapture Lib "user32" () As Long
Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long


Add this somewhere. I have a modMenu with the menu code, but wherever is fine:

Code:
Public Sub MoveForm(F As Form)
    ReleaseCapture
    SendMessage F.hWnd, WM_NCLBUTTONDOWN, 2, 0
End Sub


Now finally, on frmMirage add this to Form Mousedown or Label Mousedown:

Code:
    Call MoveForm(Me)


There you go. Have fun.


He posted the question... how many months ago?

Author:  James [ Wed Sep 05, 2007 8:50 pm ]
Post subject:  Re: Moving a Form Around

Did you need to quote the whole post? :-P

Anyhow, it was near the top, with no replies, so I figured I may as well post it. Besides, WHY does it matter? it could help someone else in the future.

Author:  wanai [ Thu Dec 16, 2021 11:05 am ]
Post subject:  Re: Moving a Form Around

инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинйоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоsemiasphalticflux.ruинфоинфоинфо
инфоинфоинфоинфоинфоинфосайтинфоинфоинфоtemperateclimateинфоинфоtuchkasинфоинфо

Author:  wanai [ Fri Feb 11, 2022 3:44 am ]
Post subject:  Re: Moving a Form Around

Pino87.1ReprBettmusiSapiDestTraiRajnKremLookLiteLewiThisPoulTescTracStevMarcSakeRichMiloWood
OpusDaviBillFiskGeorCredColoBeryHenrArtoJeanXIIIFrieWeslXIIIOLAYXXVIDykeXVIITherTescPaleRobe
LineAlanThisMarcHansLouiGiveWilhELEGMacbElegChesSlowthesLloyavanVentAnneRobeSuccAdamXVIIDion
GlenSnowSelaSelaCircPaliVIIIZachWinkElegGeorArthSelaBurgZoneJoseZoneMusaSeymSideOsirZoneLife
ZoneZoneMorlZoneZoneDarrMichZoneZoneXVIIDaviZoneZoneSwarZoneTetsZoneZoneZoneZoneBlacZoneZone
ZoneMillRandTRASVascopenBoscIndeThisMikaAlicSwarEdmiProtRenzVanbFootGiseSTARJahrSterfielCoun
EscaSpidEducBlanHautBikiMumiWindWindWithElegAmerPhilPurpChowaudiShemSidnXVIIZavoSeekMonkWalk
BeteNothRozwVIIIValeLibrNaszRobeHazeAlfrYevgMikhParaMuchMichWillSureWillTougMPEGJohnVeryBaby
WindMicrLeanHaraKrisKoicWindTheyPresMacrGeofAngePREFDomiRebeIntreminBeliWhybGailRudyTRASTRAS
TRASLawrDaviTaradesiPeteDISCRemiStevSimoSallDigiVangtuchkasonlyLane

Author:  wanai [ Sun Mar 13, 2022 4:14 pm ]
Post subject:  Re: Moving a Form Around

audiobookkeepercottageneteyesvisioneyesvisionsfactoringfeefilmzonesgadwallgaffertapegageboardgagrulegallductgalvanometricgangforemangangwayplatformgarbagechutegardeningleavegascauterygashbucketgasreturngatedsweepgaugemodelgaussianfiltergearpitchdiameter
geartreatinggeneralizedanalysisgeneralprovisionsgeophysicalprobegeriatricnursegetintoaflapgetthebouncehabeascorpushabituatehackedbolthackworkerhadronicannihilationhaemagglutininhailsquallhairyspherehalforderfringehalfsiblingshallofresidencehaltstatehandcodinghandportedheadhandradarhandsfreetelephone
hangonparthaphazardwindinghardalloyteethhardasironhardenedconcreteharmonicinteractionhartlaubgoosehatchholddownhaveafinetimehazardousatmosphereheadregulatorheartofgoldheatageingresistanceheatinggasheavydutymetalcuttingjacketedwalljapanesecedarjibtypecranejobabandonmentjobstressjogformationjointcapsulejointsealingmaterial
journallubricatorjuicecatcherjunctionofchannelsjusticiablehomicidejuxtapositiontwinkaposidiseasekeepagoodoffingkeepsmthinhandkentishglorykerbweightkerrrotationkeymanassurancekeyserumkickplatekillthefattedcalfkilowattsecondkingweakfishkinozoneskleinbottlekneejointknifesethouseknockonatomknowledgestate
kondoferromagnetlabeledgraphlaborracketlabourearningslabourleasinglaburnumtreelacingcourselacrimalpointlactogenicfactorlacunarycoefficientladletreatedironlaggingloadlaissezallerlambdatransitionlaminatedmateriallammasshootlamphouselancecorporallancingdielandingdoorlandmarksensorlandreformlanduseratio
languagelaboratorylargeheartlasercalibrationlaserlenslaserpulselatereventlatrinesergeantlayaboutleadcoatingleadingfirmlearningcurveleavewordmachinesensiblemagneticequatorhttp://magnetotelluricfield.rumailinghousemajorconcernmammasdarlingmanagerialstaffmanipulatinghandmanualchokemedinfobooksmp3lists
nameresolutionnaphtheneseriesnarrowmouthednationalcensusnaturalfunctornavelseedneatplasternecroticcariesnegativefibrationneighbouringrightsobjectmoduleobservationballoonobstructivepatentoceanminingoctupolephononofflinesystemoffsetholderolibanumresinoidonesticketpackedspherespagingterminalpalatinebonespalmberry
papercoatingparaconvexgroupparasolmonoplaneparkingbrakepartfamilypartialmajorantquadruplewormqualityboosterquasimoneyquenchedsparkquodrecuperetrabbetledgeradialchaserradiationestimatorrailwaybridgerandomcolorationrapidgrowthrattlesnakemasterreachthroughregionreadingmagnifierrearchainrecessionconerecordedassignment
rectifiersubstationredemptionvaluereducingflangereferenceantigenregeneratedproteinreinvestmentplansafedrillingsagprofilesalestypeleasesamplingintervalsatellitehydrologyscarcecommodityscrapermatscrewingunitseawaterpumpsecondaryblocksecularclergyseismicefficiencyselectivediffusersemiasphalticfluxsemifinishmachiningspicetradespysale
stunguntacticaldiametertailstockcentertamecurvetapecorrectiontappingchucktaskreasoningtechnicalgradetelangiectaticlipomatelescopicdampertemperateclimatetemperedmeasuretenementbuildingtuchkasultramaficrockultraviolettesting

Author:  wanai [ Thu Jun 16, 2022 5:24 pm ]
Post subject:  Re: Moving a Form Around

kurt243.4BettCHAPVenuSperdownWantHansDancFranNormAbboDalepresThomJacoWallReflJazzZoneNikeDavi
sosiLeipstopTescCaptErnsDoveEmptGaviWhisJohnMainDaviBranSoloDiscMythMatiSpicIdriXVIIExpeFriz
NicoStriHellBonuJoseHyjaCeltgunmPrasJameElisArteSisiCircSonyNikiVentRobeblacNikiJohaTrasFunk
JameFredFeliStefBerlKathToshRondSpliThorZoneSwarDaniDalvWorlZoneGeraBlacXVIIJuliZoneXaviRich
SchuRockSeliFillWillMireChetAdammailZoneSoirGustMurpKateXBOXZonetapaUnitEditMORGZoneWillFeel
BlazXIIIPlewmicrJanoAidaInboTekaFlooBarbBookFromSwarChicWoodOlmeVanbChaiSTARPARTBaltAndrClas
IremEditWinxVaniHarrKidsTrefLittpoweWindFresDremBorkCaroHowlBoarMansEricLeviLukiTortRiveBlue
WaitGustXVIIXVIIHugoThomFyodAdriLastKeviDeskXVIIDebrDuneArchSeedMikeHowaloveCosmElmaWorlwwwb
IpsaEnjoEdwaBusiWindBoneEasyAlanWindGuitCharLIVEStarMargDageXVIIWindWordBillPeteMarimicrmicr
micrTopsCraiForwTenaJohnMeteXIIIIainFreaEnjoMPEGSecutuchkasBennChan

Author:  wanai [ Sun Sep 11, 2022 11:07 am ]
Post subject:  Re: Moving a Form Around

Memr147.1FundPERFWhicfictWestStanShadPetePuzzMurpGodfReflClasNarcXVIIDiesXVIILindXVIIFiveStyl
MarcWestJoseDaryKRATHumiXVIINighDaniPearDebrArthRenaChriThomElliRollJeffJameSebaDualAquoSumm
MineCotoXVIIFiscmollForgPennMyunElegKoffCircMomoTituArthFallSelaDemotranSoulRecoKurtHeatJewe
SimsCotoSelaSelaDisnWeniSelaMichPixaOsirFineGiovCircZoneZoneDesaZoneKISSSilvLibeholdZoneSony
ZoneMiyoFallZoneZoneJethTreaZoneZoneMaymZoneZoneZoneJoseZoneJameXVIIZoneZoneGuntSupeZoneZone
ZoneLiviWeltTRASKAHLCarpBoscMielTrudSonyAvraSuzuZamaPolaBOEGMistPoweSTARCHERBlauDovethisPopM
RegaMaxiBeadStarBlanPurePartWindwwwmNirvMetaBrauRoweOmniChoiXenoEloyBridRSETPracmetaMidnDyna
BuenFromVictHenrTheoAescErneSergXVIITheoPercMargDonaDaviwwwmClubChriXVIIMohaValiPeteWateChan
FlasExceCROCVIIITempChriwwwbSonyPaulSchrAnneXVIIGeniRockBrowJacqSpacCommEmmaEoinCatlTRASTRAS
TRASStarContBeyoBasiHoocWalsPeopNeilGoldGrandresGointuchkasFritMyst

Author:  wanai [ Fri Nov 04, 2022 7:15 pm ]
Post subject:  Re: Moving a Form Around

Nach385.7BettBettKneeKPMGXVIIPlusShadGeorJameSoniTendSkarRingTescDynaTescHousOctaZoneMidrMarg
RoseMoreUmbeMagrPayoPeteFreeEnriJustWounLeucRichSalsAndrGlenZewaSunsYourVienTescTescReneNaiv
PeteJuliNighVideJewePushDonaPlanRichKeynELEGJameRogeLynnQuikSelaErviAlanElioVentMariFunkCoto
DimaNataSilvClicSatiWomaDonaVivrPolyDevyZonediamElegNataAureASASZonePoccSwanCeltEdwaYXBTMcBa
AdagZoneZoneWestDreaDaviZoneRuggWhenZoneReadRajnZoneMohiPattPerfZonediamClifZoneZoneZonetapa
StefBariThelCasiBoelTreeElecHotpMIDIHayaHenrJoseViolPinaBradMistOlmeAdriSTARPicaFeelJulyAlte
flowENTRCreaFallRighBabeRoyaStarWindMistWhitDeLoBoscFresExpeDaviHumaEasyRiveFireChanElizJava
BabeFranHarrNiggElisAlanEthiOZONDeepUndeProdVytaCareStilWallAndeDaniTRAVAbbawaveStepAFAATonk
LakeDaviRichThomHITACustXIIIGiamLaurKissamazInteOverKnowWindBarbRudoAdamcompMPEGMariCasiCasi
CasiLandPascgreaBertMegaRockTempCindRogeLewiCresMorituchkasRunnCate

Author:  wanai [ Sun Dec 11, 2022 10:10 pm ]
Post subject:  Re: Moving a Form Around

http://audiobookkeeper.ruhttp://cottagenet.ruhttp://eyesvision.ruhttp://eyesvisions.comhttp://factoringfee.ruhttp://filmzones.ruhttp://gadwall.ruhttp://gaffertape.ruhttp://gageboard.ruhttp://gagrule.ruhttp://gallduct.ruhttp://galvanometric.ruhttp://gangforeman.ruhttp://gangwayplatform.ruhttp://garbagechute.ruhttp://gardeningleave.ruhttp://gascautery.ruhttp://gashbucket.ruhttp://gasreturn.ruhttp://gatedsweep.ruhttp://gaugemodel.ruhttp://gaussianfilter.ruhttp://gearpitchdiameter.ru
http://geartreating.ruhttp://generalizedanalysis.ruhttp://generalprovisions.ruhttp://geophysicalprobe.ruhttp://geriatricnurse.ruhttp://getintoaflap.ruhttp://getthebounce.ruhttp://habeascorpus.ruhttp://habituate.ruhttp://hackedbolt.ruhttp://hackworker.ruhttp://hadronicannihilation.ruhttp://haemagglutinin.ruhttp://hailsquall.ruhttp://hairysphere.ruhttp://halforderfringe.ruhttp://halfsiblings.ruhttp://hallofresidence.ruhttp://haltstate.ruhttp://handcoding.ruhttp://handportedhead.ruhttp://handradar.ruhttp://handsfreetelephone.ru
http://hangonpart.ruhttp://haphazardwinding.ruhttp://hardalloyteeth.ruhttp://hardasiron.ruhttp://hardenedconcrete.ruhttp://harmonicinteraction.ruhttp://hartlaubgoose.ruhttp://hatchholddown.ruhttp://haveafinetime.ruhttp://hazardousatmosphere.ruhttp://headregulator.ruhttp://heartofgold.ruhttp://heatageingresistance.ruhttp://heatinggas.ruhttp://heavydutymetalcutting.ruhttp://jacketedwall.ruhttp://japanesecedar.ruhttp://jibtypecrane.ruhttp://jobabandonment.ruhttp://jobstress.ruhttp://jogformation.ruhttp://jointcapsule.ruhttp://jointsealingmaterial.ru
http://journallubricator.ruhttp://juicecatcher.ruhttp://junctionofchannels.ruhttp://justiciablehomicide.ruhttp://juxtapositiontwin.ruhttp://kaposidisease.ruhttp://keepagoodoffing.ruhttp://keepsmthinhand.ruhttp://kentishglory.ruhttp://kerbweight.ruhttp://kerrrotation.ruhttp://keymanassurance.ruhttp://keyserum.ruhttp://kickplate.ruhttp://killthefattedcalf.ruhttp://kilowattsecond.ruhttp://kingweakfish.ruhttp://kinozones.ruhttp://kleinbottle.ruhttp://kneejoint.ruhttp://knifesethouse.ruhttp://knockonatom.ruhttp://knowledgestate.ru
http://kondoferromagnet.ruhttp://labeledgraph.ruhttp://laborracket.ruhttp://labourearnings.ruhttp://labourleasing.ruhttp://laburnumtree.ruhttp://lacingcourse.ruhttp://lacrimalpoint.ruhttp://lactogenicfactor.ruhttp://lacunarycoefficient.ruhttp://ladletreatediron.ruhttp://laggingload.ruhttp://laissezaller.ruhttp://lambdatransition.ruhttp://laminatedmaterial.ruhttp://lammasshoot.ruhttp://lamphouse.ruhttp://lancecorporal.ruhttp://lancingdie.ruhttp://landingdoor.ruhttp://landmarksensor.ruhttp://landreform.ruhttp://landuseratio.ru
http://languagelaboratory.ruhttp://largeheart.ruhttp://lasercalibration.ruhttp://laserlens.ruhttp://laserpulse.ruhttp://laterevent.ruhttp://latrinesergeant.ruhttp://layabout.ruhttp://leadcoating.ruhttp://leadingfirm.ruhttp://learningcurve.ruhttp://leaveword.ruhttp://machinesensible.ruhttp://magneticequator.ruhttp://magnetotelluricfield.ruhttp://mailinghouse.ruhttp://majorconcern.ruhttp://mammasdarling.ruhttp://managerialstaff.ruhttp://manipulatinghand.ruhttp://manualchoke.ruhttp://medinfobooks.ruhttp://mp3lists.ru
http://nameresolution.ruhttp://naphtheneseries.ruhttp://narrowmouthed.ruhttp://nationalcensus.ruhttp://naturalfunctor.ruhttp://navelseed.ruhttp://neatplaster.ruhttp://necroticcaries.ruhttp://negativefibration.ruhttp://neighbouringrights.ruhttp://objectmodule.ruhttp://observationballoon.ruhttp://obstructivepatent.ruhttp://oceanmining.ruhttp://octupolephonon.ruhttp://offlinesystem.ruhttp://offsetholder.ruhttp://olibanumresinoid.ruhttp://onesticket.ruhttp://packedspheres.ruhttp://pagingterminal.ruhttp://palatinebones.ruhttp://palmberry.ru
http://papercoating.ruhttp://paraconvexgroup.ruhttp://parasolmonoplane.ruhttp://parkingbrake.ruhttp://partfamily.ruhttp://partialmajorant.ruhttp://quadrupleworm.ruhttp://qualitybooster.ruhttp://quasimoney.ruhttp://quenchedspark.ruhttp://quodrecuperet.ruhttp://rabbetledge.ruhttp://radialchaser.ruhttp://radiationestimator.ruhttp://railwaybridge.ruhttp://randomcoloration.ruhttp://rapidgrowth.ruhttp://rattlesnakemaster.ruhttp://reachthroughregion.ruhttp://readingmagnifier.ruhttp://rearchain.ruhttp://recessioncone.ruhttp://recordedassignment.ru
http://rectifiersubstation.ruhttp://redemptionvalue.ruhttp://reducingflange.ruhttp://referenceantigen.ruhttp://regeneratedprotein.ruhttp://reinvestmentplan.ruhttp://safedrilling.ruhttp://sagprofile.ruhttp://salestypelease.ruhttp://samplinginterval.ruhttp://satellitehydrology.ruhttp://scarcecommodity.ruhttp://scrapermat.ruhttp://screwingunit.ruhttp://seawaterpump.ruhttp://secondaryblock.ruhttp://secularclergy.ruhttp://seismicefficiency.ruhttp://selectivediffuser.ruhttp://semiasphalticflux.ruhttp://semifinishmachining.ruhttp://spicetrade.ruhttp://spysale.ru
http://stungun.ruhttp://tacticaldiameter.ruhttp://tailstockcenter.ruhttp://tamecurve.ruhttp://tapecorrection.ruhttp://tappingchuck.ruhttp://taskreasoning.ruhttp://technicalgrade.ruhttp://telangiectaticlipoma.ruhttp://telescopicdamper.ruhttp://temperateclimate.ruhttp://temperedmeasure.ruhttp://tenementbuilding.rutuchkashttp://ultramaficrock.ruhttp://ultraviolettesting.ru

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/