Search found 45 matches

by acwoo
Fri Nov 14, 2008 1:20 pm
Forum: FiveWin for Harbour/xHarbour
Topic: how to make listbox smaller
Replies: 3
Views: 934

how to make listbox smaller

>try without ON INIT oDlg:SetControl( oBrw )

It works.

Thanks
by acwoo
Thu Nov 13, 2008 1:34 pm
Forum: FiveWin for Harbour/xHarbour
Topic: how to make listbox smaller
Replies: 3
Views: 934

how to make listbox smaller

#include "Fivewin.ch"


FUNCTION MAIN()

LOCAL oDlg, oBrw

LOCAL hBmp1 := READBITMAP( 0, "SELECT.BMP" )
LOCAL hBmp2 := READBITMAP( 0, "UNSELECT.BMP" )

USE TEST

DEFINE DIALOG oDlg SIZE 400, 300

@ 0, 0 LISTBOX oBrw FIELDS FIELD -> last,;
FIELD -> first,;
IF( FIELD ...
by acwoo
Thu Nov 13, 2008 1:16 pm
Forum: FiveWin for Harbour/xHarbour
Topic: how to disable tree item
Replies: 13
Views: 1764

how to disable tree item

Thanks
by acwoo
Wed Nov 12, 2008 6:41 am
Forum: FiveWin for Harbour/xHarbour
Topic: how to disable tree item
Replies: 13
Views: 1764

how to disable tree item

Thanks

how do I use this TVM_Deleteitem to run


Thanks
by acwoo
Tue Nov 11, 2008 1:49 pm
Forum: FiveWin for Harbour/xHarbour
Topic: how to disable tree item
Replies: 13
Views: 1764

how to disable tree item

Thanks

Tree "Two" not disabled.


Thanks
by acwoo
Tue Nov 11, 2008 1:00 pm
Forum: FiveWin for Harbour/xHarbour
Topic: how to disable tree item
Replies: 13
Views: 1764

how to disable tree item

Thanks

enableWindow( oItem:hItem, lEnable )

How do I change this to run

Thanks
by acwoo
Tue Nov 11, 2008 12:10 pm
Forum: FiveWin for Harbour/xHarbour
Topic: how to disable tree item
Replies: 13
Views: 1764

how to disable tree item

Thanks for your help

With the change, I get this error message:

Message not found: TTVITEM:DISABLE


Thanks
by acwoo
Tue Nov 11, 2008 10:45 am
Forum: FiveWin for Harbour/xHarbour
Topic: how to disable tree item
Replies: 13
Views: 1764

how to disable tree item

#include "FiveWin.ch"
#include "WColors.ch"

function Main()

local oDlg, oTree

DEFINE DIALOG oDlg TITLE "TreeView from source"

@ 0.5, 1 TREEVIEW oTree OF oDlg SIZE 80, 60 COLOR 0, GetSysColor( COLOR_WINDOW )

ACTIVATE DIALOG oDlg CENTERED ;
ON INIT AddItems( oTree )

return ...
by acwoo
Sat Dec 15, 2007 3:24 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Problem Upgrading To FWH7.11
Replies: 20
Views: 4913

Problem Upgrade To FWH7.11

Thanks a lot. Now it works.

Thanks again
by acwoo
Sat Dec 15, 2007 12:59 am
Forum: FiveWin for Harbour/xHarbour
Topic: Problem Upgrading To FWH7.11
Replies: 20
Views: 4913

Problem Upgrade To FWH7.11

Thanks for your help

>In function getform6c1desp(oc1desp) add this code at the end:

>if ValType( c1desp ) != ValType( cc1desp ) // new!
> oc1desp:oGet:VarPut( c1desp ) // new!
>endif // new!
>cc1desp = c1desp
>return oc1desp

Now, after entering a numeric field, a text field can only accept ...
by acwoo
Fri Dec 14, 2007 3:28 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Problem Upgrading To FWH7.11
Replies: 20
Views: 4913

Problem Upgrade To FWH7.11

Thanks for your help

A reproduceable example:


#include "FiveWin.ch"

static oWnd

function Main()

local oFont
DEFINE FONT oFont NAME "Arial" SIZE 0, -22 BOLD
if !file("tax3.dbf")
createfilea()
indexfile()
endif

DEFINE WINDOW oWnd FROM 1, 1 TO 20, 70 ;
TITLE "Test"

@ 46, 26 BTNBMP ...
by acwoo
Thu Dec 13, 2007 3:35 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Problem Upgrading To FWH7.11
Replies: 20
Views: 4913

Problem Upgrade To FWH7.11

Thanks for your help

How do I find out more about this Class Tget which does not allow me now to have one get for both text and numeric variables. Now, if the down-arrow key just pass from text to numeric field in the listbox, the message "Arguement Error" wiil occur. Strange, why it allows me to ...
by acwoo
Thu Dec 13, 2007 12:07 am
Forum: FiveWin for Harbour/xHarbour
Topic: Problem Upgrading To FWH7.11
Replies: 20
Views: 4913

Problem Upgrade To FWH7.11

Thanks for your reply

>Please notice that the error comes from Harbour itself. Its not a FWH error. Probably the Class TGet of Harbour does not accept the change of type of the GET value

As a workaround, I am thinking of changing part of the Class TGet to accept the way it is as at FWH2.4. How do ...
by acwoo
Wed Dec 12, 2007 4:18 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Problem Upgrading To FWH7.11
Replies: 20
Views: 4913

Problem Upgrade To FWH7.11

Thanks for your help

>What type cc1desp has ?
Text and numeric

>What variables ? The ones used in the GETs ? Or the values shown in the browse ?
The variables in GETs (form6.dbf). When the text in the browse changes (by pressing down-arrow key), the data (can be text and numeric) shown in GET ...
by acwoo
Wed Dec 12, 2007 1:16 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Problem Upgrading To FWH7.11
Replies: 20
Views: 4913

Problem Upgrade To FWH 7.11

Thanks for yuor help

>Where and how is defined that GET ?

GET is not defined.

The first occurance of get is:

@ 12.5, 0.4 Get oc1desp VAR cc1desp size 307, 11 OF oDlG COLOR;
CLR_GREEN

The problem will not occur if all the variables are of the same type. If there are text and numeric field ...