Overlapping problem

Post Reply
Marc Vanzegbroeck
Posts: 1102
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

Overlapping problem

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Marc,

You should use a REDEFINE GROUP instead of a REDEFINE SAY
regards, saludos

Antonio Linares
www.fivetechsoft.com
Marc Vanzegbroeck
Posts: 1102
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply