PDA

View Full Version : App doesn't look right in 18.0B3



kelly
10-May-2014, 12:58 AM
I just migrated an app from 17.1 to 18.0B3 to test it and ah it um doesn't work or look right... The app looks and works perfectly in 17.1 and 17.0.

I thought the changes were mainly web related in 18.0?

See screenshots.

I copied the full 17.0 folder and pasted it in my 18.0 folder then migrated in place. Prior to that I had migrated the 17.0 (original source) to the 17.1 folder (and that worked). There are no missing libraries and the ribbon bar is not a CodeJock one - it's from Ivan.

More than happy to be told it's me! :p

White boxes on 17.1.38 screenshot are intentional.

Richard Hogg
10-May-2014, 01:15 AM
Hi Kelly,

Someone else posted something recently that looked like the same problem with the menu bar blacked out, something to do with skins. The post was only in the last week or 2 from memory.

Regards
Richard

kelly
10-May-2014, 01:23 AM
Was that in relation to VDF 18.0?

My thought is that DAW aim for as few changes between each release as possible? I don't recall seeing anything about this kind of thing in the release notes which I did read reasonably thoroughly.

kelly
10-May-2014, 01:39 AM
There is a difference between this app and another one I have also migrated to 18.0.

The app that is not working has this section of code in the CodeJock Command Bar System (Which the working app doesn't have).



Procedure OnCreateCommandBars
Handle hoOptions
Get OptionsObject to hoOptions
Forward Send OnCreateCommandBars

Send CreateRibbon of oRibbonBar
Send SelectTab of oRibbonBar 1
Set ShowQuickAccess of oRibbonBar to False
Set Appearance of oRibbonBar to xtpTabAppearancePropertyPage2007
End_Procedure


Both apps have this code:



Object oSkin is a cCJSkinFramework
Set psSkinFile to "Office2010.cjstyles"
End_Object


EDIT: I need some way around this so I can test the grids as referred to in this thread (before 18.0 is released...) http://support.dataaccess.com/Forums/showthread.php?52733-access_violation%280xc0000005%29-in-chdbgrid&p=276560#post276560

Peter van Mil
10-May-2014, 02:23 AM
This message is about this issue:

http://support.dataaccess.com/Forums/showthread.php?53495-xtpThemeResource-in-18b3

The 18.0B2 was using CodeJock 16.3.0 and 18.0B3 CodeJock 16.3.1. Maybe it has something to do with that.

Richard Hogg
10-May-2014, 09:55 AM
Hi Kelly,

It was a post here in the forum not the DAW release notes I was referring to. It had a screen shot showing the command bar blacked out similar to what you show. I'm not saying this is the same problem it just looks similar so may be worth checking out. I'm pretty sure it was referring to 18.0 but not 100% on that.

Cheers
Richard

kelly
10-May-2014, 02:11 PM
Yes, I realise that, I was just pointing out that I had read the release notes (strange for me)...

There is a couple of threads on the command bar but none that I can see where it has actually blacked it out (one where it has changed the colour when using a specific setting http://support.dataaccess.com/Forums/showthread.php?53495-xtpThemeResource-in-18b3 and another which I can't find right now).

Dennis Piccioni
10-May-2014, 05:44 PM
This might be an unintended side effect of the latest Codejock version, which we had to change to in beta 3 to fix something else the previous Codejock version broke. We would need more information to go on to track this down.

kelly
10-May-2014, 10:50 PM
We would need more information to go on to track this down.


Okay, name what you need and I'll do my best to supply it ;-).

Focus
11-May-2014, 04:49 AM
Can you create a new 18.0 workspace and put your command and ribbon bars in and get the same effect ? if so zip up and send it to them ?

Peter van Mil
11-May-2014, 07:14 AM
A demo app with normal commandbars is working fine with both beta (and CodeJock) versions.

My OrderRibbon sample, that is based on a cSTRibbonBar.pkg from this forum, doesn't work right anymore. I didn't research it, yet. I can send a ZIP if it is needed.

7721

Dennis Piccioni
11-May-2014, 11:14 AM
Yes, we need something like Andrew and Peter suggest. A reproducible sample, as small and isolated as possible, that we can compile and test.

Peter van Mil
11-May-2014, 12:14 PM
Hi Dennis,

I have sent the OrderRibbon workspace by e-mail. The VDFSIG example has the same problem when you include oCommandBarSystem_Ribbon.pkg.

kelly
11-May-2014, 02:09 PM
That is the same package that I'm using for my ribbon bar.

Thanks Peter! you saved me a job.

ivansc
13-May-2014, 10:20 AM
I just migrated an app from 17.1 to 18.0B3 to test it and ah it um doesn't work or look right... The app looks and works perfectly in 17.1 and 17.0.

Hi Kelly,
try this:
- copy "Office2007.dll" from "C:\Program Files (x86)\DataFlex 18.0\Lib" to your programs directory and add this at the end of your "OnCreateCommandBars"


Procedure OnCreateCommandBars
...
Boolean bOk
Get LoadResourceImagesFromFile "Office2007.dll" "" to bOk
If bOk Set peVisualTheme to xtpThemeResource
End_Procedure

best regards
Ivan

Dennis Piccioni
13-May-2014, 01:05 PM
Hi Ivan,

nice job! This works here with the sample that Peter van Mil sent me. I didn't even have to copy the DLL file to my workspace (on my development machine).

kelly
13-May-2014, 02:14 PM
Better, it shows now but only quarter of the buttons in the whole app are there although all of the groups are.

That is just one tab.

Peter van Mil
13-May-2014, 02:20 PM
Good to hear. Both the OrderRibbon sample and the VDFSIG demo with the ribbonbar work with these modifications.

kelly
13-May-2014, 02:24 PM
Do all of your buttons appear and work though?

I'm using this one:


Get AddControl hoRibbonGroup ID_StockAdjustmentViewMenuItem "Stock Adjustment" "Stock Adjustment" "Botones" "Create Stock Adjustments." "Adjustment.ico" False xtpControlButton xtpButtonIconAndCaptionBelow False to vControl

Dennis Piccioni
13-May-2014, 02:39 PM
Odd. Peter's sample app looks the same in 17.1 and 18.0. All the same buttons are present and look identical.

kelly
13-May-2014, 02:44 PM
Sounds like after work tonight I better create a working example of my app.

kelly
14-May-2014, 03:55 AM
Weird. I have just finished creating a test app and it works great.

So I forced a rebuild of the original 18.0B3 app and it works ok.

Dennis Piccioni
14-May-2014, 10:22 AM
Good news! :)

Focus
14-May-2014, 05:01 PM
What about my version of the problem in this area ;)

Peter van Mil
16-May-2014, 02:18 AM
AFAIK it is the same problem, so you can use the same solution :)

Nils G. Svedmyr
14-Jul-2014, 04:18 AM
Hi Dennis,

Albeit this is a workaround it is not IMHO a solution to the problem.

It won't help for using any .msstyles or .cjstyles files which are much more common than the .dll skin files (which there are just a few of).

Are DAW doing any more research in this area?

TIA.