Very Simple GUI
#61
Kind of interesting how I detect errors in screen shots I post here. I see an odd gap in the listing of controls in the GUI_Preview.bas file. It was getting late last night and I wanted to post before going to bed, so my blurry eyes overlooked a thing or 2. Still very happy the Preview did get written, compiled and ran correctly AND the animated Picture Control worked as well.

As far as the shaky Text Box, I need a description so I can duplicate the error so I have a hope of fixing it.
The only thing I am getting is if I click into a box past the text and then type something, that something goes directly at the end of the text. To put spaces into the text, you have to type them in. Also the cursor is sometimes off a character when clicking into a box or ends up at end of text because you click too close to border, easily fixed with arrow, home or end keys.
b = b + ...
Reply
#62
Another fix for running GUI Forms Designer out of different Folders.

I already had been saving project path under global curPath$ in BI and set when OpenWindow, it fits in nicely for compiling and running the GUI_Preview.bas file:

My code mods that work from different folders without hardcoding path:
Code: (Select All)
            ' It worked!!! IDE Run Menu: "Output EXE to Source Folder" bulleted
            Shell "C:\Users\marka\Downloads\qb64_win-x64-0.8.2\qb64\qb64.exe -c " + _
            Chr$(34) + curpath$+ "\GUI_Preview.bas" + Chr$(34)
            _Delay 3
            Shell Chr$(34) + curPath$ + "\GUI_Preview.exe" + Chr$(34)
            '................  Of course you will need to fix this for your system setup ..............................

Man it sucks tracking changes in 2 sets of folders, one set does it with BI and BM unpacked all in one code file in case I have to change something in those, and another set runs with BI and BM just for a check.

I will post an updated, "stable" version of forms designer after I get more apps coded and changes settle down or there are so many fixes.
b = b + ...
Reply
#63
Nice screenshots, bplus, the colors are tastefully selected and reminiscent of freeGEM:

https://en.wikipedia.org/wiki/FreeGEM

[Image: Gem1.png]
Reply
#64
Thanks @vince I am reminded of my first pc with a PreWindows Icon select system.

Coming soon to Forms Designer, a button that allows us to move and resize the controls after they are started in the first screen. Still a ways to go but here is glimpse of controls laid out over a grid.
   
b = b + ...
Reply
#65
Wow! Had a hell of a night getting really strange things happening but this morning with clearer eyes and head I managed to resize and move controls around in the Forms Designer, now to get the results filed into GUI_Preview.bas file.
   
b = b + ...
Reply
#66
Here is next installment of the GUI package with an updated Forms Designer, you can now move and resize controls before writing to the GUI_Preview file a list of controls to get your GUI app started.

I think the next thing is adding some labels in the bas file app so we can extract them for editing and then reinsert them  back in without disturbing the rest of the file.

Any ideas for using GUI? I've got a couple but they are just rehash of stuff I've done.


Attached Files
.zip   Form Designer 2022-06-22 update.zip (Size: 52.22 KB / Downloads: 40)
b = b + ...
Reply
#67
Oh how 'bout we use that File Selector of previous GUI Demo for List Boxes to Load and Run the Forms Designer!?

Plus I stumbled upon a cool way to switch window screens like in the Browser little <> labels to click.
b = b + ...
Reply
#68
Update: Get Filename controls have been assimilated into Forms Designer for a 3rd screen function. Today I can extract, edit and insert back into the bas workfile a new or edited list of controls. I've also rounded everything to 10's in move resize screen so it's a lot easier to get nice neat layouts like in reply #65 no more twiddle with lining up mouse to exact pixel!
b = b + ...
Reply
#69
OK here is the 3rd Update for Forms Designer now with GUI Get Filename screen assimilated into it. The moving and resizing screen now rounds all numbers to nearest 10 for a "snap to grid" functionality. I also have a GUI Practice.bas file for practice and Ken's Artillery Game mod by me, mod again for GUI, here are before and after:

Before:
   

After: (but the Computer AI smarts got lost in translation ;-)) So @johnno might like this one!
   

Looks like some folks are fighting over some Pyramids LOL

Zip contains:
   


Attached Files
.zip   GUI Designer with GetFile.zip (Size: 71.98 KB / Downloads: 36)
b = b + ...
Reply
#70
You Mark ..lot of work
that game is also cool!
Reply




Users browsing this thread: 6 Guest(s)