Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Display mode menu using checklist

Author
Message
Levanthus
21
Years of Service
User Offline
Joined: 17th Apr 2003
Location: Cumbria, UK
Posted: 8th Aug 2010 00:47
On my current project, once you start it up there is a small menu asking to select a display mode/size. Now, the menu itself has only a small handful of display modes hard coded into it, how exaclty would i use the PERFORM CHECKLIST FOR DISPLAY MODES to create a menu that i could then Click to select one?

My current menu is like this:-

It is based on a bit of code i discovered on the forums, i like how it works but i don;t know how i would implement the PERFORM CHECKLIST FOR DISPLAY MODES

I can see from your smile, you're not here for the sunset

Windows 7 64 bit, AMD Phenom II x4 Black edition, 4 GB Ram, Radeon HD 4650, 540 GB HDD
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 8th Aug 2010 02:23 Edited at: 8th Aug 2010 02:24
This is how I do it...



I hope that helps a little

Levanthus
21
Years of Service
User Offline
Joined: 17th Apr 2003
Location: Cumbria, UK
Posted: 8th Aug 2010 13:22 Edited at: 8th Aug 2010 13:23
Ok i had a look at your bit of code but it doesn't seem to want to work for me.
everytime i compile it it highlights list(1,a).writing=temp$ but for a while now my editor hasn't told me WHAT is wrong with the line.

I made sure i had all of IanM's plugins and stuff.

I can see from your smile, you're not here for the sunset

Windows 7 64 bit, AMD Phenom II x4 Black edition, 4 GB Ram, Radeon HD 4650, 540 GB HDD
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 8th Aug 2010 13:36 Edited at: 8th Aug 2010 13:47
It's a typed array; It needs defining before you can use it.

It wasn't a working snippet; I just hacked it out of my game and posted it for you to look at.

Here is an standalone version; I've changed all the typed variables to normal ones. hope it makes more sense



Login to post a reply

Server time is: 2024-11-23 11:32:55
Your offset time is: 2024-11-23 11:32:55