Page 1 of 1
I hate Ribbonbars
Posted: Sun Feb 28, 2010 8:46 am
by rdonnay
I am going on record as saying that I hate Ribbonbars for a lot of reasons:
It's not Commandbars that I have a problem with, it's the Ribbonbar control of the commandbar.
1. They are unreliable. I get lockups all the time.
2. They are hideous. This is one of the reasons I never upgraded to Microsoft Office 2007.
3. They are difficult to use and program.
I will continue to support all other controls of the Commandbars class, but I am going to limit the amount of time I am going to waste with Ribbonbars - unless someone gives me some ideas that are workable. I have run out of ideas and the amount of time I am going to spend on this.
I recommend using CJMenubar, CJTabbedToolbar and CJToolbar, but not CJRibbonBar.
Re: I hate Ribbonbars
Posted: Tue Mar 02, 2010 12:56 pm
by Wolfgang Ciriack
Hi Roger,
i hope, that your frustation is gone a little bit.
I have changed one line in your method
ResizeDrawingArea of the Class CJ_CommandBars and that seems to work fine for me and with your sample of the tabbed toolbar.
Code: Select all
aPos := {::left,oDrawingArea:CurrentSize()[2] +::top -::bottom}
But i have a CJToolbar in my sample which i want to have always a xsize of 300 pixel.
In the same method you resize the childlist and there the resizeonly_y is not regarded.
But there fails my programming knowledge. Can you please have a look at it ?
My sample is attached.
Re: I hate Ribbonbars
Posted: Wed Mar 03, 2010 11:46 pm
by Wolfgang Ciriack
Hi Roger,
can you please have a look at my last message ?
Re: I hate Ribbonbars
Posted: Thu Mar 04, 2010 7:39 am
by rdonnay
Wolfgang -
Your fix worked very well. THANK YOU!!
It certainly solved the drawingarea problem.
I don't know how I missed that.
However, I still am concerned about the reliability of the ribbonbars especially after a resizing.
Have you had any lockup problems?
I find that when the lockup occurs, I can release the lockup by pressing the Alt key.
So far, I have not seen any lockups with your sample program.
I will look into the CJtoolbar issue today.
Roger
Re: I hate Ribbonbars
Posted: Thu Mar 04, 2010 7:50 am
by rdonnay
I don't see any CJToolbar in your sample. I need more information.
I do like your sample however, and I am spending some time with it to change some of your code to use CJ* commands.
I see some problems in some of the commands and am fixing them and will give you an update.
This would make another good Ribbonbar sample program to include in the ..\Xcodejock\Samples\Commandbars directory.
Would that be ok with you?
Also, do you have the resource file that you used for your icons?
Re: I hate Ribbonbars
Posted: Thu Mar 04, 2010 10:16 am
by Wolfgang Ciriack
Hi Roger,
fine that this fix works.
Toolbar: Sorry, i meant the taskpanel, which i want to have always the same horizontal size.
I will include some icons in the example and send an update with ressourse file to you, that you can put it in the XCodeJock examples.
With this example i had no lockups, but i have seen them as well with my app.
Re: I hate Ribbonbars
Posted: Fri Mar 05, 2010 9:26 am
by skiman
Hi Roger,
In my testing the ribbonbar is working without locking. I will start to implement it in my application next week.
I modified the resizedrawingarea according to the tip of Wolfgang. I see that there is still a problem when minimizing the ribbonbar, and afterwards showing it again. I suppose there is still a little issue to fix. But maybe you already did this when you was working on the sample of Wolfgang.
If you have a modified xjclass.prg, i could test with it next week.
Regards,