UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome to UtterAccess! Please ( Login   or   Register )

Custom Search
 
   Reply to this topicStart new topic
> How To Change The Position Of The Tabs In Xml, Access 2010    
 
   
Sajad
post Sep 26 2017, 09:22 AM
Post#1



Posts: 16
Joined: 23-September 17



hello

I want to change the position of the tabs which are created by XML from L to R ,to R to L ,and then import them into the access.
how can I do that ? I'll be appreciating if you kindly guide me specially with some examples

thank you
Go to the top of the page
 
DanielPineault
post Sep 26 2017, 09:43 AM
Post#2


UtterAccess VIP
Posts: 6,133
Joined: 30-June 11



Reorder the XML according to how you want them displayed.

Can you post your Ribbon XML with a screenshot and explain how you want things reordered and we'll try and help you achieve that.
Go to the top of the page
 
Sajad
post Sep 27 2017, 02:25 AM
Post#3



Posts: 16
Joined: 23-September 17



Hi Daniel
I attached the screenshot and explained on the picture itself what I want to do
thank you very much for your responding
Attached File(s)
Attached File  ribbon_order.jpg ( 131.53K )Number of downloads: 17
 
Go to the top of the page
 
DanielPineault
post Sep 27 2017, 07:45 AM
Post#4


UtterAccess VIP
Posts: 6,133
Joined: 30-June 11



You want to display the groups on the right-hand side of the ribbon, or you simply want to reorder them? Could you show us how you'd like the final product to look?
Go to the top of the page
 
Sajad
post Sep 27 2017, 08:41 AM
Post#5



Posts: 16
Joined: 23-September 17



No I want to replace them exactly from this type ,left to right ,and arrange them from right to left ,just exactly in this order but from right to left
Go to the top of the page
 
doctor9
post Sep 27 2017, 09:44 AM
Post#6


Remembered
Posts: 18,324
Joined: 29-March 05
From: Wisconsin


Sajad,

Your picture shows what you -don't- want, but does not clearly explain what you -do- want. Do you want the "My Website" button on the far right side of the screen? If so, I don't think there's a way to do that. I believe Ribbons are designed to go only from left to right.

On the other hand, if you just want to have the "Exit" button on the far left side of the screen, have you tried reversing the order of the appropriate lines of code in the XML?

Hope this helps,

Dennis
Go to the top of the page
 
theDBguy
post Sep 27 2017, 09:48 AM
Post#7


Access Wiki and Forums Moderator
Posts: 73,501
Joined: 19-June 07
From: SunnySandyEggo


Hi sajad,

Welcome to UtterAccess!
welcome2UA.gif
I received your feedback on my website, and I tried to reply to you via email. However, I must not have the correct email address because my response to you was not delivered (it was rejected).

Here's the XML for the Ribbon I am using in the demo:
CODE
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">

<ribbon startFromScratch="true">

<tabs>

  <tab id="tabDemo" label="Demo">
    <group id="grpAbout" label="About Me">
      <button id="btnWebsite" label="My Website" size="large" imageMso="OutlookGlobe" onAction="=RibbonAction('website')" />
      <button id="btnBlog" label="My Blog" size="large" imageMso="SetLanguage" onAction="=RibbonAction('blog')" />
      <button id="btnEmail" label="Contact Me" size="large" imageMso="EnvelopesAndLabelsDialog" onAction="=RibbonAction('email')" />
    </group>
    <group id="grpInfo" label="Info">
      <button id="btnInfo" label="Info" size="large" imageMso="Info" onAction="=RibbonAction('info')" />
    </group>
    <group id="grpExit" label="Exit">
      <button id="btnExit" label="Exit" size="large" imageMso="MasterViewClose" onAction="=RibbonAction('exit')" />
    </group>
  </tab>

</tabs>

</ribbon>

<backstage>
  <button idMso="FileSave" visible="false"/>
   <button idMso="SaveObjectAs" visible="false"/>
  <button idMso="FileSaveAsCurrentFileFormat" visible="false"/>
  <button idMso="FileOpen" visible="false"/>
  <button idMso="FileCloseDatabase" visible="false"/>
  <tab idMso ="TabInfo" visible="false"/>  
  <tab idMso ="TabRecent" visible="false"/>
  <tab idMso ="TabNew" visible="false"/>
  <tab idMso ="TabPrint" visible="false"/>
  <tab idMso ="TabShare" visible="false"/>
  <tab idMso ="TabHelp" visible="false"/>
  <button idMso="ApplicationOptionsDialog" visible="false"/>
  <button idMso="FileExit" visible="false"/>
</backstage>


</customUI>

If you simply want to re-order the buttons right-to-left, then perhaps you can change the XML to this:
CODE
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">

<ribbon startFromScratch="true">

<tabs>

  <tab id="tabDemo" label="Demo">
    <group id="grpExit" label="Exit">
      <button id="btnExit" label="Exit" size="large" imageMso="MasterViewClose" onAction="=RibbonAction('exit')" />
    </group>
    <group id="grpInfo" label="Info">
      <button id="btnInfo" label="Info" size="large" imageMso="Info" onAction="=RibbonAction('info')" />
    </group>
    <group id="grpAbout" label="About Me">
      <button id="btnEmail" label="Contact Me" size="large" imageMso="EnvelopesAndLabelsDialog" onAction="=RibbonAction('email')" />
      <button id="btnBlog" label="My Blog" size="large" imageMso="SetLanguage" onAction="=RibbonAction('blog')" />
      <button id="btnWebsite" label="My Website" size="large" imageMso="OutlookGlobe" onAction="=RibbonAction('website')" />
    </group>
  </tab>

</tabs>

</ribbon>

<backstage>
  <button idMso="FileSave" visible="false"/>
   <button idMso="SaveObjectAs" visible="false"/>
  <button idMso="FileSaveAsCurrentFileFormat" visible="false"/>
  <button idMso="FileOpen" visible="false"/>
  <button idMso="FileCloseDatabase" visible="false"/>
  <tab idMso ="TabInfo" visible="false"/>  
  <tab idMso ="TabRecent" visible="false"/>
  <tab idMso ="TabNew" visible="false"/>
  <tab idMso ="TabPrint" visible="false"/>
  <tab idMso ="TabShare" visible="false"/>
  <tab idMso ="TabHelp" visible="false"/>
  <button idMso="ApplicationOptionsDialog" visible="false"/>
  <button idMso="FileExit" visible="false"/>
</backstage>


</customUI>

If you need more than that, you can check out Gunter's Ribbon Website

Hope it helps...
Go to the top of the page
 
Sajad
post Sep 28 2017, 01:09 AM
Post#8



Posts: 16
Joined: 23-September 17



hello dear sir

I change the code that you shared for re-ordering the tabs, I change it in your demo program, but Its not what I want i want all of them move to the far right side as I gonna show you in picture attached in advance.

by the way thank you for your suggestion ,,, and also that was my mistake about the email, this my email : sajad.rajabi8350@gmail.com

thanks again
Attached File(s)
Attached File  ribbon_order.jpg ( 149.88K )Number of downloads: 12
 
Go to the top of the page
 
DanielPineault
post Sep 28 2017, 07:39 AM
Post#9


UtterAccess VIP
Posts: 6,133
Joined: 30-June 11



Others can correct me, but I believe that isn't possible in Office 2010.
Go to the top of the page
 
Sajad
post Oct 3 2017, 12:21 PM
Post#10



Posts: 16
Joined: 23-September 17



Thank you sir for your helps and tips,
I think you're right its impossible in xml to reorder them on that way,
For my last question how can I remove the tab "file" in this ribbon?
I'll be appreciating if you guide me again
Go to the top of the page
 
doctor9
post Oct 3 2017, 01:14 PM
Post#11


Remembered
Posts: 18,324
Joined: 29-March 05
From: Wisconsin


Sajad,

You might want to look at the suggestions by theDBGuy in this previous discussion. Don't forget that the Search link in the upper right corner of the page is a very powerful tool for finding previous discussions that could be very helpful.

Hope this helps,

Dennis
Go to the top of the page
 
Sajad
post Oct 6 2017, 01:55 AM
Post#12



Posts: 16
Joined: 23-September 17



Thanks a lot doctor9
I saw those discussions but that demo is on 32 bit system
Go to the top of the page
 


Custom Search
RSSSearch   Top   Lo-Fi    21st October 2018 - 06:37 PM