REFRESH PAINT?

REFRESH PAINT?

Postby Ollie » Mon Jan 01, 2007 10:44 pm

I have a Dialog with DBF fields.
e.g. REDEFINE GET oGet6 VAR DB_CURR->COMPANY ID 60 OF Dlg_CURR

I have a "NEXT" button with ACTION DBSKIP(1)

How do I update/refresh/re-draw the screen to reflect the next record?
Many thanks
Ollie.

Using:
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Borland C++ 5.5.1
FWH 9.04 (2009 Apr)
Ollie
 
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am

Postby mag071 » Tue Jan 02, 2007 12:32 am

Hi,

REDEFINE GET oGet6 VAR DB_CURR->COMPANY ID 60 OF Dlg_CURR

I have a "NEXT" button with ACTION (DBSKIP(1),oGet6:Refresh())
Mario Antonio González Osal
Venezuela
m a g 0 7 1 @ g m a i l. c o m
User avatar
mag071
 
Posts: 140
Joined: Thu Feb 02, 2006 12:09 pm
Location: Venezuela

Postby Ollie » Tue Jan 02, 2007 4:56 am

Thanks. Do you know where I can find a working sample that will demonstrate the principles involved in editing DBF records.

e.g. Set getobjects to readonly
When the user presses the "EDIT" button, set the getobjects to !readonly, lock the record, let the user edit and press "SAVE", commit, set getobjects to readonly again.

Where do I find METHODS, (CARGO?) values that are applicable to an object?

e.g. OGet1:READONLY:=.T.
Oget1:SETCOLOR('YELLOW','BLK') ..... sort of thing.
Many thanks
Ollie.

Using:
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Borland C++ 5.5.1
FWH 9.04 (2009 Apr)
Ollie
 
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am

Postby mag071 » Tue Jan 02, 2007 5:41 am

Do you know where I can find a working sample that will demonstrate the principles involved in editing DBF records.
\FWH\SAMPLES\CUSTOMER.PRG

Where do I find METHODS, (CARGO?) values that are applicable to an object?
\FWH\SOURCE\CLASSES\TGET.PRG
Mario Antonio González Osal
Venezuela
m a g 0 7 1 @ g m a i l. c o m
User avatar
mag071
 
Posts: 140
Joined: Thu Feb 02, 2006 12:09 pm
Location: Venezuela

Postby Ollie » Tue Jan 02, 2007 6:09 am

Do you know where I can find a working sample that will demonstrate the principles involved in editing DBF records.
\FWH\SAMPLES\CUSTOMER.PRG


Thanks - but is doesn't run - Runtime error - ALIAS does not exist - line 20 - I can't see why - CUSTOMER.DBF is in the folder (not readonly or anything) Ideas?

Where do I find METHODS, (CARGO?) values that are applicable to an object?
\FWH\SOURCE\CLASSES\TGET.PRG


Thanks.
Many thanks
Ollie.

Using:
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Borland C++ 5.5.1
FWH 9.04 (2009 Apr)
Ollie
 
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am

Postby Ollie » Tue Jan 02, 2007 6:36 am

Do you know where I can find a working sample that will demonstrate the principles involved in editing DBF records.
\FWH\SAMPLES\CUSTOMER.PRG


Ok, nevermind (how sad when you reply to your own post!) My mistake - Another sample had the file open!

However, that sample was not very helpful - I don't think it works the way its supposed to. The only button with an action is NEXT.

Can you offer a better example? I need something like the "CONTACTS" sample of MINIGUI to get me to understand the concept.

Appreciate all comments so far.
Many thanks
Ollie.

Using:
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Borland C++ 5.5.1
FWH 9.04 (2009 Apr)
Ollie
 
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am

Postby Gale FORd » Tue Jan 02, 2007 2:35 pm

You can update the entire dialog by adding the UPDATE clause on the redefine and then doing oDlg:update() to refresh dialog.

Example:
Code: Select all  Expand view
REDEFINE GET oGet6 VAR DB_CURR->COMPANY ID 60 OF Dlg_CURR UPDATE

I have a "NEXT" button with ACTION ( DBSKIP(1), Dlg_CURR:update() )
Gale FORd
 
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston

Postby Ollie » Tue Jan 02, 2007 3:30 pm

O, I get it - Thats cool. Thanks a lot.
Many thanks
Ollie.

Using:
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Borland C++ 5.5.1
FWH 9.04 (2009 Apr)
Ollie
 
Posts: 233
Joined: Sat Dec 30, 2006 6:10 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Jimmy and 86 guests