If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Access 2007 ribbon help
I create ribbon but i cant make him to work( if i press some button on ribbon
to open some form or report) Here is a code. customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" ribbon startFromScratch="true" tabs tab id="MyTab" label="Kalkulacije" group id="Kalkulacije" label="Kalkulacije" button id="NovaKalkulacija" imageMso="DatasheetView" size="normal" onAction = "ButtonCallback" label="Nova Kalkulacija" / button id="StampajKalkulaciju" imageMso="FilePrint" size="normal" label="*tampaj Kalkulaciju" onAction = "ButtonCallback"/ button id="pREGLEDkALKULACIJE" imageMso="FilePrint" size="normal" label="Pregledaj Kalkulaciju" onAction = "ButtonCallback"/ button id="pRkALKULACIJE" imageMso="FilePrint" size="normal" label="Pregle Kalkulaciju" onAction = "ButtonCallback"/ /group group id="TK" label="Trgovačka knjiga" button id="OtvoriTK" imageMso="FileOpen" size="large" label="Otvori Trgovačku knjigu" onAction = "ButtonCallback"/ button id="StampajTK" imageMso="FilePrint" size="large" label="*tampaj Trgovačku knjigu" onAction = "ButtonCallback"/ /group /tab /tabs /ribbon /customUI i make code for Button Call back but i don't know where can i put him here is code Sub ButtonCallback(control As IRibbonControl) Select Case control.ID Case "OtvoriTK" DoCmd.OpenForm "Tgovacka_knjiga" Case "NovaKalkulacija" MsgBox "TRT" End Select End Sub Other problem is how can i put my own pictures into button instead access pictures. And how can i write help to show when mouse cursor is on the button. TNX |
#2
|
|||
|
|||
Access 2007 ribbon help
I have a few articles on ribbons
http://www.rptsoftware.com/help/micr...ccess_general/ and some examples (most of them do buttons). The http://www.accessribbon.de/en/ site has some examples of using your own images (other than standard images). They also have lots of examples. Sounds like you are close to understanding how things work. The call back code just goes in a regular module. HTH, Mark RPT Software http://www.rptsoftware.com "Zanetti" u16908@uwe wrote in message news:a0ab68061e605@uwe... I create ribbon but i cant make him to work( if i press some button on ribbon to open some form or report) Here is a code. customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" ribbon startFromScratch="true" tabs tab id="MyTab" label="Kalkulacije" group id="Kalkulacije" label="Kalkulacije" button id="NovaKalkulacija" imageMso="DatasheetView" size="normal" onAction = "ButtonCallback" label="Nova Kalkulacija" / button id="StampajKalkulaciju" imageMso="FilePrint" size="normal" label="Stampaj Kalkulaciju" onAction = "ButtonCallback"/ button id="pREGLEDkALKULACIJE" imageMso="FilePrint" size="normal" label="Pregledaj Kalkulaciju" onAction = "ButtonCallback"/ button id="pRkALKULACIJE" imageMso="FilePrint" size="normal" label="Pregle Kalkulaciju" onAction = "ButtonCallback"/ /group group id="TK" label="Trgovacka knjiga" button id="OtvoriTK" imageMso="FileOpen" size="large" label="Otvori Trgovacku knjigu" onAction = "ButtonCallback"/ button id="StampajTK" imageMso="FilePrint" size="large" label="Stampaj Trgovacku knjigu" onAction = "ButtonCallback"/ /group /tab /tabs /ribbon /customUI i make code for Button Call back but i don't know where can i put him here is code Sub ButtonCallback(control As IRibbonControl) Select Case control.ID Case "OtvoriTK" DoCmd.OpenForm "Tgovacka_knjiga" Case "NovaKalkulacija" MsgBox "TRT" End Select End Sub Other problem is how can i put my own pictures into button instead access pictures. And how can i write help to show when mouse cursor is on the button. TNX |
Thread Tools | |
Display Modes | |
|
|