New FWH 9.07

New FWH 9.07

Postby Antonio Linares » Thu Jul 30, 2009 9:14 am

regards, saludos

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

Re: New FWH 9.07

Postby Antonio Linares » Thu Jul 30, 2009 11:03 am

Please post screenshots of your 9.07 RibbonBar tests :-)

Image
regards, saludos

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

Re: New FWH 9.07

Postby Antonio Linares » Thu Jul 30, 2009 3:45 pm

Using the RibbonBar new controls in your own dialogs:

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

Re: New FWH 9.07

Postby Silvio » Thu Jul 30, 2009 5:26 pm

Good Mr Antonio !!!
When I return back from Holiday I want be the first to purchase the new lib
Best Regards, Saludos

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

Re: New FWH 9.07

Postby ukoenig » Thu Jul 30, 2009 7:06 pm

Dear Antonio,

The screenshot seems to be a brush-background.
Transparency works with Images as well ?
I have to define some hotspot-areas on a Image-background.
It would be a nice solution for my problem.
BtnBmp I couldn't use, because there was a transparent-problem with image-backgrounds.

Image

Best Regards
Uwe :lol:
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

Re: New FWH 9.07

Postby Antonio Linares » Thu Jul 30, 2009 10:33 pm

Uwe,

Do you need transparency or to highlight a background area ?
regards, saludos

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

Re: New FWH 9.07

Postby nageswaragunupudi » Thu Jul 30, 2009 10:42 pm

Mr Antionio

I started learning the wonderful Ribbon Bar.
Hope you don't mind even some very minor suggestions.
I feel it is better to change the spelling of GRADIANT to GRADIENT. ( There is no word as gradiant in english dictionary)
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: New FWH 9.07

Postby nageswaragunupudi » Thu Jul 30, 2009 10:58 pm

I clicked on Paste button, which invokes the Paste function, which is supposed to produce the dialog in your second screen shot. But I get a different appearance. ( I am using XP )

Initially the dialog looks like this.
Image

After pressing Alter or hovering mouse over the top part of the dialog, the dialog looks like this

Image

But I am not able to get the look as in the second image posted by you
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: New FWH 9.07

Postby ukoenig » Thu Jul 30, 2009 11:26 pm

Antonio,

To have a bit lighter Area for the Hotspot ( like Your Screenshot shows ) will be OK,
because the user can see, there is something to click on.
Because Your Screenshot uses a Background-Brush, it was just a question for the Image-Background.
The Upgrade-order is on the way and I think next week I can start to include the new
functions in the different Tools.
Also the xBrowse-Tools will have some new functions like the new Background-Gradient and Multiheaders.

------------------------

Dear Rao,

I used a Screencapture-Application, to be sure to get a 1:1 Result of the needed Image-part.
Using Windows Copy and Past, doesn't allways work 100%.
Just a right Mouseclick on the Image and selecting => copy to destination downloads the complete image.

Best Regards
Uwe :lol:
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

Re: New FWH 9.07

Postby nageswaragunupudi » Fri Jul 31, 2009 12:16 am

Mr Uwe

I am studying the Ribbonbar code and trying some examples. Answer to your first question is that Transparent Groups and Buttons work on Image backgrounds also. But there seems to be a small issue, which I am sure FWH team will fix in no time. I am reading and understanding their code and find that they adopted a new logic for transparency and I admire that. I am posting a screenshot to show that transparency works on Image also and at the same time to point out the minor problem about the area that is being captured for transparency, so that FWH will rectify it soon and give us a revised build

Here is my testcode:
Code: Select all  Expand view  RUN
#include 'fivewin.ch'
#include 'ribbon.ch'

function Main()

   local oDlg, oGrp, oBtn

   DEFINE DIALOG oDlg SIZE 390,440

   @ 10,10 IMAGE FILE '\fwh\bitmaps\olga1.jpg' SIZE 175,200 PIXEL

   @ 20,20 RBGROUP oGrp PROMPT 'Transparent' SIZE 100,60 TRANSPARENT

   @ 100,40 RBBTN oBtn PROMPT 'Button' SIZE 40,40 ;
      BITMAP '\fwh\bitmaps\copy16.bmp' TRANSPARENT

   ACTIVATE DIALOG oDlg CENTERED

return nil


 


Image

Once this minor issue is resolved, I think we can create hot-spots on images.

Can you please let me know the screen capture utility you are using ?
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: New FWH 9.07

Postby Daniel Garcia-Gil » Fri Jul 31, 2009 1:06 am

Hello...

Mr. Rao the same samples work to me...
i'm using window 7
in your samples you have the Ribbon controls over image control and the ribbon control don't recive event...

Image

Image

but we can use this way and recive event to ribbon controls

Code: Select all  Expand view  RUN
#include 'fivewin.ch'
#include 'ribbon.ch'


function Main()

   local oDlg, oGrp, oBtn, oImg

   DEFINE DIALOG oDlg SIZE 440,440

   DEFINE BITMAP oImg FILE 'c:\fwh\bitmaps\rainbow.bmp'

   @ 20,20 RBGROUP oGrp PROMPT 'Transparent' SIZE 100,50 TRANSPARENT

   @ 40,80 RBBTN oBtn PROMPT 'Button' SIZE 20,20 NORMAL;
      BITMAP 'c:\fwh\bitmaps\copy16.bmp' TRANSPARENT ROUND

   ACTIVATE DIALOG oDlg CENTERED ;
   ON PAINT( PalBmpDraw( hDC, 0, 0, oImg:hBitmap ) )

return nil
 


Image

http://www.sitasoft.com/fivewin/test/testrb.zip
User avatar
Daniel Garcia-Gil
 
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita

Re: New FWH 9.07

Postby nageswaragunupudi » Fri Jul 31, 2009 1:49 am

Mr Daniel

Thanks for your prompt reply. Also thanks for your tip about the controls receiving the events.
in your samples you have the Ribbon controls over image control and the ribbon control don't recive event...

I keep this in mind.

The transparency seems to be working well on Windows 7. I do not know about Vista. But it is not working on XP. Here is a screenshot on XP. Still most users use XP. You may have to make it compatible with XP also.

Image

Not only XP, better you or some colleagues test on Servers 2000, 2003 and 2008 and give feedback. You may need to make it work on all these OS also.

By the way, I need to say that this is a problem, even if we use the image as a brush also.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: New FWH 9.07

Postby Otto » Fri Jul 31, 2009 1:37 pm

Hello Antonio,

thank you for the RibbonBar control. It looks great.

May I ask if the ALT-key is already working and how to code the tooltip?

This works:
Code: Select all  Expand view  RUN
DEFINE RIBBONBAR oRBar WINDOW oWnd PROMPT "&Configuración", "Ficheros", "Informes", "Ayudas" HEIGHT 160 TOPMARGIN 55
   oRBar:nSeparation := 80
oRBar:cTooltip := { || "___________________" + CRLF + "? RIBBONBAR  D r ü c k e n Sie F1, um die Hilfe anzuzeigen" }

But on BUTTON the tooltip is not displayed.
Code: Select all  Expand view  RUN
 @ 2,5 ADD BUTTON oBtn1 PROMPT "9 Paste"   BITMAP "..\bitmaps\PASTE32.BMP" GROUP oGr ACTION ( RIBBON() ) ;
   SPLITPOPUP ROUND SIZE 50,65
 oBtn1:cTooltip := { || "___________________" + CRLF + "? Drücken Sie F1, um die Hilfe anzuzeigen" }
Thanks in advance and best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6336
Joined: Fri Oct 07, 2005 7:07 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 53 guests