forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


More than one CLASS

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
filip
Valued Contributor
Valued Contributor


Joined: 07 Aug 2004
Posts: 340

PostPosted: Tue Mar 01, 2005 11:41 am    Post subject: More than one CLASS Reply with quote

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
View user's profile Send private message Send e-mail
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Tue Mar 01, 2005 4:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
filip
Valued Contributor
Valued Contributor


Joined: 07 Aug 2004
Posts: 340

PostPosted: Tue Mar 01, 2005 7:00 pm    Post subject: Reply with quote

Better description ?!?

Im using or trying to use SSmenu.dll and VDSobj.dll both this library's use CLASS...
Back to top
View user's profile Send private message Send e-mail
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Tue Mar 01, 2005 7:03 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Tue Mar 01, 2005 7:12 pm    Post subject: Reply with quote

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. Wink

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
filip
Valued Contributor
Valued Contributor


Joined: 07 Aug 2004
Posts: 340

PostPosted: Tue Mar 01, 2005 7:36 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Tue Mar 01, 2005 9:44 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Wed Mar 02, 2005 1:17 am    Post subject: Reply with quote

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
View user's profile Send private message
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Wed Mar 02, 2005 5:39 am    Post subject: Reply with quote

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 Wink

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Wed Mar 02, 2005 6:37 am    Post subject: Reply with quote

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
View user's profile Send private message
filip
Valued Contributor
Valued Contributor


Joined: 07 Aug 2004
Posts: 340

PostPosted: Wed Mar 02, 2005 9:30 am    Post subject: Reply with quote

Thanks you guys for info how Class works

MISSION SUCCESSFUL
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group