Page 1 of 1

DCTABPAGE/DCSTATIC and DCGROUP v331 to v334

Posted: Sat Mar 20, 2010 1:15 pm
by RDalzell
GoodDay All,

I continue to struggle with what appears OK using xBase v1.90.331, eXpress b252 (images v331*)
vs xBase v1.90.354, eXpress b252 (images v354*) - with and without manifests.

Using xBase v1.90.354 it appears that it ignores the DCSTATIC and messes up the DCGROUP.

I have tried using GRA_CLR_BACKGROUND and XBPSYSCLR_TRANSPARENT to no avail.

Any suggestions would be greatly appreciated as I am stuck in xBase 331 until I find a remedy.

The sample code and images are attached.

Thanks,

Rick

Re: DCTABPAGE/DCSTATIC and DCGROUP v331 to v334

Posted: Sun Mar 21, 2010 7:34 am
by rdonnay
Rick -

I spent some time with your code this morning and I agree that Xbase++ has always had a problem with XbpStatic type Groupbox.
The only way I have been able to overcome this is by making sure that all child objects have a foreground and background color.

I also see that there is a difference in the look from build 331 to 355.

I think I can advise you on how to get the look you want but first I need to be sure what it is that you want it to look like.

If you can take a screen shot of the look you want, I will work on it.

BTW - I will be at home until about 11:00am MST, so you can call me on this if you wish and we will hook up via Teamviewer.

Roger

Re: DCTABPAGE/DCSTATIC and DCGROUP v331 to v334

Posted: Sun Mar 21, 2010 11:09 am
by Cliff Wiernik
Rick, give me something of yours to look at. I have been use Xbase++ 19v355 and exp 252/254. I have changed to using DCGROUPBOX's as parents of objects that I did not in the past and am configured to work either with themes or without themes. I think I have addressed the problems caused by having themes active and not active when still using a manifest. I can retain my old appearance or the new appearance if I want to. I have special color clauses on all groupboxes/checkboxes/statics as Express itself does not handled it the way it is needed or at least it did not. I have my work arounds developed during the 355 beta phase and have not tried removing them.

Code examples and screen shots of before and after would be needed so I can compare to what I am doing. It was a real pain to address these issues.

Cliff.

Re: DCTABPAGE/DCSTATIC and DCGROUP v331 to v334

Posted: Sun Mar 21, 2010 2:53 pm
by RDalzell
Roger and Cliff,

I desire to have the applications display as in image v331-Tab1.Png

Thanks,

Rick

Re: DCTABPAGE/DCSTATIC and DCGROUP v331 to v334

Posted: Sun Mar 21, 2010 3:23 pm
by Cliff Wiernik
Rick,

Can you post an image of how it looks in 355, same code.

Cliff.

Re: DCTABPAGE/DCSTATIC and DCGROUP v331 to v334

Posted: Sun Mar 21, 2010 4:38 pm
by RDalzell
Cliff,

v354-Tab1.Png

Re: DCTABPAGE/DCSTATIC and DCGROUP v331 to v334

Posted: Sun Mar 21, 2010 7:01 pm
by rdonnay
Rick -

This code gives me the desired result in both 331 and 355.

Code: Select all

  /* ---- Tab Page #1 ---- */

  @  0.00, 0.00 DCTABPAGE oTabPage1  CAPTION 'Tab 1' ;
   SIZE 50.00,10.00  PREOFFSET 0  POSTOFFSET 85 COLOR {000,125,255}

  DCSETPARENT TO oTabPage1

  @  1.60, 1.50 DCSTATIC TYPE XBPSTATIC_TYPE_RECESSEDBOX OBJECT oStatic1 ;
      SIZE 47.00, 7.90 PARENT oTabPage1 COLOR GRA_CLR_BLACK, GRA_CLR_BACKGROUND ;
      RESIZE DCGUI_RESIZE_BOTH

  DCSETPARENT TO oStatic1

  @   .40, 1.50 DCGROUP oGroup1      CAPTION " Group 1 " ;
      SIZE 44.00, 7.10 PARENT oStatic1 COLOR {000,125,255},GRA_CLR_BACKGROUND

  @  1.00, 2.00 DCSAY "Name 1" SAYSIZE  0  PARENT oGroup1 COLOR GRA_CLR_BLACK

  @  3.00, 2.00 DCSAY "Address 1" SAYSIZE  0  PARENT oGroup1 COLOR GRA_CLR_BLACK

Re: DCTABPAGE/DCSTATIC and DCGROUP v331 to v334

Posted: Mon Mar 22, 2010 6:59 pm
by RDalzell
Roger,

Works great,

Thank You

Rick