Also Known As: banshee_revora (Steam) Joined: 15 Aug 2002 Location: Brazil
Posted: Sun Apr 04, 2004 9:30 am Post subject:
BS SHP Builder Feature - Multi Documents Editing!
This feature was suposed to be April's fool, but I started applying it earlier than I expected because I was getting pissed off at the way the program was working. Stu became pissed off at me and it's far from being done... I have to sort loads of bugs and remove that Frame Controls and Zoom Factor of the left menu and also make a View menu... but, here's a snip of the current progress:
when implementing a feature that compleatly changes how the program works you should rebuild the entire program from scratch so the code doesn't become as mess, meaning ppl can acualy add stuff to teh program in days not years.
Why u moved frame controls? it would b better with a centeralised one. You could store the windows id........... same with the bar at the bottom, having multipul ones wastes memory when u can just use one centralised one.
this is why it should b done in a rebuilt, u can plan how to modify everything for this feature rather than patching bits up. You want to have a window that just has the paint area nothing else.
It should also b a v4 feature, so v3 can get some features that don't require a compleate rebuild. + so ppl can use the app b4 2005 _________________ Free Map Editor - Game Requirements - Stucuk.Net QUICK_EDIT
Joined: 10 Aug 2003 Location: Laughing at Donald Trump in a rather flat place
Posted: Sun Apr 04, 2004 11:11 pm Post subject:
I wonder what the next April fool's prank that will become true? _________________ Tiberian Station
Image guy on the Dune Sun\
- Peace - Through - Wossname - QUICK_EDIT
Also Known As: banshee_revora (Steam) Joined: 15 Aug 2002 Location: Brazil
Posted: Mon Apr 05, 2004 4:22 am Post subject:
Update:
It's really being trully harder. There are some factors that are burning my neurons here (stucuk, I need ideas!):
1. fsMDIChild and fs MDIForm only works well if there is only one MDIForm and only one MDIChild. BS SHP is suposed to use 2 childs (the editing form and the preview) for one file.
2. When I use MDIChild and MDIForm thing, the damn child doesnt appear ! If I dont use that, the forms get fucked up when you activate or deactivate, and there is a big confusion of variables.
3. If I work with MDIChild using dynamic arrays as Delphi uses by its default functions with MDIChilds, when the user closes a child that isnt the first or the last, how will I identify the others? ID will become unreliable and FrmPreview will be even more unreliable, since it depends on the ID. The problem that happens when activating or not the form mentioned on (2), makes things even harder.
4. The program was originally made to use Palettes even when there is no document opened. But at the same time, each SHP file opened should be entitled of having its own palette. To deal with multiples palettes and SHPs (and any sort of SHP data), I made 2 pointers: 1 straight for the current SHP and another to the current active form. This iniatially created a terrible problem: and if there is no file opened? I had to emulate a FakeImage with all that data, but it lead me to inumerous other problems, specially between the closure of the last frame and the generation of the fake image and also, it added load of gibberish to the program and gave me a lot of headache.
Considering the four points above, I will remake the whole Multiples Documents Interface Engine. I'll probably merge the FrmPreview with the Editing one, addapt it and make a special unit to deal with the data separatelly. Each Editing Form will have an ID to link to its respective SHP file and FrmMain will have a pointer to SHP, to Palette, UndoList and DataLink. I'll post results later, but unfortunatelly, this certainly postpones a lot the next release of the program . Further info comming as soon as possible and any ideas are apreciated... _________________
Mods, Mods Support, Public Researchs, Map Archives, Tutorials, A Friendly Community and much more. Check it out now! QUICK_EDIT
Also Known As: banshee_revora (Steam) Joined: 15 Aug 2002 Location: Brazil
Posted: Mon Apr 05, 2004 11:33 am Post subject:
bah... no. I won't have a public pointer to SHP, neither Palette or UndoList, otherwise I will have to deal with the active logic... I'll let Delphi does that job... all goes to GetSHPAddress(ID);, so I will only use private pointers... _________________
Mods, Mods Support, Public Researchs, Map Archives, Tutorials, A Friendly Community and much more. Check it out now! QUICK_EDIT
i have no clue, never used the child/paent forms like i said to u on msn. Due to this i have no clue.
Quote:
stu was right
god, don't u ppl ever get it? Stu is always right
This is why i suggested it should b added during a compleate rebuild so everything could be worked out so everything works. _________________ Free Map Editor - Game Requirements - Stucuk.Net QUICK_EDIT
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum