| View previous topic :: View next topic |
| Author |
Message |
filip Valued Contributor


Joined: 07 Aug 2004 Posts: 340
|
Posted: Tue Mar 01, 2005 11:41 am Post subject: More than one CLASS |
|
|
CLASS MenuDemo and CLASS VDSExample togetter this dont work
???
Last edited by filip on Tue Mar 01, 2005 7:14 pm; edited 1 time in total |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Tue Mar 01, 2005 4:56 pm Post subject: |
|
|
| You need to give a better description of exactly what you are trying to do. A window can only have ONE class name. |
|
| Back to top |
|
 |
filip Valued Contributor


Joined: 07 Aug 2004 Posts: 340
|
Posted: Tue Mar 01, 2005 7:00 pm Post subject: |
|
|
Better description ?!?
Im using or trying to use SSmenu.dll and VDSobj.dll both this library's use CLASS... |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Tue Mar 01, 2005 7:03 pm Post subject: |
|
|
I don't know much about those DLLs, but I think the idea is that YOU decide what class you want your dialog to be called, and then you use that name in the command to the DLL. The ones you are trying to use are probably just the ones used in the examples. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Tue Mar 01, 2005 7:12 pm Post subject: |
|
|
| jules wrote: | | I don't know much about those DLLs, but I think the idea is that YOU decide what class you want your dialog to be called, and then you use that name in the command to the DLL. The ones you are trying to use are probably just the ones used in the examples. |
Jules, you are correct. The ClassName parameter for the MENU command
is a user defined class name for a dialog window. However, you can specify
the handle of the window instead @winexists(Dialog Name) or you can also
specify the title bar text of the dialog window.  _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
filip Valued Contributor


Joined: 07 Aug 2004 Posts: 340
|
Posted: Tue Mar 01, 2005 7:36 pm Post subject: |
|
|
I do not know what CLASS exactly is or do
From VDS help
CLASS: This style must be followed by a name, which will be used as the window class name for the window or dialog instead of the default which is TVDSDialog. For example: CLASS TOptionsDlg.
VDSobj.dll is for text or image files read and edit
SSmenu.dll is for super menus and status bar
Any tips from the authors of VDSobj.dll and SSmenu.dll will be welcome...
.......................................................................................................... |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Tue Mar 01, 2005 9:44 pm Post subject: |
|
|
| filip wrote: |
VDSobj.dll is for text or image files read and edit
SSmenu.dll is for super menus and status bar
Any tips from the authors of VDSobj.dll and SSmenu.dll will be welcome...
.......................................................................................................... |
Filip, I am the author of SSMenu.Dll. Please view my last post for an
explanation of the MENU CLASS command. This is also fully
documented in the help file - "ssmenu.chm". _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Wed Mar 02, 2005 1:17 am Post subject: |
|
|
I think you are under the impression you must use the EXACT class names ssmenu.dll and vdsobj.dll extensions show in the examples.
Those examples use generic window class names for EXAMPLE only. What you need to do is specify a class name for your form:
DIALOG CREATE, Program Name, 10, 10, 400, 400,CLASS test
You need to change CLASS test to something unique to your program. Then in ssmenu and vdsobj you specify the new window class name to use.
For SSMENU:
MENU CLASS, #test
For VDSOBJ:
OBJECT CLASS, test
Please check the vds help file for more information about window classes so you get a better idea what they are used for and how windows api and other programs can interact with your program forms by using windows class names.
Last edited by PGWARE on Wed Mar 02, 2005 6:40 am; edited 1 time in total |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Wed Mar 02, 2005 5:39 am Post subject: |
|
|
Hi Filip,
Heres a couple examples of different ways to setup calling SSMenu.Dll.
| Code: |
rem EXAMPLE 1
rem Here we will use the CLASS dialog style
dialog create,Demo,-1,0,300,200,CLASS DemoWnd
dialog add,MENU,File,Exit
rem use the #classname
MENU CLASS,#DemoWnd
dialog show
.
.
.
rem EXAMPLE 2
rem Here we don't use the CLASS dialog style
dialog create,Demo,-1,0,300,200
dialog add,MENU,File,Exit
rem We can use the dialogs title
MENU CLASS,Demo
dialog show
.
.
.
rem EXAMPLE 3
rem Here we don't use the CLASS dialog style either
dialog create,Demo,-1,0,300,200
dialog add,MENU,File,Exit
rem We can use the dialogs identifier too!
MENU CLASS,@winexists(Demo)
dialog show
.
.
.
|
I'm not sure if the same applies to vdsobj.dll, but I'd say it prolly does. I
try to match the syntax for VDS as close as I can when writing my dlls and
I think most of the other extension developers do as well.
Hopefully this will help clarify things for you  _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Wed Mar 02, 2005 6:37 am Post subject: |
|
|
| vdsobj.dll works the same way except no caption/title support. You can use a window class, or use a window handle/id by prepending %. |
|
| Back to top |
|
 |
filip Valued Contributor


Joined: 07 Aug 2004 Posts: 340
|
Posted: Wed Mar 02, 2005 9:30 am Post subject: |
|
|
Thanks you guys for info how Class works
MISSION SUCCESSFUL |
|
| Back to top |
|
 |
|