Page 1 of 2
FWH 8.08 - New ACTION clause for GETs
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Thu Aug 07, 2008 11:24 am
by Antonio Linares
In FWH 8.08 an ACTION can be used with a GET, i.e.:
- Code: Select all Expand view
#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
![Smile :-)](./images/smilies/icon_smile.gif)
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Thu Aug 07, 2008 11:24 am
by Antonio Linares
Re: FWH 8.08 - New ACTION clause for GETs
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Thu Aug 07, 2008 11:45 am
by Enrico Maria Giordano
Is it possible to redefine the button caption or to put a bitmap on the button?
EMG
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Thu Aug 07, 2008 12:45 pm
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
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Thu Aug 07, 2008 12:56 pm
by Antonio Linares
Yes, its going to support an optional bitmap too.
And we can make it themes aware
![Smile :-)](./images/smilies/icon_smile.gif)
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Thu Aug 07, 2008 1:12 pm
by Silvio
good mr linares!
last year I made something of it using as bmp the btnbmp class.
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Thu Aug 07, 2008 1:20 pm
by Antonio Linares
Themes support:
![Image](http://img115.imageshack.us/img115/1452/getbtnbk1.png)
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Thu Aug 07, 2008 1:33 pm
by Antonio Linares
Themes and bitmap support:
![Image](http://img98.imageshack.us/img98/5076/getbtnic8.png)
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Thu Aug 07, 2008 1:36 pm
by Enrico Maria Giordano
Wonderful!
EMG
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Thu Aug 07, 2008 3:46 pm
by Gianni
Great !!!
Are you also thinking to support color change when get take focus?
Regards
Gianni
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Thu Aug 07, 2008 3:57 pm
by James Bott
I love it!
James
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Thu Aug 07, 2008 4:16 pm
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.
Resources as well ?
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Thu Aug 07, 2008 4:29 pm
by ukoenig
That looks very nice.
Does it work with resources as well ?
Regards
Uwe
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Thu Aug 07, 2008 4:53 pm
by JC
Incredible!
Linares, and the right alignment with number values? The limit of end of get at button it's ok too?
![Post Post](./styles/prosilver/imageset/icon_post_target.gif)
Posted:
Thu Aug 07, 2008 4:58 pm
by Antonio Linares
Harvey,
Your application uses Windows themes when you include these lines in your RC file:
- Code: Select all Expand view
#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.