## [484dc9]: / manuals / vgui_users_guide / node16.html  Maximize  Restore  History

### 116 lines (114 with data), 4.5 kB

  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115  More complicated GUIs

More complicated GUIs

There are several reasons why you may wish to write your application without using the VGUI pattern. One reason is that only menus and dialog boxes are available using the pattern provided by VGUI. If you want to use more complicated widgets in your GUI (e.g. sliders, buttons) then you will have to write the application for one particular GUI toolkit only.

Alternatively you may be very familiar with a particular toolkit and not want to learn the VGUI pattern for menus etc (but remember this will make your code less portable).

As a first example here is the display image example again, but this time written in GTK. We still use the tableau code from VGUI to create the OpenGL area where the image is displayed and the vgui_gtk_adaptor class to plug the OpenGL area into our GTK code.

In this next example we are writing a movie player and we want to use buttons to stop and start the movie. In order to do this the application has been written in GTK.