FWH 8.08 - New ACTION clause for GETs

FWH 8.08 - New ACTION clause for GETs

Postby Antonio Linares » Thu Aug 07, 2008 11:24 am

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

Code: Select all  Expand view  RUN
#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: 42111
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Antonio Linares » Thu Aug 07, 2008 11:24 am

Image
regards, saludos

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

Re: FWH 8.08 - New ACTION clause for GETs

Postby Enrico Maria Giordano » Thu Aug 07, 2008 11:45 am

Is it possible to redefine the button caption or to put a bitmap on the button?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby James Bott » Thu Aug 07, 2008 12:45 pm

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
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby Antonio Linares » Thu Aug 07, 2008 12:56 pm

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
Antonio Linares
Site Admin
 
Posts: 42111
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Silvio » Thu Aug 07, 2008 1:12 pm

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

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby Antonio Linares » Thu Aug 07, 2008 1:20 pm

Themes support:

Image
regards, saludos

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

Postby Antonio Linares » Thu Aug 07, 2008 1:33 pm

Themes and bitmap support:

Image
regards, saludos

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

Postby Enrico Maria Giordano » Thu Aug 07, 2008 1:36 pm

Wonderful!

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Gianni » Thu Aug 07, 2008 3:46 pm

Great !!!

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

Regards
Gianni
Gianni
 
Posts: 30
Joined: Fri Oct 07, 2005 6:58 am

Postby James Bott » Thu Aug 07, 2008 3:57 pm

I love it!

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

Postby hag » Thu Aug 07, 2008 4:16 pm

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
hag
 
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California

Resources as well ?

Postby ukoenig » Thu Aug 07, 2008 4:29 pm

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
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Postby JC » Thu Aug 07, 2008 4:53 pm

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
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil

Postby Antonio Linares » Thu Aug 07, 2008 4:58 pm

Harvey,

Your application uses Windows themes when you include these lines in your RC file:
Code: Select all  Expand view  RUN
#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
User avatar
Antonio Linares
Site Admin
 
Posts: 42111
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 67 guests