Static with no border

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
jdsoft
Posts: 113
Joined: Thu Jan 28, 2010 1:13 pm
Location: Overberg
Contact:

Static with no border

#1 Post by jdsoft »

Hello,

Maybe a dumb question, but i am unable to find it....
How to create a static with NO border.

@ 12,12 DCSTATIC TYPE ...... OBJECT oStatic SIZE 10,6

Regards,
Jack Duijf
Regards,
Jack Duijf

skiman
Posts: 1185
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: Static with no border

#2 Post by skiman »

Hi Jack,

TYPE XBPSTATIC_TYPE_TEXT
Best regards,

Chris.
www.aboservice.be

User avatar
jdsoft
Posts: 113
Joined: Thu Jan 28, 2010 1:13 pm
Location: Overberg
Contact:

Re: Static with no border

#3 Post by jdsoft »

Hello,

Thanks for the quick reply.
I was thinking in "boxes". XBPSTATIC_TYPE_TEXT does exactly what i need.

Regards,
Jack Duijf
Regards,
Jack Duijf

User avatar
Tom
Posts: 1171
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: Static with no border

#4 Post by Tom »

Hi, Jack.

An empty static of the type XBPSTATIC_TYPE_TEXT - or just simply "DCSAY", which is almost the same - is a good invisible parent for lots of situations. If you have a combo box and don't want your (automatically sized, using DCREAD ... FIT) dialog to show an empty area below the combo, just place it on a text static. I have a huge planning system which is able to show several "toolboxes" on tabpages below the plan itself. Those tabs are placed on a text static, and if the user doesn't need the toolboxes, the static is simply hidden (and the browse is resized using the new methods oBrowse:DCSetSize). Hint: If working with visual styles, set XBPSYSCLR_TRANSPARENT as the background color for the static. This avoids trouble with checkboxes and groups.
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

Post Reply