FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Ribbon Bar with Terminal Services/Citrix/Remote Desktop
Posts: 663
Joined: Mon Dec 05, 2005 11:22 PM
Ribbon Bar with Terminal Services/Citrix/Remote Desktop
Posted: Tue Oct 05, 2010 06:00 PM
I am starting this thread again.

I am testing the Ribbon Bar with Citrix/Terminal Services/Remote Desktop using latest Fivewin and xHarbour. There is a problem with the arrows and the quality of some of the buttons. Excel and Word both look ok but Fivewin ribbon does not.



I will do some more testing but has anyone else noticed this and have a fix?

BTW: I am just using ribbon.prg in the samples folder.
Posts: 663
Joined: Mon Dec 05, 2005 11:22 PM
Re: Ribbon Bar with Terminal Services/Citrix/Remote Desktop
Posted: Tue Oct 05, 2010 08:45 PM
If I start ribbon.exe on the computer before I remote in, then it looks a lot better. It seems the biggest display problem happens if the application is started while the remote desktop session is in control.

Posts: 663
Joined: Mon Dec 05, 2005 11:22 PM
Re: Ribbon Bar with Terminal Services/Citrix/Remote Desktop
Posted: Tue Oct 05, 2010 08:59 PM
Ok, I started ribbon.exe on my laptop. Then from another computer I used remote desktop to take control of laptop.
While the ribbon.exe was still running I started it again while I was remoted in. You can see the difference. At this point it the same program running at the same time.
I started Excel again and it was fine running in the remote desktop session.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Ribbon Bar with Terminal Services/Citrix/Remote Desktop
Posted: Wed Oct 06, 2010 06:20 AM

Gale,

What screen colors resolution are you using ?

Please try to modify it and make some tests, thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Ribbon Bar with Terminal Services/Citrix/Remote Desktop
Posted: Fri Oct 08, 2010 06:06 PM

Gale,

I note that both the Copy and Paste icons look the same in both examples. This leads me to believe the problem is only with certain bitmap formats. Try converting one of the problem bitmaps to the same size and number of colors as the Copy bitmap and see if it then displays properly.

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 663
Joined: Mon Dec 05, 2005 11:22 PM
Re: Ribbon Bar with Terminal Services/Citrix/Remote Desktop
Posted: Fri Oct 08, 2010 10:19 PM

I am really busy right now but I will try to look at it this week end. Right now it is not usable for my Citrix users.
Also note the little down arrows. In a previous discussion on this forum, they were trying to get them to look right so when I was testing this I discovered more than the down arrows had display issues.

I bumped up the remote desktop to the highest display quality for those tests above. It's funny that if you start the program, then remote into it, all of the icons and arrows look ok. It is only when you start the program while the remote desktop session is already active that they do not display right.

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Ribbon Bar with Terminal Services/Citrix/Remote Desktop
Posted: Fri Oct 08, 2010 11:01 PM
Gale,

...little down arrows...


I expect these are unique because the data for the bitmaps is stored in code.

It's funny that if you start the program, then remote into it, all of the icons and arrows look ok. It is only when you start the program while the remote desktop session is already active that they do not display right.


There well may be a bug in Citrix that is causing this. However, good luck getting that fixed.

It is easier to see if we can isolate the problem and try to fix it within FWH/(x)Harbour. This is why I am suggesting looking at the bitmap format issue. If we find that a certain format works, then the easiest solution is to convert other bitmaps to that format. The down arrows maybe more difficult to fix, I don't know.

Regards,
James
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 663
Joined: Mon Dec 05, 2005 11:22 PM
Re: Ribbon Bar with Terminal Services/Citrix/Remote Desktop
Posted: Fri Oct 08, 2010 11:54 PM

The examples above were all done with a computer running Windows XP and another using remote desktop to access it.
It does the same thing using Citrix but I eliminated that early on. If I can get it to work with remote desktop then Terminal Services/Citrix should work.

Posts: 512
Joined: Mon Oct 17, 2005 10:38 AM
Re: Ribbon Bar with Terminal Services/Citrix/Remote Desktop
Posted: Sat Oct 09, 2010 06:47 AM

Hi Gale.
You can solve this problem in this way.
In TRBTN.PRG find the line where is the call to LittleArrow() and change with ::hArrow := ReadBitmap( 0, "C:\littlearrow.bmp" )
The bitmap is 10x7, with the transparent background.
The find the lines with the calls to TransBmp() and make these changes :

     do case
        case nTypeButton == TYPE_SPLITPOPUP
           //TransBmp( ::hArrow, 5, 4, 0, ::hDC, ::nWidth / 2 - 2.5, ::nHeight - 6, 5, 4 )
           Drawmasked( ::hDC, ::hArrow, ::nHeight - 12, ::nWidth / 2 - 2.5 )

        case nTypeButton == TYPE_POPUP
           //TransBmp( ::hArrow, 5, 4, 0, ::hDC, ::nPopupMargin + 1, ::nHeight / 2 - 2, 5, 4 )
           Drawmasked( ::hDC, ::hArrow, ::nHeight / 2 - 2, ::nPopupMargin - 9 )
     endcase

In whit way works perfectly. Already tested in Terminal Services and Citrix.

Posts: 566
Joined: Thu Aug 30, 2007 03:40 PM
Re: Ribbon Bar with Terminal Services/Citrix/Remote Desktop
Posted: Wed Oct 27, 2010 06:06 AM

hi, can you explain this change? affect ribbon without terminal server? i use with/without terminal server. thanks

Posts: 512
Joined: Mon Oct 17, 2005 10:38 AM
Re: Ribbon Bar with Terminal Services/Citrix/Remote Desktop
Posted: Wed Oct 27, 2010 06:11 AM

Hi.
Works perfectly with/without terminal server/citrix.

Posts: 566
Joined: Thu Aug 30, 2007 03:40 PM
Re: Ribbon Bar with Terminal Services/Citrix/Remote Desktop
Posted: Wed Oct 27, 2010 07:01 AM

ok . very thanks , i need put this bitmap in c:\ ??

Posts: 512
Joined: Mon Oct 17, 2005 10:38 AM
Re: Ribbon Bar with Terminal Services/Citrix/Remote Desktop
Posted: Wed Oct 27, 2010 08:46 AM

You can put the bitmap in your folder application or where you like.

Posts: 566
Joined: Thu Aug 30, 2007 03:40 PM
Re: Ribbon Bar with Terminal Services/Citrix/Remote Desktop
Posted: Sun Nov 07, 2010 03:02 PM

hi, this fix is included in fwh1010??

Continue the discussion