Overlapping problem

Overlapping problem

Postby Marc Vanzegbroeck » 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
Code: Select all  Expand view
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  Expand view
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
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

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

Postby Marc Vanzegbroeck » Thu Jun 07, 2007 3: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
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Postby Antonio Linares » Thu Jun 07, 2007 4: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for CA-Clipper

Who is online

Users browsing this forum: No registered users and 0 guests