FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Problem when un-hiding control
Posts: 107
Joined: Tue Sep 15, 2009 07:52 AM
Problem when un-hiding control
Posted: Mon Nov 25, 2013 01:47 PM
I have the following code:

Code (fw): Select all Collapse
STATIC PROCEDURE Show_controls(oGet, oDbf)

  IF oDbf:show="M"
    oGet[74]:HIDE()
    oGet[75]:HIDE()
    oGet[76]:HIDE()
    oGet[77]:HIDE()
  ELSE
    oGet[74]:DISPLAY()
    oGet[75]:DISPLAY()
    oGet[76]:DISPLAY()
    oGet[77]:DISPLAY()
  ENDIF

RETURN


The 1st part works OK hiding the 4 controls that I need depending the situation. The problem comes when I skip a register and I need to show them again (controls were created with:
Code (fw): Select all Collapse
REDEFINE SAY oGet[74] ID 900 OF oFld:aDialogs[1]
REDEFINE SAY oGet[75] ID 901 OF oFld:aDialogs[1]
REDEFINE GET oGet[76] VAR oDbf:video1   ID 129 OF oFld:aDialogs[1] UPDATE
REDEFINE COMBOBOX oGet[77] VAR oDbf:video_type  ;
     ITEMS {"","Betamax","VHS","Mini 8","Mini DVD","HD DVD","Blu-Ray","DVD Video","MPEG4","AVI","Other"} ;
       ID 130 OF oFld:aDialogs[1] UPDATE


Is this the correct way to hide/show controls?
Posts: 2170
Joined: Fri Jul 18, 2008 01:24 AM
Re: Problem when un-hiding control
Posted: Mon Nov 25, 2013 03:15 PM

Hi. I do this way:

oGet:Hide()
oGet:Show()

Francisco J. Alegría P.

Chinandega, Nicaragua.



Fwxh-MySql-TMySql
Posts: 107
Joined: Tue Sep 15, 2009 07:52 AM
Re: Problem when un-hiding control
Posted: Mon Nov 25, 2013 03:20 PM

Well, what can I say, that settle the problem once and for all.

Thanks.

Continue the discussion