FWH 8.08 - New ACTION clause for GETs

User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

FWH 8.08 - New ACTION clause for GETs

Post by Antonio Linares »

In FWH 8.08 an ACTION can be used with a GET, i.e.:

Code: Select all

#include "FiveWin.ch"

function Main()

   local oWnd, cTest := "Hello world!"

   DEFINE WINDOW oWnd COLOR "N/W"

   @ 2, 2 GET cTest SIZE 100, 20 ACTION MsgInfo( "click" )

   ACTIVATE WINDOW oWnd

return nil
So there is no longer need for Class TBtnGet :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

Nice.

I like the concept. I would like to see it look just like a combobox with a theme aware button. I have tried to do this before without success.

James
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Yes, its going to support an optional bitmap too.

And we can make it themes aware :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Post by Silvio »

good mr linares!
last year I made something of it using as bmp the btnbmp class.
Best Regards, Saludos

Falconi Silvio
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Themes support:

Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Themes and bitmap support:

Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
Gianni
Posts: 30
Joined: Fri Oct 07, 2005 6:58 am

Post by Gianni »

Great !!!

Are you also thinking to support color change when get take focus?

Regards
Gianni
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

I love it!

James
hag
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California
Contact:

Post by hag »

Looks real good.

I have a question due to my great lack of knowledge re FWH and other things of course. What is "themes support" and how does one initilaize it in a program?

Thank for this info.
Thank you
Harvey
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Resources as well ?

Post by ukoenig »

That looks very nice.
Does it work with resources as well ?

Regards
Uwe
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
JC
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil
Contact:

Post by JC »

Incredible!

Linares, and the right alignment with number values? The limit of end of get at button it's ok too?
Peace and lighting!

Júlio César M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Harvey,

Your application uses Windows themes when you include these lines in your RC file:

Code: Select all

#ifdef __FLAT__
  1 24 "WindowsXP.Manifest" 
#endif
You can find the file "WindowsXP.Manifest" in FWH\samples\winxp folder.

Alternatively you can also have themes support if such file is in the same folder where your EXE is. Not sure about this way, as it is a long time since we don't use it.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply