Key Binding |
Ctrl<Key>osfLeft |
Ctrl<Key>osfRight |
<Key>osfLeft |
<Key>osfRight |
<Key>osfPageLeft |
Ctrl<Key>osfPageLeft |
<Key>osfPageRight |
Ctrl<Key>osfPageRight |
<Key>osfBeginLine |
<Key>osfEndLine |
Examples // HScrollBar 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 HScrollBar a perspective. strcpy(buf, "Hello World"); TextBuffer* tbuf= new TextBuffer(buf, strlen(buf),BuffSize); // Create a multi-line text editor with 20 rows, 80 cols, and TabSize of 8. MLTextEditor* tedit = new MLTextEditor(20, 80,8); tedit->Edit(tbuf); // Create a horizontal scroll bar of width = 15 and attach it with the // text editor just created. HScrollBar* hsb = new HScrollBar(tedit, 15); // Compose a vbox with this text editor, glue, and the scroll bar. VBox* box = new VBox(tedit, new VGlue(4, 0,0), hsb); // Map the window. world->InsertApplication(new Frame(box, 1, BevelOut)); // Enter the event loop. world->Run(); return 0; }
scrollbar.h scrollbar.C