Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
New To Ribbon Control
I've used other SRP Controls extensively but am new to the Ribbon Control. I have been using the XML code from the Ribbon doc as my sample code on my MDI form. I have a few newbie questions.
1. Can I place the Ribbon control on our MDI form but eliminate the Tab control portion?
2. Can the backstage control portion be disabled? I will use it on other data entry forms but not on the MDI form. I want the 'circle' with our logo to appear but disabled from clicking.
3. It seems regardless of where I place the OI OLE control on the form the Ribbon control with tabs always appears at the top of my form. Can I have it display lower on the form with other OI controls above it?
4. Can we use SET_PROPERTY on the Ribbon Control or do we set properties only through XML code?
Thanks
1. Can I place the Ribbon control on our MDI form but eliminate the Tab control portion?
2. Can the backstage control portion be disabled? I will use it on other data entry forms but not on the MDI form. I want the 'circle' with our logo to appear but disabled from clicking.
3. It seems regardless of where I place the OI OLE control on the form the Ribbon control with tabs always appears at the top of my form. Can I have it display lower on the form with other OI controls above it?
4. Can we use SET_PROPERTY on the Ribbon Control or do we set properties only through XML code?
Thanks
Comments
Until a more informed response appears, here's my two cents from my experience.
Firstly, what I tend to do is open a copy of word and/or excel so I have a point of reference. This is what the ribbon is intended/designed to replicate. That way I keep in mind how it's supposed to work but it also gives me little ideas of what features I may be able to introduce.
Next question...can the circle at the top of the backstage be filled with an image?
Phil, you can have an icon in the circle button. The Ribbon automatically uses whatever icon you associate to the form in the Form Designer.
I'm pretty sure you could and pretty sure I had in the early days of testing but I can't remember how and can't find any reference to it in the wiki.
"The Ribbon automatically uses whatever icon you associate to the form in the Form Designer. "
I'm not clear on that Kevin. Is the icon image set as some property on the form?
Phil
Thanks
I've got the basic concepts and implementation in place now. The Quick Access sub section has icons for the basic I/O events (Save, Clear, Delete, Close, Search). In this AREV to OI conversion I was looking for the best strategy for implementing 'AREV softkeys'. The plan was to use a simple ribbon with a tab per softkey. It may be best use a 'Softkey' tab (renamed to something else) and make better use of Groups within tabs.
I understand Add\Remove commands.
The icons are not displaying within the tab control groups. All of my icons are 'png' format within an Icons folder under the OI folder. I'm using the Office2013 theme and within the XML I've set Icon, SmallIcon, and LargeIcon with no success. Any suggestions?
The ribbon is set in the MDI frame and each screen has an Add ribbon and Remove ribbon routine on the create and close events respectively. The ribbon code works. It's the image that does not display within each group for the 'Communication' tab. I've checked and all images exists with the image folder and are spelled correctly.
May it be due to the size of the image?
add_ribbon: image_folder = drive():'\PM_IconSets' Xml = '' Xml := '<AddTabs>' Xml := ' <Tab Key="COMMUNICATION" Caption="Communication">' Xml := ' <Group Key="EMAIL" Caption="Email User" Icon = "O:\oi\PM_IconSets\mail-user.png">' Xml := ' <Button Key="EMAIL_BTN" Key="EMAIL" LargeIcon = "O:\oi\PM_IconSets\mail-user.png" SmallIcon = "o:\oi\PM_IconSets\mail-user.png" />' Xml := ' </Group>' Xml := ' <Group Key="SKYPE" Caption="Skype User" Icon = "O:\oi\PM_IconSets\social_skype.png">' Xml := ' <Button Key="SKYPE_BTN" Key="SKYPE" LargeIcon = "O:\oi\PM_IconSets\mail-user.png" SmallIcon = "o:\oi\PM_IconSets\mail-user.png" />' Xml := ' </Group>' Xml := ' <Group Key="OFFICE_PHONE" Caption="Call Users Office Phone" Icon = "O:\oi\PM_IconSets\phone_discussion-user.png">' Xml := ' <Button Key="OFFICE_PHONE_BTN" Key="OFFICE_PHONE" LargeIcon = "O:\oi\PM_IconSets\phone_discussion-user.png" SmallIcon = "o:\oi\PM_IconSets\phone_discussion-user.png" />' Xml := ' </Group>' Xml := ' <Group Key="CELL_PHONE" Caption="Call Users Cell Phone" Icon = "O:\oi\PM_IconSets\phone_discussion-user.png">' Xml := ' <Button Key="CELL_PHONE_BTN" Key="CELL_PHONE" LargeIcon = "O:\oi\PM_IconSets\phone_discussion-user.png" SmallIcon = "o:\oi\PM_IconSets\phone_discussion-user.png" />' Xml := ' </Group>' Xml := ' </Tab>' Xml := '</AddTabs>' Send_Message(mdiframe:".OLE_RIBBON", "OLE.AddTabs", Xml) return
There are three groups within this one 'Communication' tab.
I'm not sure what you are referring to with 'resizing the ribbon until the Groups collapse into a single button.'
If nothing stands out with my code, syntax, use of the full path name to the image file, or use of 'Add Tabs' then I'll play around with the images and resize them. Maybe they are too big but are displaying. I'll get back to you after I work on that.
Thanks
Phil