#include "FiveWeb.ch"
function Main()
local oDlg, cText := PadR( "This is a text", 50 )
DEFINE DIALOG oDlg
@ 10, 10 GET cText MULTILINE OF oDlg SIZE 300, 200
ACTIVATE DIALOG oDlg CENTERED
return nil
#include "FiveWeb.ch"
function Main()
local oDlg, oCbx, cValue := "two"
local oFld
DEFINE DIALOG oDlg TITLE "Using a combobox"
@ 0, 0 FOLDER oFld PROMPTS "One","Two" SIZE 500, 560 OF oDlg
@ 130, 60 COMBOBOX oCbx VAR cValue ITEMS "one", "two", "three" OF oFld:aDialogs[1]
@ 200, 120 BUTTON "Ok" OF oFld:aDialogs[1] ACTION alert( oCbx.value )
ACTIVATE DIALOG oDlg NOWAIT
return nil
Jeff Barnes wrote:Hi Antonio,
When I try to send the data from the combobox it doesn't seem to work.
Gets work with:
'document.getElementById( "oGet26" ).value.trim() + ":" + '+ ;
But combobox does not:
'document.getElementById( "oCbx" ).value.trim() + ":" + '+ ;
Jeff Barnes wrote:Also,
How would I properly set up a "Browse" so when I click an item will send the "Record Number" for the item clicked ?
@ 10, 10 BROWSE oBrw SIZE 500, 400 OF oDlg ARRAY aDatos
oBrw:cAction:= "Edita"
oBrw:cClassTable:= "" //"browse"
oBrw:cClassLine:="linea"
obrw:cClassHead:= "boxtitulo"
oBrw:lZebra:= .t.
oBrw:CreateFromCode()
if(Empty(::cAction),'', ' onDblClick="'+"document.location = '"+(appname())+"?"+::cAction+":"+alltrim(str(x))+":"+alltrim(str(n )) +"'" +'"' )+;
IF LEN( aData ) = 0
USE \mydata\TestDB SHARED NEW
aadd( aData, {"A"} )
go top
do while ! eof()
aadd(aData,{TestDB->A } )
skip 2
enddo
CLOSE TestDB
ENDIF
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 46 guests