| View previous topic :: View next topic |
| Author |
Message |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sun Sep 08, 2002 5:54 pm Post subject: Hotkeys in V-Setup without a DLL or Menu? |
|
|
I just thought of this, and it baffled me.
How can V-Setup be able to open a corresponding help topic when you press F1 without a DLL or a "hidden" menu
I've heard this is written in VDS... _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sun Sep 08, 2002 5:57 pm Post subject: |
|
|
Might be one of the things to come in the next version of VDS maybe?
-Garrett |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sun Sep 08, 2002 6:00 pm Post subject: |
|
|
| One thing I know is that you can use Buttons as Hotkeys by using a value like H&elp... I don't know if it works with the F1 key, I don't think so, but it still is very usefull... |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sun Sep 08, 2002 6:03 pm Post subject: |
|
|
Yes, I was aware of that, but the buttons only allow one letter to be a key...this is two characters... F1 _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sun Sep 08, 2002 6:03 pm Post subject: |
|
|
I never tried using buttons for the Fx keys. Give it a try and see.
-Garrett |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sun Sep 08, 2002 6:06 pm Post subject: |
|
|
Nope, only responds to the "F" key...
| Code: | DIALOG CREATE,New Dialog,-1,0,240,160
DIALOG ADD,BUTTON,BUTTON1,28,48,,,&F1
DIALOG SHOW
:evloop
wait event
goto @event()
:button1button
info pressed it
exit |
_________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sun Sep 08, 2002 6:07 pm Post subject: |
|
|
| I took a second look at it, and I saw that if you name a button/bitbtn HELP a HELPBUTTON event will occur when pressing the F1 key. The same thing with a CANCELBUTTON, if the Escape button is pressed... |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sun Sep 08, 2002 6:08 pm Post subject: |
|
|
There's no way to hide a menu is there??
-Garrett |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sun Sep 08, 2002 6:13 pm Post subject: |
|
|
That's it! It has a BITBTN named "Help"...
Then it uses the WINHELP command to open the corresponding page, probably...
But Here's another:
When you press F1 on the "Files" tab of V-Setup, you see a screen shot of it...but the list has glyphs in it, they are probably the "Wingdings" font...but how can you use two fonts in one list line?
To Garrett:
You can find an example of a "hidden" menu from Mac somewhere on this forum...you would use something like the following:
DIALOG ADD,MENU,-,Item 1|Ctrl+1,Item 2|Ctrl+2
The hyphen is not visible, the menu is disabled, and it still functions as a Hotkey...only for your program though.
It adds about a quarter of an inch of extra room at the top of the dialog... _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sun Sep 08, 2002 6:28 pm Post subject: |
|
|
VSetup installs it's own font for this. If you use character map, check the vsfont and you'll see the wingdings added to this font, which is used in that list element.
-Garrett |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sun Sep 08, 2002 6:29 pm Post subject: |
|
|
If you want a real hidden menu, try to make a child-window of 1 by 1 pixel, on top, that has a Menu-element on it. I think it should work.
For the multiply fonts: maybe they've used a TEXT element on top of the list. Then you can simulate more then one font. It works fine as long as the list doesn't scroll up or down. |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sun Sep 08, 2002 6:44 pm Post subject: |
|
|
Skit, I just posted above that VSetup installs it's own font for use in that list. If you look at the font, you'll see some wingdings in it's selection.
-Garrett |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sun Sep 08, 2002 6:56 pm Post subject: |
|
|
I didn't think that it installed it's own font...that would be a good font for VDS users to use...although we probably couldn't distribute it because of possible copyrights. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sun Sep 08, 2002 7:49 pm Post subject: |
|
|
Sorry Garrett, but we posted on the same moment... I saw it a minute (too) late(r)...  |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
|
| Back to top |
|
 |
|