REDEFINE LISTBOX oLbx FIELDS bscust->custno, bscust->company, bscust->city, bscust->phone ;
HEADER "Custno", "Company", "City", "Phone" ;
FONT oFontList ;
ON DBLCLICK (oDlg1:end(), mExit := .T. ) ;
ID 1003 OF oDlg1 UPDATE
LANGUAGE 9, SUBLANG_DEFAULT
118 DIALOG 15, 45, 364, 230
STYLE DS_ABSALIGN | DS_MODALFRAME | DS_SETFONT | WS_POPUP
EXSTYLE WS_EX_OVERLAPPEDWINDOW
FONT 10, "System"
{
LISTBOX 1003, 15, 49, 335, 145, WS_GROUP | WS_TABSTOP | NOT LBS_NOTIFY | LBS_NOINTEGRALHEIGHT | LBS_MULTICOLUMN
EDITTEXT 1000, 65, 24, 140, 12, ES_AUTOHSCROLL
PUSHBUTTON "Find", 1001, 215, 24, 30, 12
PUSHBUTTON "Select", 1009, 65, 205, 40, 12
PUSHBUTTON "Close", 1010, 15, 205, 40, 12
LTEXT "Find Company", 65535, 15, 25, 48, 8, SS_LEFT
EDITTEXT 100, 0, 0, 364, 14, ES_AUTOHSCROLL | ES_READONLY
Greg Gammon wrote:
- Code: Select all Expand view
LISTBOX 1003, 15, 49, 335, 145, WS_GROUP | WS_TABSTOP | NOT LBS_NOTIFY | LBS_NOINTEGRALHEIGHT | LBS_MULTICOLUMN
CONTROL "", 1003, "TWBrowse", WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL | WS_HSCROLL | WS_TABSTOP, 15, 49, 335, 145
Greg Gammon wrote:Enrico,
WOW...that would be a major problem for me to have to do as I am continually updating resources in ResEdit. Since the .rc file is generated from the .res file, I would have to manually go in and edit every Listbox instance? Is there any other way to deal with this?
I have tried every permutation of scrollbar setting in ResEdit for the Listbox resource and it has no apparent change.
LISTBOX 1003, 15, 49, 335, 145, WS_GROUP | WS_TABSTOP | NOT LBS_NOTIFY | LBS_NOINTEGRALHEIGHT | LBS_MULTICOLUMN
REDEFINE LISTBOX oLbx FIELDS bscust->custno, bscust->company, bscust->city, bscust->phone ;
HEADER "Custno", "Company", "City", "Phone" ;
FONT oFontList ;
ON DBLCLICK (oDlg1:end(), mExit := .T. ) ;
ID 1003 OF oDlg1 UPDATE
Postmessage( oLbx, nOr( WS_CHILD, WS_VSCROLL, WS_BORDER, WS_VISIBLE, WS_TABSTOP) )
// Purpose: Simple test of LISTBOX (TWBrowse)
// Date : 2/18/2014
#include "fivewin.ch"
Function Main()
LOCAL oDlg, oLbx
USE customer
DEFINE DIALOG oDlg resource "DIALOG1"
REDEFINE LISTBOX oLbx fields FIRST, LAST ID 10 OF oDlg
// Things I tried without success.
//oLbx:bLogicLen := { || If( reccount() == 0, 1, reccount() ) }
//Postmessage( oLbx, nOr( WS_CHILD, WS_VSCROLL, WS_BORDER, WS_VISIBLE, WS_TABSTOP) )
//oLbx:oVScroll:=nil // no effect
//oLbx:oVScroll:setRange( 1, reccount() ) // getting a setrange() does not exist message
//oLbx:lUpdate:=.t. // no effect
ACTIVATE DIALOG oDlg
return nil
/****************************************************************************
test01.rc
produced by Borland Resource Workshop
*****************************************************************************/
#define DIALOG_1 1
#define IDC_LISTBOX1 10
DIALOG1 DIALOG 6, 15, 275, 111
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "DIALOG1"
FONT 8, "MS Sans Serif"
{
LISTBOX IDC_LISTBOX1, 20, 15, 235, 75, LBS_STANDARD
}
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 22 guests