summaryrefslogtreecommitdiffstats
path: root/library/bgerror.tcl
Commit message (Collapse)AuthorAgeFilesLines
* Remove various unnecessary "global tcl_platform" occurrences, which are no ↵jan.nijtmans2015-08-051-1/+1
| | | | | longer used. Add "Fit To Screen Width" menu entry to Windows (and android) console menu. Ported from androwish.
* [Bug 3534137]: $tcl_platform(platform) != [tk windowingsystem]jan.nijtmans2012-06-101-1/+1
|\
| * [Bug 3534137]: $tcl_platform(platform) != [tk windowingsystem]jan.nijtmans2012-06-101-1/+1
| |\
| | * [Bug 3534137]: $tcl_platform(platform) != [tk windowingsystem]jan.nijtmans2012-06-101-5/+5
| | |
* | | Use vroot size in stead of screen size for clipping window coordinates in ↵jan.nijtmans2012-04-201-1/+3
|\ \ \ | |/ / | | | | | | | | | ::tk::PlaceWindow. Use ::tk::PlaceWindow in dialog.tcl, in stead of dumplicating the code there.
| * | Use vroot size in stead of screen size for clipping window coordinates in ↵jan.nijtmans2012-04-201-1/+3
| |\ \ | | |/ | | | | | | | | | ::tk::PlaceWindow. Use ::tk::PlaceWindow in dialog.tcl, in stead of dumplicating the code there.
| | * Fix bug 533519jan.nijtmans2012-04-161-2/+3
| | |
* | | Purge RCS Keywordsdgp2011-06-081-3/+0
|\ \ \ | |/ /
| * | Purge RCS Keywords.dgp2011-06-081-3/+0
| |\ \ | | |/
| | * Purge RCS Keywords.dgp2011-06-081-3/+0
| | |
| | * TIP #359: Extended Window Manager Hints support for 8.4patthoyts2010-01-231-2/+4
| | |
| | * Backport from HEAD of Aqua changes from 2007-10-12 to 2007-11-09das2007-11-091-3/+4
| | |
| | * * library/bgerror.tcl: standardize dialog option & button sizedas2007-05-301-3/+3
| | | | | | | | | | | | | | | | | | | | | * library/dialog.tcl: modifications done when running on on Aqua. * library/msgbox.tcl: * library/demos/button.tcl: set button highlightbackground on Aqua.
| | * * library/bgerror.tcl: on aqua, use moveable alert resp. modal dialogdas2007-04-291-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | * library/dialog.tcl: window class and corresponding system background pattern; fix button padding. * library/tearoff.tcl: correct aqua menu bar height; vertically offset * library/tk.tcl: aqua tearoff floating window to match menu.
| | * * library/bgerror.tcl (::tk::dialog::error::bgerror): remove ahobbs2006-06-221-4/+3
| | | | | | | | | | | | couple of unnecessary hardcoded options
| | * Fix silly error that prevented truncated error traces from being presented todkf2006-03-111-3/+3
| | | | | | | | | | | | the user, even when they should have been.
| | * * library/bgerror.tcl: Updates to use Tcl 8.4 features. [Patch ↵dgp2006-01-251-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1237759] * library/button.tcl: * library/choosedir.tcl: * library/clrpick.tcl: * library/comdlg.tcl: * library/console.tcl: * library/dialog.tcl: * library/entry.tcl: * library/focus.tcl: * library/listbox.tcl: * library/menu.tcl: * library/msgbox.tcl: * library/palette.tcl: * library/panedwindow.tcl: * library/safetk.tcl: * library/scale.tcl: * library/scrlbar.tcl: * library/spinbox.tcl: * library/tearoff.tcl: * library/text.tcl: * library/tk.tcl: * library/tkfbox.tcl: * library/xmfbox.tcl:
| | * * library/bgerror.tcl (::tk::dialog::error::bgerror): usehobbs2005-07-281-3/+3
| | | | | | | | | | | | zoomDocProc instead of dBoxProc for bgerror dialog
| | * * library/bgerror.tcl (bgerror): rework to only set -topmost bithobbs2004-04-171-55/+35
| | | | | | | | | | | | | | | on Windows if necessary. Also use existing ::tk functions for placing dialog and managing focus/grab.
| | * * library/bgerror.tcl: make bgerror dialog topmost on Windows tohobbs2003-04-251-3/+6
| | | | | | | | | | | | prevent it being covered by other windows.
| * | TIP #359: Extended window manager hints support for X11.patthoyts2010-01-201-2/+4
| | |
* | | * library/bgerror.tcl: [Bugs 3046742,3046750]: Improve keybindings fordkf2010-09-051-7/+20
| | | | | | | | | | | | | | | | | | the background error dialog, and allow the use of the window manager controls for closing it (where supported). The Escape key now causes all remaining background error messages in the queue to be dropped.
* | | TIP #359: Extended window manager hints support for X11.patthoyts2010-01-191-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modern unix window managers use a set of window properties to give hints as to the purpose of a toplevel window. They then use these hints to apply various animation and decoration options based on the type (dialog, menu, tooltip and more). This patch adds a [wm attributes $w -type] option to control and read the type hint and makes use of this for the ttk::combobox and the dialogs raised from the Tk library scripts. Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
* | | Pretty up the messagebox on unix using PNG images for the icons and group ↵patthoyts2009-01-111-46/+3
| | | | | | | | | | | | the icons into one place.
* | | Themed the bgerror dialog and make use of our PNG support to improve the icon.patthoyts2009-01-081-41/+77
|/ /
* | merge stable branch onto HEADdgp2007-12-131-3/+3
| |
* | * macosx/tkMacOSXButton.c: sync formatting, whitespace, copyrightdas2007-11-091-2/+3
| | | | | | | | | | | | | | | | | | | | * macosx/tkMacOSXDialog.c: with core-8-4-branch. * macosx/tkMacOSXMenus.c: * macosx/tkMacOSXWm.c: * xlib/xgc.c * library/bgerror.tcl: * library/console.tcl: * library/menu.tcl:
* | * library/bgerror.tcl: fix background of detail text on Aqua.das2007-11-041-2/+3
| |
* | * tests/listbox.test, tests/panedwindow.test, tests/scrollbar.test:hobbs2007-10-301-81/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * library/bgerror.tcl, library/dialog.tcl, library/listbox.tcl: * library/msgbox.tcl, library/optMenu.tcl, library/tclIndex: * library/tkfbox.tcl, library/demos/floor.tcl, library/demos/rmt: * library/demos/tcolor, library/demos/text.tcl: * library/demos/twind.tcl, library/demos/widget: Buh-bye Motif look * library/ttk/fonts.tcl: Update of Tk default look in 8.5 * macosx/tkMacOSXDefault.h: Trims border sizes, cleaner X11 look * unix/tkUnixDefault.h: with minor modifications for Win32/Aqua. * win/tkWinDefault.h: Uses Tk*Font definitions throughout for * win/tkWinFont.c: classic widgets. [Bug #1820344] * library/obsolete.tcl (::tk::classic::restore): This restores changes made to defaults in 8.5 using the 'option' command, segmented into logical groups.
* | * library/bgerror.tcl: standardize dialog option & button sizedas2007-05-301-3/+3
| | | | | | | | | | | | | | * library/dialog.tcl: modifications done when running on on Aqua. * library/msgbox.tcl: * library/demos/button.tcl: set button highlightbackground on Aqua.
* | * library/bgerror.tcl: on aqua, use moveable alert resp. modal dialogdas2007-04-231-3/+13
| | | | | | | | | | | | | | | | * library/dialog.tcl: window class and corresponding system background pattern; fix button padding. * library/tearoff.tcl: correct aqua menu bar height; vertically offset * library/tk.tcl: aqua tearoff floating window to match menu.
* | * library/bgerror.tcl (::tk::dialog::error::bgerror): remove ahobbs2006-06-221-4/+3
| | | | | | | | couple of unnecessary hardcoded options
* | Finish i18n of bgerror [Bug 1409264]. No l10n of that specific message ↵dkf2006-01-311-3/+3
| | | | | | | | | | | | though; that can wait for someone who really wants to use non-English to submit patches.
* | * library/bgerror.tcl: Updates to use Tcl 8.4 features. [Patch ↵dgp2006-01-251-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 1237759] * library/choosedir.tcl: * library/comdlg.tcl: * library/console.tcl: * library/dialog.tcl: * library/focus.tcl: * library/msgbox.tcl: * library/palette.tcl: * library/tk.tcl: * library/tkfbox.tcl: * library/xmfbox.tcl:
* | bgerror dialog: Truncate error messages at 45 charactersjenglish2005-11-151-6/+7
| | | | | | | | instead of 30 [#1224235].
* | * macosx/tkMacOSXCarbonEvents.c (AppEventHandlerProc): handle carbondas2005-08-091-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | events sent directly to application event target via the general TkMacOSXProcessEvent() in the same way as events posted to the event loop. Moved existing app event handlers to tkMacOSXWindowEvent.c. (TkMacOSXInitCarbonEvents): register our application event handler for kEventWindowExpanded events to deal with uncollapsing from the dock. * macosx/tkMacOSXEvent.h: made TkMacOSXProcessEvent() non-static, added * macosx/tkMacOSXEvent.c: new interp field to TkMacOSXEvent struct for use by app event handler. * macosx/tkMacOSXMouseEvent.c (TkMacOSXProcessMouseEvent): retrieve current window, partCode, modifiers and local cursor position from carbon mouse event if possible. Use new static GenerateButtonEvent() taking a MouseEventData struct instead of TkGenerateButtonEvent() to avoid recomputing already known values. Move process activation on MouseDown into BringWindowForward() to allow clicking on window titlebar widgets without activating process. Move code dealing with clicks in window titelbar into separate function HandleWindowTitlebarMouseDown() to avoid code duplication. Avoid repeated calls to TkMacOSXGetXWindow() by storing result in MouseEventData struct. (TkMacOSXButtonKeyState, XQueryPointer): try to get button and modifier state from currently processed carbon event (to avoid unnecessary IPC with the window server), otherwise use modern carbon API to get this info instead of Button() and GetKeys(); only retrieve info caller asks for (via non-NULL ptr passed to XQueryPointer). (ButtonModifiers2State): new static function converting carbon button and modifier state into tk state, allows detection of more than 3 mouse buttons (tk supports up to 5) and of NumLock and Fn modifier keys (NumLock is mapped to Mod3 and Fn to Mod4). * macosx/tkMacOSXWindowEvent.c (TkMacOSXProcessApplicationEvent): handle kEventWindowExpanded event to deal with window uncollapsing from the dock by generating tk Map event, handle kEventAppHidden and kEventAppShown events (moved here from tkMacOSXCarbonEvents.c). * macosx/tkMacOSXSubwindows.c (XUnmapWindow): only hide window when it is not iconified to avoid window flashing on collapse. * macosx/tkMacOSXWm.c: replaced Tk_DoWhenIdle() by Tcl_DoWhenIdle(). (TkMacOSXZoomToplevel): remove call to TrackBox(), now done in HandleWindowTitlebarMouseDown() in tkMacOSXMouseEvent.c. (TkpWmSetState): avoid window flashing on collapse by unmapping after calling CollapseWindow(); only uncollapse window if it is collapsed. * generic/tkInt.decls: changed TkMacOSXZoomToplevel() signature. * generic/tkIntPlatDecls.h: * macosx/tkMacOSXKeyEvent.c (TkMacOSXProcessKeyboardEvent): only call GetMenuItemCommandID() on KeyDown or KeyRepeat events. * macosx/tkMacOSXMenu.c (ReconfigureMacintoshMenu): remove call to obsolete AppendResMenu() API. * macosx/tkMacOSXKeyEvent.c: replaced all direct uses of expensive * macosx/tkMacOSXMenu.c: GetMouse() and TkMacOSXButtonKeyState() * macosx/tkMacOSXMenus.c: APIs by calls to XQueryPointer() * macosx/tkMacOSXMouseEvent.c: * macosx/tkMacOSXScale.c: * macosx/tkMacOSXScrlbr.c: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXDialog.c: replaced use of FrontNonFloatingWindow() * macosx/tkMacOSXKeyEvent.c: by ActiveNonFloatingWindow() as * macosx/tkMacOSXMenu.c: recommended by Carbon docs. * macosx/tkMacOSXMenus.c: * macosx/tkMacOSXSubwindows.c: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXDialog.c: fixed warnings * macosx/tkMacOSXTest.c: * macosx/tkMacOSXCarbonEvents.c: added CVS Id line to file header. * macosx/tkMacOSXDebug.c: * macosx/tkMacOSXDebug.h: * macosx/tkMacOSXEntry.c: * macosx/tkMacOSXEvent.h: * macosx/tkMacOSXKeyEvent.c: * macosx/tkMacOSXMouseEvent.c: * macosx/tkMacOSXWindowEvent.c: * macosx/tkMacOSXWm.h: * macosx/tkMacOSXInt.h: declare macosx internal procs as MODULE_SCOPE. * macosx/tkMacOSXCarbonEvents.c: * macosx/tkMacOSXDraw.c: * macosx/tkMacOSXFont.c: * macosx/tkMacOSXHLEvents.c: * macosx/tkMacOSXInit.c: * macosx/tkMacOSXWindowEvent.c * library/bgerror.tcl: sync with core-8-4-branch changes of 2005-07-28. * macosx/tkMacOSXDraw.c: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXMouseEvent.c: * generic/tkFrame.c: sync with core-8-4-branch changes of 2005-07-27. * generic/tkIntDecls.h: * generic/tkStubInit.c: * generic/tkFrame.c: * win/tkWinDraw.c: * unix/tkUnixDraw.c: * macosx/tkMacOSXDraw.c: * macosx/tkMacOSXInt.h: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXSubwindows.c: * macosx/tkMacOSXButton.c: sync with core-8-4-branch. * macosx/tkMacOSXEntry.c: * macosx/tkMacOSXScale.c: * library/demos/menu.tcl: removed errant '}'.
* | * library/bgerror.tcl (bgerror): rework to only set -topmost bithobbs2004-04-171-55/+34
| | | | | | | | | | on Windows if necessary. Also use existing ::tk functions for placing dialog and managing focus/grab.
* | Removed support for Mac OS Classic platform [Patch 918139]das2004-03-171-10/+6
| |
* | library/bgerror.tcl: Truncate displayed error message if it's too longjenglish2003-12-201-3/+3
| | | | | | | | (fixes: #231251)
* | * library/bgerror.tcl: make bgerror dialog topmost on Windows tohobbs2003-04-251-3/+6
|/ | | | prevent it being covered by other windows.
* *** macosx-8-4-branch merged into the mainline [tcl patch #602770] ***macosx_8_4_merge_2002_08_31_trunkdas2002-08-311-7/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tk.decls: * generic/tkInt.decls: added new "aqua" specific entries to the stubs tables. Changed all "unix" entries to "x11" to allow us to distinguish and build both "aqua" on MacOSX and "x11" on MacOSX. * generic/tk.h: added a #ifnded RESOURCE_INCLUDED so that tk.h can be passed to the resource compiler. * generic/tkCmds.c (Tk_TkObjCmd): added [tk windowingsystem] subcommand: returns "x11" when running on X11, "win32" on Windows, "classic" on MacOS9 and "aqua" on MacOSX Aqua (i.e. Carbon) * generic/tkFont.c (TkFontGetFirstTextLayout): new private function returning the first chunk of a Tk_TextLayout, i.e. until the first font change on the first line (or the whole first line if there is no such font change). * generic/tkMain.c: made Tcl_ThreadDataKey static * library/demos/puzzle.tcl: fixed button metrics for aqua * tests/cursor.test: check for presence of arrow cursor instead of heart cursor * xlib/xcolors.c: changed xColors static initialization to more standard C * macosx/Wish.pbproj/jingham.pbxuser (new): * macosx/Wish.pbproj/project.pbxproj (new): project for Apple's ProjectBuilder IDE. * macosx/Makefile (new): simple makefile for building the project from the command line via the ProjectBuilder tool 'pbxbuild'. * macosx/tkMacOSXAppInit.c (new): macosx specific AppInit looking for a AppMain.tcl file in its bundled Resources/Scripts folder. If present, argv[1] is set to that file and the Scripts folder is added to the auto_path. This allows tk apps to embed scripts within their bundle directory structure. * macosx/tkMacOSXInit.c (new): macosx adapted version of tkUnixInit.c: we initialize & cache the Carbon native encoding (e.g. 'macRoman') and try to find the tk script library files inside Tk packaged as a framework. * macosx/tkMacOSXNotify.c (new): new macosx specific merged Carbon/select-based notifier. * macosx/tkMacOSXEvent.c (new): * macosx/tkMacOSXEvent.h (new): * macosx/tkMacOSXKeyEvent.c (new): * macosx/tkMacOSXMouseEvent.c (new): * macosx/tkMacOSXWindowEvent.c (new): new macosx specific event handling functionality. * macosx/tkMacOSX.h (new): * macosx/tkMacOSXBitmap.c (new): * macosx/tkMacOSXButton.c (new): * macosx/tkMacOSXClipboard.c (new): * macosx/tkMacOSXColor.c (new): * macosx/tkMacOSXConfig.c (new): * macosx/tkMacOSXCursor.c (new): * macosx/tkMacOSXDefault.h (new): * macosx/tkMacOSXDialog.c (new): * macosx/tkMacOSXDraw.c (new): * macosx/tkMacOSXEmbed.c (new): * macosx/tkMacOSXFont.c (new): * macosx/tkMacOSXHLEvents.c (new): * macosx/tkMacOSXInt.h (new): * macosx/tkMacOSXKeyboard.c (new): * macosx/tkMacOSXMenu.c (new): * macosx/tkMacOSXMenubutton.c (new): * macosx/tkMacOSXMenus.c (new): * macosx/tkMacOSXPort.h (new): * macosx/tkMacOSXRegion.c (new): * macosx/tkMacOSXScale.c (new): * macosx/tkMacOSXScrlbr.c (new): * macosx/tkMacOSXSubwindows.c (new): * macosx/tkMacOSXTest.c (new): * macosx/tkMacOSXUtil.c (new): * macosx/tkMacOSXUtil.h (new): * macosx/tkMacOSXWm.c (new): * macosx/tkMacOSXWm.h (new): * macosx/tkMacOSXXStubs.c (new): macosx ports of classic mac Tk implementation in tk/mac. * macosx/tkMacOSXSend.c (new): only send to local interp implemented currently. * macosx/tkMacOSXDebug.h (new): * macosx/tkMacOSXDebug.c (new): new macosx specific functions for debugging MacOS events, regions, etc. * macosx/tkAboutDlg.r (new): * macosx/tkMacOSXApplication.r (new): * macosx/tkMacOSXCursors.r (new): * macosx/tkMacOSXLibrary.r (new): * macosx/tkMacOSXMenu.r (new): * macosx/tkMacOSXResource.r (new): * macosx/tkMacOSXXCursors.r (new): * macosx/tclets.r (new): sources for Rez resource compiler. * macosx/Wish.icns (new): Wish application icon. * generic/tk.h: * generic/default.h: * generic/tkBind.c: * generic/tkCmds.c: * generic/tkGrab.c: * generic/tkPointer.c: * generic/tkPort.h: * generic/tkSelect.c: * generic/tkStubLib.c: * generic/tkTest.c: * generic/tkText.c: * generic/tkWindow.c: * unix/tkUnix3d.c: * xlib/xgc.c: * xlib/X11/X.h: * xlib/X11/Xlib.h: * xlib/X11/Xutil.h: added #includes and #ifdefs for macosx * library/bgerror.tcl: * library/button.tcl: * library/console.tcl: * library/dialog.tcl: * library/entry.tcl: * library/listbox.tcl: * library/menu.tcl: * library/msgbox.tcl: * library/scrlbar.tcl: * library/spinbox.tcl: * library/text.tcl: * library/tk.tcl: * library/demos/menu.tcl: * library/demos/menubu.tcl: * library/demos/widget: check [tk windowingsystem] instead of and/or in addition to $tcl_platform(platform). * generic/tkInt.h: * mac/tkMacBitmap.c: * mac/tkMacWm.c: added missing CONSTification * generic/tkIntDecls.h: * generic/tkIntPlatDecls.h: * generic/tkIntXlibDecls.h: * generic/tkPlatDecls.h: * generic/tkStubInit.c: regen
* Improvements to bgerror dialog layout. [Bug #577086]dkf2002-07-041-6/+12
|
* * library/bgerror.tcl (tk::dialog::error::bgerror):mdejong2002-06-091-5/+2
| | | | | Don't set the bgerror dialog as a transient of itself since this operation is ill defined.
* * Cleaned up namespace usage of the bgerrordgp2002-05-081-56/+59
| | | | dialog. Completes soft dependence on msgcat. [FR 539309]
* new feature, make dependence on msgcat soft, [539309]bagnonm2002-05-031-14/+16
|
* new feature, make dependence on msgcat soft, [539309]bagnonm2002-04-291-13/+13
|
* * TIP 44 changes specific to the Mac anddgp2001-08-061-3/+3
| | | | | | Windows platforms that were overlooked before: tkOpenDocument, tkConsoleExit, tkConsoleOutput, unsupported1 out of namespace :: . Thanks to Vince Darley for prompting another look.
* Merged changes from feature branch dgp-privates-into-namespace,dgp2001-08-011-5/+5
| | | | | implementing TIP 44. All Tk commands and variables matching tk[A-Z]* are now in the ::tk namespace.
* Added braces to expressions.dkf2001-06-141-6/+6
|
* * library/bgerror.tcl (bgerror): allow focus into details windowhobbs2001-03-301-2/+3
| | | | for Windows C&P to work. [Bug #220929]