FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Static style ID looks like and edit style ID
Posts: 598
Joined: Tue Apr 15, 2008 04:51 PM
Static style ID looks like and edit style ID
Posted: Fri Jul 18, 2008 12:59 PM

In a dialog box I have an ID "static style" with a border that appears flat in 16 bit. After the dialog is converted to 32 bit the "static style" ID with the border takes on the appearence of a "edit text style" ID same as my "gets" they have depth.

The "window style" dialog style is "system menu" nothing elsed checked and the "class" is blank.

I want the "static style" to be flat with a border not having depth as a the "edit style".

How do I do it?

Thank you

Harvey
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Static style ID looks like and edit style ID
Posted: Fri Jul 18, 2008 01:33 PM

Harvey,

Please post your RC file here or a portion of it, thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 598
Joined: Tue Apr 15, 2008 04:51 PM
Static style ID looks like and edit style ID
Posted: Fri Jul 18, 2008 01:58 PM

As requested:

Code

CODATA_3 DIALOG 79, -94, 314, 374
STYLE WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Comparative Forecast Vs. Selected Data"
FONT 8, "MS Sans Serif"
{
PUSHBUTTON "&Done", 4001, 248, 327, 56, 18
PUSHBUTTON "&Print", 153, 190, 327, 56, 18
CTEXT "Profit and Loss", 104, 21, 22, 271, 12, ES_CENTER | WS_VISIBLE | WS_BORDER
RTEXT "9999", 200, 129, 49, 54,11, SS_RIGHT | WS_BORDER | WS_GROUP
RTEXT "Text", 201, 129, 61, 54,11, SS_RIGHT | WS_BORDER | WS_GROUP
RTEXT "Text", 202, 129, 73, 54,11, SS_RIGHT | WS_BORDER | WS_GROUP
RTEXT "Text", 203, 129, 85, 54,11, SS_RIGHT | WS_BORDER | WS_GROUP
RTEXT "Text", 204, 129, 100, 54,11, SS_RIGHT | WS_BORDER | WS_GROUP
RTEXT "Text", 205, 129, 130, 54,11, SS_RIGHT | WS_BORDER | WS_GROUP
RTEXT "Text", 206, 129, 142, 54,11, SS_RIGHT | WS_BORDER | WS_GROUP
RTEXT "Text", 207, 129, 154, 54,11, SS_RIGHT | WS_BORDER | WS_GROUP
RTEXT "Text", 208, 129, 166, 54,11, SS_RIGHT | WS_BORDER | WS_GROUP
LTEXT "Overhead", 121, 22, 85, 70, 12, SS_LEFT | WS_CHILD
LTEXT "Labor", 129, 22, 73, 30, 12, SS_LEFT | WS_CHILD | WS_VISIBLE
LTEXT "Material cost", 132, 22, 61, 70, 10, SS_LEFT | WS_CHILD | WS_VISIBLE
LTEXT "Sales", 140, 22, 49, 70, 12, SS_LEFT | WS_CHILD | WS_VISIBLE
CTEXT "Total Cost Of Goods", 143, 22, 100, 100, 12, SS_CENTER | WS_CHILD | WS_VISIBLE | WS_BORDER
LTEXT "Sales payroll", 148, 22, 130, 70, 12, SS_LEFT | WS_CHILD | WS_VISIBLE
LTEXT "Sales commission", 149, 22, 141, 70, 12, SS_LEFT | WS_CHILD | WS_VISIBLE
LTEXT "Sales other", 154, 22, 166, 70, 12, SS_LEFT | WS_CHILD | WS_VISIBLE
LTEXT "Sales auto", 155, 22, 154, 70, 12, SS_LEFT | WS_CHI

Thank you

Harvey
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Static style ID looks like and edit style ID
Posted: Fri Jul 18, 2008 02:12 PM

Harvey,

> RTEXT "Text", 204, 129, 100, 54,11, SS_RIGHT | WS_BORDER | WS_GROUP

Do you mean those controls ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 598
Joined: Tue Apr 15, 2008 04:51 PM
Static style ID looks like and edit style ID
Posted: Fri Jul 18, 2008 02:14 PM

Yes. They look like edits.

Thank you

Harvey
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Static style ID looks like and edit style ID
Posted: Fri Jul 18, 2008 02:38 PM

Remove WS_BORDER style.

EMG

Posts: 598
Joined: Tue Apr 15, 2008 04:51 PM
Static style ID looks like and edit style ID
Posted: Fri Jul 18, 2008 07:20 PM

will that remove my border. I need the border.

Thank you

Harvey
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Static style ID looks like and edit style ID
Posted: Fri Jul 18, 2008 07:53 PM

A SAY with the border looks like a GET, it's normal behavior.

EMG

Posts: 598
Joined: Tue Apr 15, 2008 04:51 PM
Static style ID looks like and edit style ID
Posted: Sat Jul 19, 2008 05:33 AM

I've been using fivewin 16 bit for 12 years and in 16 bit the say with a border was flat and never looked like a get. Now it reacts in 32 bit the same way as get. Any other suggestion?

Thank you

Harvey
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
Static style ID looks like and edit style ID
Posted: Sat Jul 19, 2008 07:39 AM
hag wrote:I've been using fivewin 16 bit for 12 years and in 16 bit the say with a border was flat and never looked like a get. Now it reacts in 32 bit the same way as get. Any other suggestion?


Hi

I think you can try TGSay Class solution.

Regards,

Richard
Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Static style ID looks like and edit style ID
Posted: Sat Jul 19, 2008 08:17 AM

Harvey,

From 16 bits to 32 bits there are some differences due to the Windows 32 API behavior.

Do as Enrico says. You can quickly remove them using a source code editor and doing a search and replace in the RC file.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 598
Joined: Tue Apr 15, 2008 04:51 PM
Static style ID looks like and edit style ID
Posted: Sat Jul 19, 2008 03:09 PM

I searched all directories and have not found any thing regarding tGsay class. Where would I get it.

Thank you

Harvey

Continue the discussion