Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GUI Help!!!

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi everyone i am new to this forum. So please excuse me if i make any mistake.

I am working on a GUI engine and it is turning out pretty cool but i had one big problem. Whenever u open a window the background of the window gets stored in 4 different files using BSAVE. And when the window is closed or moved the background of the window needs to be restored. But since i divide the background in 4 different parts and store them on the Harddisk the whole becomes slow(well not actually too slow). I wanted to over come this problem by either using EMS or XMS memory. I am making this GUI in 640x480x16(Screen 12) using Qb4.5. The libraries which i found were all offering me SVGA but i will then have to start from 1.either scratch or 2.spend a huge time in converting to make my program compatible with the library.

Instead if someone outthere might have an EMS get and put routine which works similarly to Qb4.5s get and put or if some one has some bright ideas i would really appriciate it.

Thanks.
 
What about storing the screens as files on a RAMdisk?
 
I am writing a GUI also, and I am planning to store it in the RAMdisk or, not store it at all.
here is the advantages and disadvantages of each.

RAM: the codes for RAM are fantastically complicated and take a lot of Assembly and Hardware understanding. But I think it should be faster.

No Save at all: The advantages are that the program will be shorter and a little easier to build. But everytime that you switch windows you have to remake the windows, icons, et cetera all over again, but this is easy to do, this is what mine does right now.

Whats the name of your GUI? Will I be able to download it on the net, I review them on Tek-Tips
 
Why do you split the background up into four files? I don't understand this, the files should be able to fit the entire screen.

if you have AIM or AOL im me, i'm always interested hereing about Qbasic GUIs, and it would be easier to hold on conversation on AIM than here.
My s/n is "Thed Evil 2004"
anyone can im me if they want
 
qbasicking thank u for replying to my question. I donot have AIM or AOL so please let me know where should i e-mail u a demo of my GUI. My e-mail is thebigbasicq@hotmail.com Also if it is possible please email me a demo of ur GUI(dont send me the source code but an .EXE file) Thanks.
 
There's nothing complicated in making a RAMdisk. It's quite simple and any DOS book will explain how. It uses memory as a virtual disk drive. To make one usually means the addition of a couple of lines in your Config.sys file. You can make the RAMdisk as large as you like - subject to your available memory.

It will become the next drive letter after your last hard disk, so if you have hard disks C and D, it will become E.

You write to it as if it was a hard disk - but it will be infinitely faster. If you make your backgrounds and save them to your HD, you can transfer them to the RAMdisk when you load your program.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top