by acwoo1 » Wed Feb 01, 2012 2:35 pm
Thanks For Your Help
The sample:
function main()
#include "FiveWin.ch"
local oDlg
local lSave := .f.
local oFont
local oLbx
DEFINE FONT oFont NAME "Arial" SIZE 0, -11 BOLD
if (!file("Comname1.dbf"))
tmpdbf:= {}
AAdd(tmpdbf, {"Company1", "C", 50, 0})
AAdd(tmpdbf, {"Direct1", "C", 40, 0})
dbcreate("Comname1.dbf", tmpdbf)
dbusearea(.T., Nil, "Comname1", Nil, Nil, .F.)
Append Blank
onerror("APPEND")
Replace Company1 With "ABC Co."
Replace Direct1 With ".\data"
Append Blank
onerror("APPEND")
Replace Company1 With "PQR Co."
Replace Direct1 With ".\data2"
EndIf
if (Select("Comname1") == 0)
use Comname1 new
If (neterr())
msginfo("File is locked by another user")
Close Databases
return
endif
else
select Select("Comname1")
endif
goto top
DEFINE DIALOG oDlg FROM 0, 0 TO 26, 79 ;
TITLE "Select Company" ;
GRADIENT { { 1, nRGB( 199, 216, 237 ), nRGB( 237, 242, 248 ) } }
@ -0.361, -0.1 to 13.945, 44.714
@ -0.361, -0.1 to 12.545, 44.714
@ -0.361, -0.1 to 10.945, 44.714
@ 0.2, 0.4 LISTBOX oLbx FIELDS Comname1->Company1,;
Comname1->Direct1, "";
HEADERS "Company Name", "Directory", "";
FIELDSIZES 305, 286, 0 ;
SIZE 307, 50 OF oDlg Font oFont;
ON CLICK testabc(;
oDlg:Say( 180, 2, space(180),,, oFont, .t., .t.),;
oDlg:Say( 180, 2, Company1,,, oFont, .t., .t.))
@ 9.95, 40 BUTTON oBtn6 PROMPT "&Exit" OF oDlg ACTION ( oDlg:End()) SIZE 40, 12
ACTIVATE DIALOG oDlg CENTERED
return nil
******************************************
function testabc()
return nil
******************************************
How to modify so that when I click, they display don't overlap.
Regards
ACWoo