PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Controls?

What controls are in PPL?

For instance, I wanted to use a Grid control. Are things like this available?
PPL uses the standard Windows controls. There is no grid control, sorry.
I guess I was expecting a longer reply.

So there is no Grid control for PPL, and no current plans to add one?

If so, that worries me because I was hoping PPL would be a full featured replacement for other programming languages on the PPC. If I wanted to port my programs I wouldn't be able to
PPL will not be a Visual Basic replacement. The visual form building aspect of PPL is not the first goal of PPL. It is there to add simplicity to PPL but won't be the number 1 priority.

I have no plans to support more controls for now. PPL supports ACTIVEX, I am thinking of integrating ActiveX controls later on but that is it.
I've seen a listview control in the VFB in the PIDE. I seem to remember that this has a lot of functionality for this sort of thing. Doesn't it have several grid modes?
Thanks for the hint webba, however the LISTVIEW is not as easy to use as a grid control but can certainly be used to ressemble one. By using a report style view and creating multiple columns it can be done.

I can provide you with some code to show you how to use it if you'd like.
I don't have any immediate requirement for a grid but when I start thinking about my next project with PPL, I do think it would be V useful.

Kornalius, if you have time to put some code together demonstrating this, I'd certainly be interested. :D
I will, I will... :lol: Give me some time.
kornalius wrote:PPL will not be a Visual Basic replacement. The visual form building aspect of PPL is not the first goal of PPL. It is there to add simplicity to PPL but won't be the number 1 priority.

I have no plans to support more controls for now. PPL supports ACTIVEX, I am thinking of integrating ActiveX controls later on but that is it.


Visual Basic? Forget Visual Basic.

C#, C, C++ and NSBasic all support grid controls.

While we are on the subject, before I get any deeper in PPL I should probably ask: What IS the main priorty/Goal of PPL? I assumed it would be a full blown developement package for the PPC.
Most full-blown development packages are being developed by teams of programmers with huge funds. PPL is being developed by 1 programmer with NO funds. I would love to be able to please every developer's needs but unfortunately I can't.

The grid control is mostly an activex control and when I get back to this part of development I will see what can be done.

PPL's original goal was to give developers a quick and easy solution to develop softwares for the PPC. It was not design to replace any development tool but to offer an alternative solution. I never had the intention of making PPL a visual tool.

For now, I focus more on the gaming aspect. Maybe later I will focus on the visual tools more. I need to do one thing at the time and make sure I finish each element completely before moving to another area.
lets not get too heated guys!
kornalius, you must be under a lot of pressure to get PPL to market. this beta program must be a blessing and a curse. i cant count the no. of times ive seen compliments in the forum on the speed n quality of your work. i think its obvious from how serious u r that PPL will not disappoint WHATEVER we try to do with it (within reason). we all just have to be patient.

sound reasonable?
Sorry guys, I hope I didn't sound too rude? I am a bit tired these days. Thanks for the kind words.
PointOfLight · 03 Dec 2004, 03:07 UTC
I think you've got a wonderful thing going with PPL, and even if it doesn't have every feature of the other packages, it has many that others don't (ex: desktop debugging, which NSBasic doesn't have, the ability to reference DLLs, which NSBasic doesn't have, SQLite support, etc.). As for the grid control, that is an enhancement to NSBasic as of version 5, so it is a relatively new feature. Maybe by the time PPL is on version 5 it will have a grid :) Again looking at NSBasic as an example, I've been on their yahoo group for several months now, and you'd be surprised at the things NSBasic can't do (and will never be able to, because it's based off of VBScript). And, try coming up with anything close to the GameAPI in NSBasic. Believe me, I've tried, and it's not going to happen.

Now, as for the whole grid / listview thing, if you want to use listviews, take a look at the ListView_Lib.ppl library (which should be part of the main distribution). It makes working with listviews fairly easy (I've used it once or twice myself... that, and I wrote it). If you guys ever want wrappers around another control, let me know and I'll see what I can do.
ok.

Kornalius,
I am curious if third party controls are supported with PPL? Could risco's grid or microsoft's mscegrid be used? That is how NS Basic gets a lot of it's functionality.

Pointoflight,

This is totally a side note. Thank you for your comments. However, you have some erronious facts on NS Basic. You have only been on the yahoo group for a couple of months so I don't blame you :) . I have been using NSBasic for over 3 years and have been on there web boards almost from their beginnings. Grids have been supported ever since 3.0 (perhaps even earlier). I still have my original CD I bought, with the list of supported controls. As for Game writing, I have writen some crazy fast games with ASpriteCE and NSBasic, so NS Basic does have the ability to write fast and functional games.

Yet, I left NSBasic for the C family because I wanted OOP. NS Basic could do anything I wanted it to do, it just took a lot of extra code that I don't have to use with Object Oriented Programming.

Kornalius,

One more thing I haven't mentioned is my respect for your efforts to create a language on your own. PPL and you have come a very long way from conception. Good job.
PointOfLight · 03 Dec 2004, 04:53 UTC
The grid was a mistake on my part. I got the impression from comments over the last few months that it was a relatively new thing. I am also familiar with the ASpriteCE control (I actually bought it before it went freeware), and while it is nice for use with NSBasic, it doesn't seem to have nearly the functionality that the GameAPI does. Add to that the facts that (1) it does not do full screen in NSBasic, (2) it doesn't support hardware buttons correctly on all devices, (3) it is no longer in development, and (4) it requires the eVB runtimes (at least according to the web site), it really isn't an adequate resource for overall game development.

I would be curious to see any games you've written in NSBasic that you'd like the share. This question has come up several times on the NSBasic board, and not too many people have stepped forward with actual games to show.
I also bought the ASprite control before it was freeware 24.99 I think. I was sad when spritehand released it as freeware because I bought it to give my small software company an edge. Oh well.

It's funny that you mention the limitations of Asprite like Fullscreen. I was actually the one who helped George Henne finally incorporate specific changes in 5.0 to allow the average NS Basic user an easier time using ASprite.

I have read the frustrations of many ASprite/NSBasic users, and have felt bad that I don't have more time to share my knowledge with the other users. I tried to help George fix his fullscreen problem, but somehow it fell through the cracks. I wrote a fullscreen Rogue clone in nsbasic/aspritece that did many things most are unaware ASPrite could do. It was really fun at first, then after a few months of development, I began to get frustrated with all the code I had to write just to do something that an OOP language could do in a few lines. I nixed the game and never released it. I since learned C#, which has great promise, and was porting the game when I found PPL which also has great promise.I hope to someday port my games to a new language.
PointOfLight · 03 Dec 2004, 05:24 UTC
Have you considered releasing any of your NSBasic / ASpriteCE code to the forum? I'm sure you put a lot of work into it, and probably wouldn't want to just give it up, but it could be a big help to the community. It's just something to think about. In the mean time, I still see the GameAPI as the simplest game development tool with the most features for the PPC. I've tried other routes like eVC and GapiDraw, but while they might be more feature rich (might), the ease of use isn't there. I've also looked into the .NET route, but again I think PPL is easier to use.
I agree. GapiDraw is complicated and PPL (which is really PocketHAL at it's roots) is a step above ASprite and easier to learn than GapiDraw.

As for code, This may sound funny, but nonetheless it is the truth: I used to program heavily with NSBasic/ASprite. I released a piano program, a feature-rich asteriod game, card game and was even working on a religious action game :lol: . Then in May of this year, my toshiba e805 was stolen with all the religious action game's code on it. I lost a PPC and months of work. I was devistated. I was begged by many of the beta testers to redo/finish the game. However, (this may seem funny to people who have not lost a valuable item) I can't explain it, but I just can't get myself to pick up Asprite/NSBasic anymore. It just makes me remember losing my old PPC. :oops: It was put away about 6 months ago and hasn't been touched.

Perhaps, sometime if I get up the gumption, I'll dig up the old tricks I used and post them.

PS. boy this post has sure gone off the path I intended :)
Yes, but we've all learned a little bit more about each other - and that's got to be a good thing.
Yeah, and maybe a dozen years later we'll find ourselves sitting in a penthouse chair in "PPL corp." skyscraper and reading a book "Guys that started pocket revolution" with our names in it :D Heh, dreams, dreams... Errr... What was this topic about? =))))
PPL Corp.! HEHEHE! That one was funny! :lol: I just wish it could become true one day!

I have tried NS/Basic with ASpriteCE in the past. While NS/Basic is a terrific package, it is a lot slower than PPL in most cases, PPL already as a hard time keeping up with complex games or demos without all the integrated features of the GameAPI, I wonder how NS/Basic can create professional games that are fast.

ASpriteCE is an activex component if I remember. It obviously doesn't come close to the PPL GameAPI in terms of features but does a decent job. The PPL GameAPI has been designed with a desire to provide simplicity to the developers. Using PocketHAL / PocketFrog at it's roots, it is very powerful and pretty fast too.

While writing the GameAPI, I had to incorporate a lot of features into the engine because it was just too slow to do in PPL on the actual PPC's. This leaves developers with a lot less to code and an engine that renders very fast.

Don't forget that when fullscreen and multi-resolutions on the PC works, PPL would be a great solution to writing 2D games on the PC and fast at it too and without code changes!

Boy this thread is nice, thank you all for supporting PPL with such passion, I just want to let you guys know that, without you, PPL wouldn't be what it is today and just imagine what it will be tomorrow...

PS: I have huge respect for the other packages out there and don't really want to start a war, PPL vs ... When I compare PPL to other packages they are just facts and I am not trying to put down the other products. It's obviously that I have to compare PPL to other packages internally to see how PPL can do on the market.
mmtbb: Visual activeX controls are not yet part of PPL but will be integrated at some point in a near future. The more I think about it, I might do it in version 0.9 and make sure the possibility is there before the official release of PPL. :wink:
PointOfLight · 03 Dec 2004, 12:43 UTC
Kornalius, I'm just curious: did you ever figure out how to respond to events triggered by ActiveX controls? I can see that being a big issue if people start using controls like a grid, for example, that has click events and the like.
The event system for activex is not implemented yet. That is one of the reasons why activex controls are not functional yet.
Kornalius: I am glad to hear that it is on a list of "Things to do"
NSBasic was very wise to incorp a system to support 3rd party controls (I have only found few controls that do not fully work with NS Basic). I believe that if you took away the 3rd party controls, and 3rd party controls they have wrapped right into NSBasic, you would find NSBasic a VERY weak program