till Now steps of creating Dialogs as main window
-
- Posts: 334
- Joined: Fri Oct 14, 2005 1:54 pm
till Now steps of creating Dialogs as main window
I tried to create small program that has a resource dialog as main window. Till Now I do not know the steps of creating the resource and I am asking if there are any include lines inside the program *.ch?
Thanks
Thanks
Re: till Now steps of creating Dialogs as main window
Maybe i didnt understand exactly what you wanna do, becauseEhab Samir Aziz wrote:I tried to create small program that has a resource dialog as main window. Till Now I do not know the steps of creating the resource and I am asking if there are any include lines inside the program *.ch?
Thanks
its very simple to create an app with a main dialog from resource.
#Include "FiveWin.ch"
Function Main()
Local oDlg
DEFINE DIALOG oDlg RESOURCE "MAIN"
....
....
....
ACTIVATE DIALOG oDlg CENTERED
Return NIL
Regards
Juan Carlos Salinas Ojeda
México. D.F.
-------------------------------------------------
México. D.F.
-------------------------------------------------
-
- Posts: 334
- Joined: Fri Oct 14, 2005 1:54 pm
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
-
- Posts: 334
- Joined: Fri Oct 14, 2005 1:54 pm
That is my code below : I created a resource called 1_2_02 that contained 1 Dialog also called 1_2_02 and my program also called 1_2_02.prg
#Include "FiveWin.ch"
Function Main()
Local oDlg
DEFINE DIALOG oDlg RESOURCE "1_2_02"
ACTIVATE DIALOG oDlg CENTERED
Return NIL
Application
===========
Path and name: E:\PROGRAMS\CLIPPER\FWEVAL\SITEX\1_2_02.EXE
Size: 632,000 bytes
Max files handles permited: ( SetHandleCount() ) 69
Error ocurred at: 01/01/05, 12:40:41
Error description: Error FiveWin/3 Cannot create Dialog Box:
Resource: 1_2_02
#Include "FiveWin.ch"
Function Main()
Local oDlg
DEFINE DIALOG oDlg RESOURCE "1_2_02"
ACTIVATE DIALOG oDlg CENTERED
Return NIL
Application
===========
Path and name: E:\PROGRAMS\CLIPPER\FWEVAL\SITEX\1_2_02.EXE
Size: 632,000 bytes
Max files handles permited: ( SetHandleCount() ) 69
Error ocurred at: 01/01/05, 12:40:41
Error description: Error FiveWin/3 Cannot create Dialog Box:
Resource: 1_2_02
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
-
- Posts: 334
- Joined: Fri Oct 14, 2005 1:54 pm
Ok I renamed the dialog from 1_2_02 to main inside the resource 1_2_02.rc .Also I got an Error :
1_2_02.rc(13) error RW2001 : undefined keyword or key name :
WS_POPUP
Application
===========
Path and name: E:\PROGRAMS\CLIPPER\FWEVAL\SITEX\1_2_02.EXE
Size: 632,000 bytes
Max files handles permited: ( SetHandleCount() ) 69
Error ocurred at: 01/07/06, 00:52:57
Error description: Error FiveWin/3 Cannot create Dialog Box:
Resource: main
1_2_02.rc(13) error RW2001 : undefined keyword or key name :
WS_POPUP
Application
===========
Path and name: E:\PROGRAMS\CLIPPER\FWEVAL\SITEX\1_2_02.EXE
Size: 632,000 bytes
Max files handles permited: ( SetHandleCount() ) 69
Error ocurred at: 01/07/06, 00:52:57
Error description: Error FiveWin/3 Cannot create Dialog Box:
Resource: main
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
-
- Posts: 334
- Joined: Fri Oct 14, 2005 1:54 pm
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
-
- Posts: 334
- Joined: Fri Oct 14, 2005 1:54 pm