How to paint tget 3D ->2D, except XP themes

Post Reply
ShumingWang
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China
Contact:

How to paint tget 3D ->2D, except XP themes

Post by ShumingWang »

Hi,
How to paint 3D tget to 2D? Only the text box shows? like XP themes, But not the XP themes mode, for #ifdef __FLAT__
1 24 "./WindowsXP.Manifest"
#endif
do not support 2 bytes Chinese words.

Thanks !
Shuming Wang
User avatar
nageswaragunupudi
Posts: 10721
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 8 times
Contact:

Post by nageswaragunupudi »

Please try
GET ... NOBORDER
or
oGet:lNoBorder := .t.

I normally use

oGet:lNoBorder := .not. ( IsAppThemed() .and. IsThemeActive() )
Regards

G. N. Rao.
Hyderabad, India
ShumingWang
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China
Contact:

Post by ShumingWang »

Message not found: TGET:_LNOBORDER,neither control.prg,windows.prg

You modifyed tget.prg ?

Thanks!
Shuming Wang
User avatar
nageswaragunupudi
Posts: 10721
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 8 times
Contact:

Post by nageswaragunupudi »

Yes, I am sorry.

In a nonthemed application, we get a flat effect by using NOBORDER clause. In a thremed application, we get a single line border without using NOBORDER clause.

Earlier I was doing like this.
define GET in the normal way ( without using NOBORDER )
Then
if the application is not themed /
oGet:nStyle -= WS_BORDER
endif
Regards

G. N. Rao.
Hyderabad, India
ShumingWang
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China
Contact:

Post by ShumingWang »

NageswaraRao, G. ,
But the border is needed, only want shows 2D border ,like XP themes mode.
Regards!
Shuming Wang
User avatar
James Bott
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

Shuming,

I don't know if this will do it, but try:

set3dLook( .f. )

James
ShumingWang
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China
Contact:

Post by ShumingWang »

James Bott,
Do not work either.
Shuming Wang
ShumingWang
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China
Contact:

Post by ShumingWang »

Hi,
To change redefine get no border, must change the dialog resource (.rc) ? Could change tget.prg to reach the same no border result ?
Also,how to paint the text at center of textbox in Vertical ? the paint method only paint at lost focus time.

Thanks!
Shuming Wang
User avatar
Otto
Posts: 6403
Joined: Fri Oct 07, 2005 7:07 pm
Has thanked: 22 times
Been thanked: 2 times
Contact:

Post by Otto »

flat style border
by Linares
How can I create a get with flat style border

http://fwcodesnips.com/

Regards,
Otto
ShumingWang
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China
Contact:

Post by ShumingWang »

Otto,
I looked, but what about redefine get xx id 101 of odlg ?
Must rewrite resource in .rc ?
Thanks!
Shuming Wang
User avatar
nageswaragunupudi
Posts: 10721
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 8 times
Contact:

Post by nageswaragunupudi »

Mr Otto

Your codesnips.com is very useful. Wish we can run ur program on ur website itself.
Regards

G. N. Rao.
Hyderabad, India
User avatar
Otto
Posts: 6403
Joined: Fri Oct 07, 2005 7:07 pm
Has thanked: 22 times
Been thanked: 2 times
Contact:

Post by Otto »

Hello NagesWaraRao,

as I do not know how to do that I thought of using snipkeeper for that:

Regards,
Otto

mark the codesnip



Image



Click on "new poject"



Image



paste the code and click on "compile"



Image




The program starts immediately



Image
Post Reply