FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for CA-Clipper Overlapping problem
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Overlapping problem
Posted: Thu Jun 07, 2007 11:24 AM
Hi,

I have a problem when I use a LISTBOX from resource and group around that listbox.
If I want to change the text of the group, the listbox disappears behind the box.
Till now there was no need in changing the text of the group.
Now I want to change it, but the listbox disappears If I add the 'REDEFINE
SAY' line.

This is the code I use
REDEFINE SAY sGetlist[16] VAR 'CL'  ID 111 OF oDlg
REDEFINE LISTBOX  sGetlist[13] FIELDS CL_INFO->FILENAME,CL_INFO->SEQUENCE ;
ALIAS 'CL_INFO' HEADER 'Program','Sequence' ID 108 OF oDlg ;
COLOR 'N/W*'


The resource :
 GROUPBOX "CL", 111, 174, 341, 135, 70, BS_GROUPBOX
 CONTROL "", 108, "TWBrowse", 0 | WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL | WS_TABSTOP, 181, 360, 122, 46


I already change the order, without result.

Marc
Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Overlapping problem
Posted: Thu Jun 07, 2007 12:27 PM

Marc,

You should use a REDEFINE GROUP instead of a REDEFINE SAY

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Overlapping problem
Posted: Thu Jun 07, 2007 03:36 PM

Antonio,

I have tested it with REDEFINE GROUP, but the result was the same.
Then I changed the order in the RC-file and now it's working (both with REDEFINE SAY and REDEFINE GROUP)
Is there a difference between both commands?

Marc

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Overlapping problem
Posted: Thu Jun 07, 2007 04:35 PM

Marc,

> I changed the order in the RC-file

Yes, thats the right way

Both REDEFINEs are working fine because they both use Windows API SetWindowText() to change the caption

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion