I am just trying Pelles C to be used as a resource Editor along with FWH. When compared with ResEd, I found that Pelles C resource editor has some additional features in Aligning controls, based on a Group (Ctrl + Mouse Click).
I have a GET, SAY, GROUP, OkButton and CancelButton on the Dialog. Unfortunately the Say and Get inside the group is not getting displayed. The Get Object will appear without a border Only when I type something on the Keyboard.
Initial screen. GET and SAY is not displayed
When I type something on the Keyboard, get appears without a border
This is my TestRc.Prg
- Code: Select all Expand view
#Include "FiveWin.Ch"
*---------------------------------*
Function Main()
*---------------------------------*
Local oDlg,oSay,oGet,oBtnOk,oBtnCancel,cName,oGrp
cName:=space(30)
DEFINE DIALOG oDlg RESOURCE "AnsTest"
// If I don't give Color nRgb, I get a Redefine un time error
REDEFINE GROUP oGrp ID 4003 Prompt "Test" color nRgb(0,0,0),nRgb(220,200,200)
REDEFINE SAY oSay ID 4001
REDEFINE GET oGet VAR cName ID 4002
REDEFINE BUTTON oBtnOk ID IDOK
// If I don't give an Action then I will not be able to close the Dialog using the X button on the Dialog
// I wonder why it is so
REDEFINE BUTTON oBtnCancel ID IDCANCEL ACTION oDlg:End()
ACTIVATE DIALOG oDlg ON INIT oGet:SetFocus()
Return NIL
My .RC file TestRc.Rc
- Code: Select all Expand view
// RESOURCE SCRIPT generated by "Pelles C for Windows, version 5.00".
#include <windows.h>
#include <commctrl.h>
#include <richedit.h>
LANGUAGE LANG_ENGLISH,SUBLANG_ENGLISH_US
ANSTEST DIALOGEX DISCARDABLE 6, 18, 342, 170
STYLE WS_POPUP|DS_MODALFRAME|WS_CAPTION|WS_SYSMENU
CAPTION "This is a test window"
FONT 8, "MS Shell Dlg", 0, 0, 1
{
CONTROL "", 4002, "Edit", WS_BORDER|WS_TABSTOP, 96, 68, 188, 12
CONTROL "OK", IDOK, "Button", WS_TABSTOP, 24, 132, 45, 15
CONTROL "Cancel", IDCANCEL, "Button", WS_TABSTOP, 84, 132, 45, 15
CONTROL "Name", 4001, "Static", WS_GROUP, 44, 72, 40, 8
CONTROL "Customer Details", 4003, "Button", BS_GROUPBOX|BS_NOTIFY, 28, 28, 264, 84
}
Other things which surprised me is that
1) In the PRG when I redefine the GROUP, If I don't specify COLOR then I get a Redefine RunTime Error
2) If I dont specify an ACTION clause in the button, then I will not be able to close the DIALOG using the X button on the Title bar of the Dialog.
I find many seniors like Mr.Otto and others are using Pelles C resource Editor and would like to know whether this is a standard behavior of Pelles C resource editor or Am I wrong somewhere ?.
Any useful tips for the usage of Pelles C along with FWH ?
I could not find an option like "Send to Back", "Bring to front" to solve the problem of GET and SAY controls not getting displayed inside the GROUP.
I am looking for a Good Free Resource Editor which works well with FWH. I have also tested ResEd, it is also equally good except for the Aligning of the controls and the ID no. generation part
Any help ?
Regards
Anser