Now it seem ok it can be a valid help for our work
THE CODE - Code: Select all Expand view
#include "FiveWin.ch"
function BuildWindow()
local oDlg, oBtn1, oBtn2, oSay1, oSay2, oGet1, cGet1 := Space( 20 ),;
oGet2, cGet2 := Space( 20 ), ;
oGet3, cGet3 := Space( 20 ), ;
oSay3
local oBrush
* DEFINE BRUSH oBrush COLOR RGB( 240, 240, 240 )
DEFINE DIALOG oDlg TITLE "Customer" ;
FROM 24, 88 TO 44, 152 ;
BRUSH oBrush
@ 120, 152 BUTTON oBtn1 PROMPT "&Ok" ;
SIZE 40, 12 PIXEL OF oDlg ;
ACTION MsgInfo( "Not defined yet!" )
@ 120, 200 BUTTON oBtn2 PROMPT "&Cancel" ;
SIZE 40, 12 PIXEL OF oDlg ;
ACTION MsgInfo( "Not defined yet!" )
@ 16, 24 SAY oSay1 PROMPT "Cognome :" SIZE 32, 8 PIXEL OF oDlg
@ 28, 28 SAY oSay2 PROMPT "Nome :" SIZE 32, 8 PIXEL OF oDlg
@ 12, 64 GET oGet1 VAR cGet1 SIZE 68, 12 PIXEL OF oDlg
@ 28, 64 GET oGet2 VAR cGet2 SIZE 68, 12 PIXEL OF oDlg
@ 44, 64 GET oGet3 VAR cGet3 SIZE 164, 12 PIXEL OF oDlg
@ 48, 28 SAY oSay3 PROMPT "indirizzo : " SIZE 32, 8 PIXEL OF oDlg
@ 4, 4 GROUP oGrp PROMPT "Group" SIZE 240, 68 PIXEL OF oDlg TRANSPARENT
ACTIVATE DIALOG oDlg
return oDlg
Only there are something to correct :
1. if the command Group is at last then I not see any control perhaps need the clausole transparent
i TRIED WITH @ 4, 4 GROUP oGrp PROMPT "Group" SIZE 240, 68 PIXEL OF oDlg TRANSPARENT
2. whe n I insert a new control of Say then the design save a list of oSay ( oSay,oSay,oSay) and this is made also with cGet and oGet . On source I correct the variables..I made a modify on design.prg ( can send you at private emails?)
I use : @ nRow, nCol SAY oSay PROMPT GetNewPrompt( "TSay" ) OF oDlgIde SIZE 70, 20 PIXEL DESIGN
3. On design when I nove a control to put near a get control is too hard - or up or down - with mouse is too hard to move the control perhaps you can found a solution the final user can work good for a sample I tried to size a get at init 24 then 16 I cannot put the size 20 - perhaps you can insert this possibility to set the size as ribbon design ( do you remember?) where I can use the cursor key to size the control.
4. the grid can be modify ? or create a zoom of form to see goo all control
5. if I click "Bring on the front" then I cannot modify it
6. you can insert the possibility to set fonts,colors
7. you can insert the type of Tget ( normal get , get spinner get Memo )
8. then need the other class tFolder,Tfolderex, btnbmp,datepick,getspinner,getmemo,xbrowse
- Code: Select all Expand view
function CreateFolder( oDlgIde, nRow, nCol )
local oFld
@ 1,2 FOLDER oFld ITEMS "One", "Two", "three" OF oDlgIde SIZE 220, 136 DESIGN
oFld:bRClicked = { | nRow, nCol | EditFolder( nRow, nCol,oFld ) }
oFld:SetFocus()
return nil
//---------------------------------------------------------------------------//
function CreateFolderEX( oDlgIde, nRow, nCol )
local oFld
@ 1,2 FOLDEREX oFld ITEMS "One", "Two", "three" OF oDlgIde SIZE 136, 120 DESIGN
oFld:bRClicked = { | nRow, nCol | EditControl( oFld, nRow, nCol,"FOLDEREX" ) }
oFld:SetFocus()
return nil
Function CreateButtonBmp( oDlgIde, nRow, nCol )
local oBtnBmp
@ nRow, nCol BTNBMP oBtnBmp PROMPT "Button" OF oDlgIde SIZE 80, 25 PIXEL DESIGN
oBtnBmp:bRClicked = { | nRow, nCol | EditControl( oBtnBmp, nRow, nCol,"BTNBMP" ) }
* oBtnP:SetFocus()
return nil
Function CreateDatePick(oDlgIde, nRow, nCol )
Local oDatePick
Local cDate:=date()
@ 1,2 DTPICKER oDatePick var cDate OF oDlgIde SIZE 120, 22 PIXEL DESIGN
oDatePick:bRClicked = { | nRow, nCol | EditControl(oDatePick, nRow, nCol,"DATEPICK" ) }
oDatePick:setfocus()
return nil
//----------------------------------------------------------------------------------//
function CreateGetSpinner(oDlgIde )
local oGet, cVar := Space( 20 )
@ 1, 2 GET oGet VAR cVar OF oDlgIde SPINNER SIZE 136, 25 DESIGN
oGet:bRClicked = { | nRow, nCol | EditControl( oGet, nRow, nCol,"GET" ) }
oGet:SetFocus()
oGet:nheight:=21.4
return nil
//----------------------------------------------------------------------------------//
function CreateGetMEmo( oDlgIde )
local oGet, cVar := Space( 20 )
@ 1, 2 GET oGet VAR cVar OF oDlgIde MULTILINE SIZE 136, 80 DESIGN
oGet:bRClicked = { | nRow, nCol | EditControl( oGet, nRow, nCol,"GET" ) }
oGet:SetFocus()
return nil
Function CreateXbrowse(oDlgIde)
Local oBrw
@ 1,2 XBROWSE oBrw OF oDlgIde size 200,100 DESIGN
oBrw:CreateFromCode()
oBrw:bRClicked = { | nRow, nCol | EditControl(oBrw, nRow, nCol,"XBROWSE") }
return nil
I had made also the possibilty to insert controls on tfolder
the possibility to insert items on listbox
change position and size ( visual)
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com