Page 1 of 1

Overlapping problem

Posted: Thu Jun 07, 2007 11:24 am
by Marc Vanzegbroeck
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

Code: Select all

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 :

Code: Select all

 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

Posted: Thu Jun 07, 2007 12:27 pm
by Antonio Linares
Marc,

You should use a REDEFINE GROUP instead of a REDEFINE SAY

Posted: Thu Jun 07, 2007 3:36 pm
by Marc Vanzegbroeck
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

Posted: Thu Jun 07, 2007 4:35 pm
by Antonio Linares
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