Author Topic: [InForm] Windows 7's run dialog clone  (Read 2407 times)

Offline FellippeHeitor

  • QB64 Developer
  • LET IT = BE
    • QB64.org
[InForm] Windows 7's run dialog clone
« on: February 26, 2018, 10:34:19 AM »
Of course there's no purpose recreating a system dialog other than it being a proof of concept. In this case I recreate Windows's "Run" dialog, with limited function (the Browse... button is disabled).


Unpack all files and compile Executar.bas

This was created using InForm beta 6. The hotsite for the project is still offering beta 5, but you can get the development preview from GitHub: https://github.com/FellippeHeitor/InForm/archive/development.zip

Notice that the InForm folder in the zip attached doesn't contain the full project (which includes the visual editor). These are the only files you need to include when you distribute a project created using InForm.

PS: "Run" in Portuguese is "Executar".
« Last Edit: August 28, 2018, 12:01:30 AM by FellippeHeitor »

Re: [InForm] Windows 7's run dialog clone
« Reply #1 on: February 26, 2018, 11:10:44 AM »
I'm going to try this in Windows 10 since Microsoft thoughtfully removed the "Run" dialog.

Offline FellippeHeitor

  • QB64 Developer
  • LET IT = BE
    • QB64.org
Re: [InForm] Windows 7's run dialog clone
« Reply #2 on: February 26, 2018, 11:18:08 AM »
Let me know how that goes!

Re: [InForm] Windows 7's run dialog clone
« Reply #3 on: February 26, 2018, 12:15:15 PM »
Hi Fellippe,

I bet it is possible to put Files / Folders tree in a list box and just click the desired File or Folder.

You guys with all your typing, sheez! ;D
B = B + ...

Offline FellippeHeitor

  • QB64 Developer
  • LET IT = BE
    • QB64.org
Re: [InForm] Windows 7's run dialog clone
« Reply #4 on: February 26, 2018, 12:20:47 PM »
A call to the default browse dialog should be easy enough to add, I just haven't: http://www.qb64.org/wiki/Windows_Libraries#File_Open_and_Save_Dialog

Re: [InForm] Windows 7's run dialog clone
« Reply #5 on: February 26, 2018, 02:09:59 PM »
Can't get it to compile under Windows 10, I keep getting  Library not found in line 15 of ***\inform.ui included on current line, although in the file manager I can see that it's there where it claims it can't find it.  If I open the inform.ui file it says it can't find Library "falcon. "  Does this by chance require the latest version of QB64, I'm still using 1.1 because I'm lazy.

Offline FellippeHeitor

  • QB64 Developer
  • LET IT = BE
    • QB64.org
Re: [InForm] Windows 7's run dialog clone
« Reply #6 on: February 26, 2018, 02:17:18 PM »
Stupid me, forgot to add falcon.h to the zip. Here it is, place it in QB64's folder. Zip updated too.

Re: [InForm] Windows 7's run dialog clone
« Reply #7 on: February 26, 2018, 03:39:50 PM »
That did the trick, works like a champ now!

Offline FellippeHeitor

  • QB64 Developer
  • LET IT = BE
    • QB64.org
Re: [InForm] Windows 7's run dialog clone
« Reply #8 on: February 26, 2018, 03:42:25 PM »
Great to hear!

Offline FellippeHeitor

  • QB64 Developer
  • LET IT = BE
    • QB64.org
Re: [InForm] Windows 7's run dialog clone
« Reply #9 on: February 27, 2018, 11:11:02 AM »
I have added the Browse... functionality by calling the default system Open dialog, using the code provided in the wiki by Jobert14.

I updated the zip in the first post and you can see a screenshot attached below.

Re: [InForm] Windows 7's run dialog clone
« Reply #10 on: February 27, 2018, 01:05:30 PM »
Hi Fellippe,

Now we're talking! (if that is what I think it is) Great idea! 

*<|:-)  I'm taking you off my naughty list.



B = B + ...

Offline Pete

  • Cuz I sez so, varmint!
Re: [InForm] Windows 7's run dialog clone
« Reply #11 on: February 27, 2018, 03:32:36 PM »
Is the run dialog screenshot something you created in QB64 graphics, or is it a call to an existing box, through a Windows API call?

Also, what is the purpose?

Pete :)

Offline FellippeHeitor

  • QB64 Developer
  • LET IT = BE
    • QB64.org
Re: [InForm] Windows 7's run dialog clone
« Reply #12 on: February 27, 2018, 03:38:35 PM »
The Run dialog has been recreated using InForm, that's all QB64. The Open dialog in the second screenshot is Windows native, via API call.

The purpose, as stated in the first post, is a proof of concept. Look how cool my form looks using InForm. That's the only goal with this.

But as soon as the dialog with the original goal was posted, I found out via phred that Windows 10 has extinguished the Run dialog, so my faux dialog was repurposed. Now you can have a basic OS functionality back with a program created using BASIC.

Re: [InForm] Windows 7's run dialog clone
« Reply #13 on: February 27, 2018, 03:59:25 PM »
Yes Fellippe after this idiot figured out where to put Falcon.h the code Ran.
(I know, all I had to do was read the instruction to put it in the QB64 folder, yikes read!)

Guess who I ran into testing this dialog out?

Seriously, this is really nice demo with a use! a keeper!
« Last Edit: February 27, 2018, 04:07:13 PM by bplus »
B = B + ...

Re: [InForm] Windows 7's run dialog clone
« Reply #14 on: March 02, 2018, 10:52:10 PM »
I just tested the Browse part of the Run Dialog and YES you can do all kinds of File and Folder management while in the Browse screen.

I wish this feature were in the QB64  IDE Editor with Open, Save and Save as dialogs.
B = B + ...