FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to paint tget 3D ->2D, except XP themes
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
How to paint tget 3D ->2D, except XP themes
Posted: Thu Jul 10, 2008 04:05 AM

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

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
How to paint tget 3D ->2D, except XP themes
Posted: Thu Jul 10, 2008 04:15 AM

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

I normally use

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

Regards



G. N. Rao.

Hyderabad, India
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
How to paint tget 3D ->2D, except XP themes
Posted: Thu Jul 10, 2008 07:47 AM

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

You modifyed tget.prg ?

Thanks!
Shuming Wang

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
How to paint tget 3D ->2D, except XP themes
Posted: Thu Jul 10, 2008 08:04 AM

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
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
How to paint tget 3D ->2D, except XP themes
Posted: Fri Jul 11, 2008 12:39 AM

NageswaraRao, G. ,
But the border is needed, only want shows 2D border ,like XP themes mode.
Regards!
Shuming Wang

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
How to paint tget 3D ->2D, except XP themes
Posted: Fri Jul 11, 2008 01:19 AM

Shuming,

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

set3dLook( .f. )

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
How to paint tget 3D ->2D, except XP themes
Posted: Fri Jul 11, 2008 06:31 AM

James Bott,
Do not work either.
Shuming Wang

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
How to paint tget 3D ->2D, except XP themes
Posted: Wed Jul 16, 2008 02:58 AM

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

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
How to paint tget 3D ->2D, except XP themes
Posted: Wed Jul 16, 2008 03:31 AM

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

http://fwcodesnips.com/

Regards,
Otto

Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
How to paint tget 3D ->2D, except XP themes
Posted: Wed Jul 16, 2008 04:00 AM

Otto,
I looked, but what about redefine get xx id 101 of odlg ?
Must rewrite resource in .rc ?
Thanks!
Shuming Wang

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
How to paint tget 3D ->2D, except XP themes
Posted: Wed Jul 16, 2008 05:54 AM

Mr Otto

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

Regards



G. N. Rao.

Hyderabad, India
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
How to paint tget 3D ->2D, except XP themes
Posted: Wed Jul 16, 2008 08:21 AM
Hello NagesWaraRao,

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

Regards,
Otto

mark the codesnip







Click on "new poject"







paste the code and click on "compile"








The program starts immediately



Continue the discussion