[[HomePage]] > [[SoftwareIndex|Software Index]] > [[SoftwareDevelopment|Development]] > [[gtkdialog|gtkdialog]] > [[gtkdialogDocTips|Tips and Tricks]] ====6.1 Extended use of widgets==== [[https://github.com/puppylinux-woof-CE/gtkdialog/wiki/ The reference guide]] contains most info about the widgets. This chapter is heading for the undocumented features. **Generals** Add tooltips. ~##...## Add tooltips with advanced text layout. ~#### Widgets might be invisible. ~##...## Define how much space the widget should take. ~##...## Avoid tab-key to give focus ~##...## Align widget. ~xalign/yalign may hold 0 (left), 1 (right) and 2 (center). ~xalign/yalign works for most widgets. ~For button/progressbar they describe placement of label rather than widget itself. ~##...## **[[https://github.com/puppylinux-woof-CE/gtkdialog/wiki/window ]]** prevent user from resizing the gui. ~#### Shrink window smaller than the widgets requires to show up. ~#### **[[https://github.com/puppylinux-woof-CE/gtkdialog/wiki/text ]]** Text knowledge has been moved to its own chapter - [[gtkdialogDocTips8 Text managing]] Justify aligment to right (1), center (2), left (3). ~#### Angle the text ~#### Force one-line text ~#### ~#### Set underline pattern ~#### **[[https://github.com/puppylinux-woof-CE/gtkdialog/wiki/button ## The image doesn't need to be left of label. ~It can be left/right/above/below. Values 0-3. ~Be aware that this seems to work only for icons in the gtk-stock. ~#### Use gtk-stock values ~#### Hotkey is set in 2 ways ~#### ~#### Scale icon ~#### **[[https://github.com/puppylinux-woof-CE/gtkdialog/wiki/entry ]]** Give entry focus ~#### Not editable ~#### Password - show input text as ""******"", and a note if capslock is turned on ~#### Alternative way to define default text ~#### Show progress in entry - or simply change the color of the entry background ~#### Icons in ~##]]** You can define which tab should be active by default. "0" represent tab1, "1" represent tab2 ... ~##...## Tabs can be shown at Top/Bottom/Left/Right. Values from 0-3 ~##...## Tabs can chosen in right-click menu ~##...## **[[https://github.com/puppylinux-woof-CE/gtkdialog/wiki/edit ]]** insert margins ~##...## avoid user input ~##...## **[[https://github.com/puppylinux-woof-CE/gtkdialog/wiki/pixmap ]]** Scale image ~##file.jpg4070## App with extended use of ~[[pFind]] **[[https://github.com/puppylinux-woof-CE/gtkdialog/wiki/progressbar ]]** Avoid window to autoscale because of too much text in progressbar. ~You can truncate text at left (1), at right (3) or in the middle (2) by the ellipsize tag. ~#### Define the text alignment by text-xalign and text-yalign tag. ~Try out values from 0-3 for left, right and center. ~#### Do not show text ~#### Alternative bar outfit. - view blocks ~#### Do not truncate result to block-size. ~#### Set orientation ~0 - Horizontal - left to right. ~1 - Horizontal - right to left. ~2 - Vertical - bottom to top. ~3 - Vertical - top to bottom. ~#### **[[https://github.com/puppylinux-woof-CE/gtkdialog/wiki/chooser ]]** Type of chooser-widget ~0 - Open file ~1 - Save file ~2 - Select folder ~3 - Create folder ~#### Hide/Show 'create folders' button ~#### App with extended use of ~[[MMview]] **[[https://github.com/puppylinux-woof-CE/gtkdialog/wiki/tree ]]** manual sort the list ~##...## - See the Drag'n drop workaround to succeed App with extended use of ~[[pMusic]] ===@@**#%[[gtkdialogDocTips5|❰❰❰ Previous]]#% #%[[gtkdialogDocTips|Index]]#% #%[[gtkdialogDocTips6.2|Next ❱❱❱]]#%**@@=== ---- ==Categories== CategoryGtkdialog