BLT 1.8 integration in STk 3.0

From: Giorgio Cesana <cesana_at_venus.sgs-thomson.it>
Date: Fri, 3 Nov 1995 19:12:29 +0100

Dear all,

I started to try to make BLT 1.8 to work with STk 3.0.

Being mainly interested in drag & drop, I tried first the following experiment:

1. I tooked the BLT 1.7 for STk distribution, and I disabled the compilation and
linking of all the modules except drag & drop using the options -DNO_<module>.

2. I got the from the 1.8 distribution.

3. After having re-formatted the code (the formatting is different between the
two versions), using the file-merge tool I have put the 1.8 changes in the
bltDragDrop.c of the BLT-STk distribution. The changes are:

< old file
> new file


67,81c67
< #ifndef _BLT_H
< /*
< * ------------- The following color definitions are taken directly
< * >> WARNING << from "default.h" in the Tk distribution, and should
< * ------------- be kept up to date with those conventions.
< */
< #define BLACK "Black"
< #define WHITE "White"
< #define GRAY "#b0b0b0"
<
< #define BISQUE1 "#ffe4c4"
< #define BISQUE2 "#eed5b7"
< #define BISQUE3 "#cdb79e"
< #endif /* _BLT_H */
< #define DEF_BUTTON_ACTIVE_BG_COLOR BISQUE2
---
> #define DEF_BUTTON_ACTIVE_BG_COLOR  BG2
85,86c71,72
< #define DEF_BUTTON_BG_COLOR     BISQUE1
< #define DEF_BUTTON_BG_MONO      WHITE
---
> #define DEF_BUTTON_BG_COLOR         BG2
> #define DEF_BUTTON_BG_MONO          WHITE
1841,1842c1827
< 	int vx, vy;
< 	unsigned int vw, vh;
---
> 	int vx, vy, vw, vh;
2210c2195,2196
< 			Tk_Fill3DRectangle(dsPtr->display, Tk_WindowId(tkwin),
---
> 
> 			Tk_Fill3DRectangle(tkwin, Tk_WindowId(tkwin),
2214c2200
< 			Tk_Fill3DRectangle(Tk_Display(tkwin), 
Tk_WindowId(tkwin),
---
> 			Tk_Fill3DRectangle(tkwin, Tk_WindowId(tkwin),
2240,2241c2226
< 	int vx, vy;
< 	unsigned int vw, vh;
---
> 	int vx, vy, vw, vh;
2325c2310
< 		Tk_Fill3DRectangle(dsPtr->display, Tk_WindowId(tkwin),
---
> 		Tk_Fill3DRectangle(dsPtr->tkwin, Tk_WindowId(tkwin),
2329c2314
< 		Tk_Fill3DRectangle(dsPtr->display, Tk_WindowId(tkwin),
---
> 		Tk_Fill3DRectangle(dsPtr->tkwin, Tk_WindowId(tkwin),
4. I compiled and linked the code. All worked fine (no warnings).
5. Finally I tried to use drag & drop, but pressing the right mouse button 
nothing happens.
What is wrong? Any idea.
I do not know if the problem is in the C code or in the scheme part (I have not 
changed it).
Can someone help me?
Thanks of all
Giorgio
PS: BLT 1.8 (for Tk 4.0) can be retrieved on:
	http://www.cs.uoregon.edu/~jhobbs/work/blt-1.8.tar.gz
	
-------------------------------------------------------------------------------
Giorgio Cesana                        |  SGS-THOMSON Microelectronics
phone   +39/39/603.6006               |  Central R&D - DAIS
fax     +39/39/603.5820               |  via C. Olivetti, 2
e-mail  giorgio_cesana.sgs-thomson.it |  20041 Agrate B.za (MI) - ITALY
Received on Fri Nov 03 1995 - 19:17:18 CET

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST