TWBrowse in folderdialog

TWBrowse in folderdialog

Postby Thomas Grueninger » Sat May 06, 2006 3:34 pm

Hello,

is it possible, does this is not working?
can´t create dialogBox

regards
Thomas

Code: Select all  Expand view  RUN
#include "fwce.ch"

#define oFD oFld:aDialogs

static oWnd,oBrw
static cSuch
static nIdx
static aHeader:={"Rufnummer","Name"}

function main
local oGet,oFld

cSuch:=space(20)
use (CurDir()+"\name") excl new alias isdn via "dbfcdx"
select isdn
dbsetindex(CurDir()+"\name")
nIdx:=1

define window oWnd title "ISDN"
@ 0.5, 1 FOLDER oFld PROMPTS "Namen", "Anrufliste" ;
   DIALOGS "isdn1", "isdn2" ;
   SIZE 225, 245

redefine GET oGet var cSuch id 101 of oFD[1]
redefine button id 102 of oFD[1] action (cSuch:=space(20),oGet:Refresh(),oGet:SetFocus())
redefine button id 103 of oFD[1] action Such(.t.)
redefine button id 104 of oFD[1] action Such(.f.)

redefine LISTBOX oBrw fields "",""  ;
                   fieldsizes 100,100 ;
                   headers "Rufnummer","Name *" ;
                   id 105 of oFD[1]

oBrw:bLine:={|| {isdn->rufnr,isdn->Name } }
oBrw:aActions:={;
                {|| SetIdx(0) },;
                {|| SetIdx(1) };
               }
               
oFld:InitDialogs()               
activate window oWnd
close isdn
return nil

isdn1 DIALOG 18, 18, 129, 128
STYLE WS_CHILD | 4
{
EDITTEXT 101, 0, 0, 66, 12
PUSHBUTTON "C", 102, 69, 0, 15, 12
PUSHBUTTON "Suchen", 103, 87, 0, 27, 12
PUSHBUTTON ">", 104, 117, 0, 12, 12
CONTROL "", 105, "TWBrowse", 0 | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL | WS_TABSTOP, 0, 15, 126, 111
}
[/code]
User avatar
Thomas Grueninger
 
Posts: 18
Joined: Fri Oct 14, 2005 5:15 pm
Location: Germany

Postby Antonio Linares » Sat May 06, 2006 4:32 pm

Thomas,

Where is isdn2 dialog in the RC file ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42113
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Thomas Grueninger » Sat May 06, 2006 6:00 pm

Antonio,

isdn2 is okay, is from testfld.rc
If i remove control 105, the programm runs.

Regards
Thomas
User avatar
Thomas Grueninger
 
Posts: 18
Joined: Fri Oct 14, 2005 5:15 pm
Location: Germany


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 14 guests