Revision history for gtkdialogDocTips6.2


Revision [33325]

Last edited on 2023-02-24 06:49:16 by zigbert
Additions:
[[HomePage]] > [[SoftwareIndex|Software Index]] > [[SoftwareDevelopment|Development]] > [[gtkdialog|gtkdialog]] > [[gtkdialogDocTips|Tips and Tricks]]
~6.2.1 [[http://web.archive.org/web/20160919214114/http://blog.puppylinux.com/?viewDetailed=00020 Knob]]
~6.2.2 [[http://web.archive.org/web/20170815224527/http://blog.puppylinux.com/?viewDetailed=00030 Right-click menu]]
~6.2.3 [[http://web.archive.org/web/20180223030345/http://blog.puppylinux.com/?viewDetailed=00040 Dynamic tabs]]
===@@**#%[[gtkdialogDocTips6.1|❰❰❰ Previous]]#% #%[[gtkdialogDocTips|Index]]#% #%[[gtkdialogDocTips7|Next ❱❱❱]]#%**@@===
Deletions:
[[HomePage]] > [[SoftwareIndex Software Index]] > [[SoftwareDevelopment Development]] > [[gtkdialog gtkdialog]] > [[gtkdialogDocTips Tips and Tricks]]
~6.2.1 [[http://blog.puppylinux.com/archive/current.php?post=posts/20-gtkdialog-knob.html Knob]]
~6.2.2 [[http://blog.puppylinux.com/archive/current.php?post=posts/30-Gtkdialog-right-click-menu.html Right-click menu]]
~6.2.3 [[http://blog.puppylinux.com/archive/current.php?post=posts/40-Gtkdialog---Dynamic-tabs.html Dynamic tabs]]
@@**#%[[gtkdialogDocTips6.1|❰❰❰ Previous]]#% #%[[gtkdialogDocTips|Index]]#% #%[[gtkdialogDocTips7|Next ❱❱❱]]#%**@@


Revision [32910]

Edited on 2020-07-28 05:59:27 by zigbert
Additions:
@@**#%[[gtkdialogDocTips6.1|❰❰❰ Previous]]#% #%[[gtkdialogDocTips|Index]]#% #%[[gtkdialogDocTips7|Next ❱❱❱]]#%**@@
Deletions:
@@**#%[[gtkdialogDocTips5|❰❰❰ Previous]]#% #%[[gtkdialogDocTips|Index]]#% #%[[gtkdialogDocTips6.2|Next ❱❱❱]]#%**@@


Revision [32902]

Edited on 2020-07-28 05:37:40 by zigbert
Additions:
====6.2 New widgets====
~6.2.1 [[http://blog.puppylinux.com/archive/current.php?post=posts/20-gtkdialog-knob.html Knob]]
~6.2.2 [[http://blog.puppylinux.com/archive/current.php?post=posts/30-Gtkdialog-right-click-menu.html Right-click menu]]
~6.2.3 [[http://blog.puppylinux.com/archive/current.php?post=posts/40-Gtkdialog---Dynamic-tabs.html Dynamic tabs]]
~6.2.4 [[http://murga-linux.com/puppy/viewtopic.php?t=115140 Calendar]]
Deletions:
====6.1 Extended use of widgets====
[[http://01micko.com/reference/ The reference guide]] contains most info about the widgets. This chapter is heading for the undocumented features.
**Generals**
Add tooltips.
~##<hbox tooltip-text=" This is the text ">...</hbox>##
Add tooltips with advanced text layout.
~##<button tooltip-markup="<span background='yellow'><b><i> press alt m </i></b></span>">......</button>##
Widgets might be invisible.
~##<progressbar visible="false">...</progressbar>##
Define how much space the widget should take.
~##<text height-request="50" width-request="200">...</text>##
Avoid tab-key to give focus
~##<edit can-focus="no">...</edit>##
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.
~##<text xalign="0">...</text>##
**[[http://01micko.com/reference/window.html <window>]]**
prevent user from resizing the gui.
~##<window allow-grow="false">##
Shrink window smaller than the widgets requires to show up.
~##<window allow-shrink="true">##
**[[http://01micko.com/reference/text.html <text>]]**
Text knowledge has been moved to its own chapter - [[gtkdialogDocTips8 Text managing]]
Justify aligment to right (1), center (2), left (3).
~##<text justify="2">##
Angle the text
~##<text angle="45">##
Force one-line text
~##<text wrap="false">##
~##<text single-line-mode="true">##
Set underline pattern
~##<text label="Underline me with an useless pattern" pattern="__ __ __ __ __ __ _"></text>##
**[[http://01micko.com/reference/button.html <button>]]**
You can skip the button decoration.
~##<button relief="2">...</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.
~##<button use-stock="true" image-position="3">...</button>##
Use gtk-stock values
~##<button use-stock="true" label="gtk-quit"></button>##
Hotkey is set in 2 ways
~##<button use-stock="true" label="gtk-cancel">...</button>##
~##<button use-underline="true"><label>_Cancel</label>...</button>##
Scale icon
~##<button height-request="50" width-request="80">
~~<input file>file.jpg</input>
~~<height>40</height>
~~<width>70</width>
~</button>##
**[[http://01micko.com/reference/entry.html <entry>]]**
Give entry focus
~##<entry text="Focus is here" is-focus="true"></entry>##
Not editable
~##<entry editable="false"></entry>##
Password - show input text as ""******"", and a note if capslock is turned on
~##<entry visibility="false" caps-lock-warning="true"></entry>##
Alternative way to define default text
~##<entry text="default string">##
Show progress in entry - or simply change the color of the entry background
~##<entry progress-fraction="0.5">##
Icons in <entry>
~##<entry primary-icon-activatable="true" primary-icon-stock="gtk-refresh" secondary-icon-activatable="true" secondary-icon-stock="gtk-clear"##
**[[http://01micko.com/reference/notebook.html <notebook>]]**
You can define which tab should be active by default. "0" represent tab1, "1" represent tab2 ...
~##<notebook page="1">...</notebook>##
Tabs can be shown at Top/Bottom/Left/Right. Values from 0-3
~##<notebook tab-pos="3">...</notebook>##
Tabs can chosen in right-click menu
~##<notebook enable-popup="true">...</notebook>##
**[[http://01micko.com/reference/edit.html <edit>]]**
insert margins
~##<edit left-margin="20">...</edit>##
avoid user input
~##<edit editable="no">...</edit>##
**[[http://01micko.com/reference/pixmap.html <pixmap>]]**
Scale image
~##<pixmap><input file>file.jpg</input><height>40</height><width>70</width></pixmap>##
App with extended use of <pixmap>
~[[pFind]]
**[[http://01micko.com/reference/progressbar.html <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.
~##<progressbar text="Truncated the text in the middle" ellipsize="2"></progressbar>##
Define the text alignment by text-xalign and text-yalign tag.
~Try out values from 0-3 for left, right and center.
~##<progressbar text-xalign="1" text-yalign="1">##
Do not show text
~##<progressbar show-text="false">##
Alternative bar outfit. - view blocks
~##<progressbar bar-style="1">##
Do not truncate result to block-size.
~##<progressbar discrete-blocks="25">##
Set orientation
~0 - Horizontal - left to right.
~1 - Horizontal - right to left.
~2 - Vertical - bottom to top.
~3 - Vertical - top to bottom.
~##<progressbar orientation="3">##
**[[http://01micko.com/reference/chooser.html <chooser>]]**
Type of chooser-widget
~0 - Open file
~1 - Save file
~2 - Select folder
~3 - Create folder
~##<chooser action="1">##
Hide/Show 'create folders' button
~##<chooser create-folders="false">##
App with extended use of <chooser>
~[[MMview]]
**[[http://01micko.com/reference/tree.html <tree>]]**
manual sort the list
~##<tree reorderable="true">...</tree>## - See the Drag'n drop workaround to succeed
App with extended use of <tree>
~[[pMusic]]


Revision [32901]

The oldest known version of this page was created on 2020-07-28 05:36:08 by zigbert
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki