Default Keyboard Translations | |
Key Binding | Action String |
Ctrl<Key>osfUp | |
Ctrl<Key>osfDown | |
<Key>osfUp | |
<Key>osfDown | |
<Key>osfPageUp | |
Ctrl<Key>osfPageUp | |
<Key>osfPageDown | |
Ctrl<Key>osfPageDown | |
<Key>osfBeginLine | |
<Key>osfEndLine |
Examples // VScrollBar Example #include <ivplus/box.h> #include <ivplus/frame.h> #include <ivplus/glue.h> #include <ivplus/scrollbar.h> #include <ivplus/textbuffer.h> #include <ivplus/mltexteditor.h> #include <ivplus/world.h> #include <string.h> int main(int argc, char **argv) { const int BuffSize = 512; char* buf = new char[BuffSize]; // Create the world to get the connection with the display. World* world = new World("MyApp", argc, argv); // Create a text editor to give vertical scroll bar a perspective // to manipulate. strcpy(buf, "HelloWorld"); TextBuffer* tbuf= new TextBuffer(buf, strlen(buf),BuffSize); // Create a text editor with 20 rows and 80 cols. MLTextEditor* tedit = new MLTextEditor(20, 80, 8); tedit->Edit(tbuf); // Create a vertical scroll bar of width = 15 and attach it to the // text editor just created. VScrollBar* vsb = new VScrollBar(tedit, 15); // Compose an hbox with this text editor, glue, and the scroll bar. HBox* box = new HBox(tedit, new HGlue(4, 0,0), vsb); // Map the window. world->InsertApplication(new Frame(box, 1, BevelOut)); // Enter the event loop. world->Run(); return 0; }
scrollbar.h scrollbar.C