surge-do.exe problem?

2006-10-18 Thread Takanobu Maekawa
Hi gurus.

Today I noticed that surge-do.exe processes don't decrease
although all applets has been exited.(even serge.exe has been exited.)

I made sure that all applets has been finished by
checking the applet manager of Curl control panel.

For example, please try to run the bellow applet again and again,
I wonder that you'll see the incleasing of the surge-do.exe processes
through the OS's task manager.

{curl 4.0 applet}
{curl-file-attributes character-encoding = shift-jis}

{View
|| Replace {Frame} with your code.
{Frame width = 8cm, height = 8cm},
visibility = normal,
{on WindowClose do
{exit}
}
}

my environment is curl 4.0,Windows XP SP2.

regards.
--maekawa



Re: surge-do.exe problem?

2006-10-18 Thread Takanobu Maekawa
Thanks Jamse.

 I have tried as what you said but I did not find any process named
 surge-do.exe in the windows task manager but surge-lab.exe.

Hm...
I tried to run the sample applet which I showed at the previous
mail again, then three processes which are surge.exe,surge-do.exe,
and surge-lab.exe began to run.

And then I shutdowned Surge by select shutdown button on Curl control
panel, only surge-do.exe has remained.

That seems stragne...


regards.
--maekawa


Can't communicate between applets through socket

2006-07-11 Thread Takanobu Maekawa
Hi all.

I want to send xml data from a parent applet to a child applet
through socket communication.


So, for experiment, I made 2 applets as bellow.
But they don't work at all...

As you see, send-to-local-app.dcurl tries to connect the port 6001
on localhost.
But CouldntConnectSocketException which says the attempt to connect
to the port 6001 was refused always happens.

This is my first experience to use both AppletData and Socket at
the same time and I have no idea to solve this problem at now.

Please tell me where is wrong.

 listner.dcurl --
{curl 4.0 applet}
{curl-file-attributes character-encoding = shift-jis}

{import * from CURL.IO.SOCKET}

{let listener:AcceptorTCPSocket = {AcceptorTCPSocket
  local-address = {SocketInetAddress
SocketInetAddress.local-host},
  local-port = 6001
  }
}

{define-proc {accept-handler e:AcceptableSocketEvent}:void
let sock:DataTCPSocket = {listener.accept}
let input:TranscodingTextInputStream = {TranscodingTextInputStream
   {sock.to-InputStream}}
{while false == input.end-of-stream? do
let c:char = {input.read-one}
{output c}
}
}

{do
{listener.add-event-handler
{on e:AcceptableSocketEvent do
{accept-handler e}
}
}

{if listener.open? then
{listener.close}
}

{listener.bind}
}

 send-to-local-app.dcurl --
{curl 4.0 applet}
{curl-file-attributes character-encoding = shift-jis}

{import * from CURL.ENGINE.BROWSER}
{import * from CURL.IO.SOCKET}

{let another-applet:AppletData = {AppletData
 null,
 {url listener.dcurl}
 }
}


{register-exit-proc {proc {}:void
{another-applet.destroy}
}
}

{do
let s:String = ABCDEFG
let bv:ByteVec = {ByteVec max-size = 7}

{encode-characters
s,
bv,
{get-character-encoding-by-name shift-jis}
}

{sleep 5s}

let sender:DataTCPSocket = {DataTCPSocket
   remote-address = {SocketInetAddress
SocketInetAddress.local-host},
   remote-port = 6001
   }
{sender.connect}

let output:DataSocketByteOutputStream = {sender.to-OutputStream}

{for i:int = 0 to 6 do
{output.write-one bv[i]}
}

{sender.shutdown DataSocketShutdownOption.input-output}
}



regards.
--Maekawa

***
To unsubscribe from this list, send a mail to:
mailto:[EMAIL PROTECTED]
To contact a human list administrator, send a mail to:
mailto:[EMAIL PROTECTED]
To recieve a list of other options for this list, send a mail to:
mailto:[EMAIL PROTECTED]



how to get EMBED's parameter?

2006-07-05 Thread Takanobu Maekawa
Hi all.
As I said before, I'm making a terminal emulater with Curl
just for interest.

Now I want to the frame which displays terminal console embeded in html.
I used EMBED tag and added some parameters such like encoding,
the url of the server connected from the terminal and so on...

But I noticed that I don't know how to get the parameters which
are written in EMBED tag with Curl and couldn't find in online help.

If you know, please tell me.

Regards.

--maekawa


***
To unsubscribe from this list, send a mail to:
mailto:[EMAIL PROTECTED]
To contact a human list administrator, send a mail to:
mailto:[EMAIL PROTECTED]
To recieve a list of other options for this list, send a mail to:
mailto:[EMAIL PROTECTED]



Re: How to make an applet that looks like a widget application?

2006-06-27 Thread Takanobu Maekawa
Hi all.

 I don't know how to explain so called widget's characteristics exactly
 but it seems to be able to have very freely drawn shape like skin mode
 of Windows Media Player.

Later I've noticed that I was too upset and maybe using graphical
objects which uses transparent background color will solve my question.
:-)

regards.
--maekawa


***
To unsubscribe from this list, send a mail to:
mailto:[EMAIL PROTECTED]
To contact a human list administrator, send a mail to:
mailto:[EMAIL PROTECTED]
To recieve a list of other options for this list, send a mail to:
mailto:[EMAIL PROTECTED]



Re: How to make an applet that looks like a widget application?

2006-06-27 Thread Takanobu Maekawa
Hi all.

 Later I've noticed that I was too upset and maybe using graphical
 objects which uses transparent background color will solve my question.
 :-)

When I tried with the bellow detached applet the View could not become
transparent.
---
{curl 4.0 applet}
{curl-file-attributes character-encoding = shift-jis}

{let v:View = {View
  background = Background.transparent,
  border-color = FillPattern.transparent,
  border-style = none,
  owner = null,
  decorations? = false,
  || Replace {Frame} with your code.
  {Frame width = 8cm, height = 8cm},
  visibility = normal,
  {on WindowClose do
  {exit}
  }
  }
}

{do
{v.show}
}
---

Is it right that changing View's transparency is not available ?

regards.

--maekawa


***
To unsubscribe from this list, send a mail to:
mailto:[EMAIL PROTECTED]
To contact a human list administrator, send a mail to:
mailto:[EMAIL PROTECTED]
To recieve a list of other options for this list, send a mail to:
mailto:[EMAIL PROTECTED]



about the architecture of applets and curl runtime

2006-06-17 Thread Takanobu Maekawa
Hi all.

To tell the truth, I have not really understood
the architecture of the thread model that Curl runtime
controls applets within itself.

I have thoutht that once applets are loaded to the runtime
the runtime makes additional threads for new applets,
then controls them.

Is that right?

If so, what happens when an applet has another applet within it
using AppletData and AppletGraphic ?
Does the both applets runs separatelly like a multithread application?

regards.
--maekawa

***
To unsubscribe from this list, send a mail to:
mailto:[EMAIL PROTECTED]
To contact a human list administrator, send a mail to:
mailto:[EMAIL PROTECTED]
To recieve a list of other options for this list, send a mail to:
mailto:[EMAIL PROTECTED]



ALT-TAB causes exception??

2006-02-02 Thread Takanobu Maekawa
Hi gurus,
thank you for every helps and supports.

Now I have a new problem:

As you know, you can change freely active applications
on the desktop with ALT-Tab key over and over again.

But I have noticed that changing active applications
with ALT-Tab sometimes cause an exception during a very
heavy task processing with Curl.

the following message is what I have saw:

Error: 内部エラー:Cannot direct a pointer grab to a Visual that is not
in a View

#0   GuiManager.grab-pointer (0x0470c3f5+241)
#1   MenuManager.begin-menu-traversal (0x0470bd81+145)
#2   MenuManager.begin-menu-traversal-from-root (0x0733a00f+19)
#3   MenuBar.handle-alt-key-release (0x07339feb+123)
#4   FocusManagerState.handle-alt-key-release (0x07339f5f+23)
#5   GuiManager.on-key-event (0x073339a8+396)
#6   KeyEvent.fire-methods (0x07333802+18)
#7   RawKeyEvent.fire-methods (0x073337e4+28)
#8   RawKeyRelease.fire-methods (0x0733521c+28)
#9   GuiEventTarget.handle-event (0x023d876f+63)
#10  GuiManager.handle-event (0x046ff217+67)
#11  GuiManager.fire-host-event (0x046ff1c8+200)
#12  GuiManager.inject-host-event (0x046ff014+52)
#13  View.dispatch-host-event (0x03b0d826+62)
#14  [{proc} inside View.window-event-handlers] (0x073351e7+87)
#15  closure_raw_handler (0x003c1432+26)
#16  EventTarget.handle-event (0x023d8547+175)
#17  Window.handle-event (0x023d7796+102)
#18  EventQueue.dispatch-entry (0x023d76bf+111)
#19  EventQueue.dispatch-events-aux-aux (0x01f47380+112)
#20  EventQueue.dispatch-events-aux (0x0191bd58+64)
#21  EventQueue.dispatch-events (0x0191bc6f+151)
#22  dispatch-events (0x0191bb9d+53)
#23  event-loop (?) (0x0191bb55+9)
#24  run-applet (0x023fcb34+120)
#25  ProcessRunnable.run-bound-proc (0x0190c1bb+1031)
#26  ProcessRunnable.run (0x0190bdae+10)
#27  curl-thread-really-really-call-run-in-runnable (0x0190bd86+18)
#28  curl-thread-really-call-run-in-runnable (0x01907cd9+233)

As usual, I cannot understand what the stacktrace means
Please tell me what it says, and when this exception occurs
generally.

My environment:Curl4 Japanese, Windows2000/XP.

Regards.

--Takanobu Maekawa

***
To unsubscribe from this list, send a mail to:
mailto:[EMAIL PROTECTED]
To contact a human list administrator, send a mail to:
mailto:[EMAIL PROTECTED]
To recieve a list of other options for this list, send a mail to:
mailto:[EMAIL PROTECTED]



Too big size Drawable??

2006-01-21 Thread Takanobu Maekawa
Hi gurus,

I have tried to open meny windows as possible in my applet
(the applet has over 40 windows...), then a error occurs.

It says:

SurfaceTooLargeException: Drawable 表面 (1008 x 708) はサイズが大きすぎ
るため作成されませんでした。

#0   SurfaceTooLargeException.throw (0x0b4d5f85+33)
#1   GdiInternalDrawable.create-bitmap (0x01f36b18+296)
#2   GdiInternalDrawable.default (constructor) (0x01f36830+64)
#3   low-create-offscreen-drawable (0x01f36529+57)
#4   Drawable.create-offscreen (0x01f364ae+238)
#5   PartialUpdateWindow.new-back-buffer (0x01f36277+383)
#6   PartialUpdateWindow.refresh-back-buffer (0x024c33d9+105)
#7   PartialUpdateWindow.resize-back-buffer (0x024c335d+45)
#8   PartialUpdateWindow.internal-handle-event (0x024c1fa4+44)
#9   Window.handle-event (0x024c1f27+79)
#10  EventQueue.dispatch-entry (0x024c1e67+111)
#11  EventQueue.dispatch-events-aux-aux (0x01a0f9e4+112)
#12  EventQueue.dispatch-events-aux (0x01a0ee60+64)
#13  EventQueue.dispatch-events (0x01a0ed47+151)
#14  dispatch-events (0x01a0ec75+53)
#15  event-loop (?) (0x01a0ec31+9)
#16  run-applet (0x02ba5ee0+120)
#17  ProcessRunnable.run-bound-proc (0x01a0bdbb+1031)
#18  ProcessRunnable.run (0x01a0b9ae+10)
#19  curl-thread-really-really-call-run-in-runnable (0x01a0b986+18)
#20  curl-thread-really-call-run-in-runnable (0x01a08029+233)


As you see, it says Drawable is too big and cannot be created,
but I can not have an idea that what made it.

Please tell me when does this stacktrace happen generally
or any situations that can make this situation.

My environment: Curl ver.4 Japanese, Windows 2000/XP.

Regards.

--Maekawa


***
To unsubscribe from this list, send a mail to:
mailto:[EMAIL PROTECTED]
To contact a human list administrator, send a mail to:
mailto:[EMAIL PROTECTED]
To recieve a list of other options for this list, send a mail to:
mailto:[EMAIL PROTECTED]



MenuManager and MenuItem.get-prev

2005-12-08 Thread Takanobu Maekawa
Hi gurus.

I have a problem with a highly customized componet
utilizing MenuBar and SubMenus.

Now I know there is a serious bug that exception
which says it cannot to be empty in MenuItem occurs
whenever pressing any arrow kews (left,right,up or down arrow key)
while placing mouse on the menu items.

I have seen at IDE's callstack that shows like bellow:

#0 MenuItem.get-prev ??:??
#1 [{proc} inside MenuManager.process-left-right-arrow-key-press] ??:??
#2 closure_raw_handler ??:??
#3 MenuManager.next-prev-item-in-traversal ??:??
#4 MenuManager.process-left-right-arrow-key-press ??:??
#5 MenuManager.process-key-press ??:??
#6 FocusManagerState.dispatch-key-event ??:??
#7 FocusManagerState.give-event ??:??
#8 View.dispatch-event-to-contents ??:??
#9 GuiManager.fire-event-in-view ??:??
#10 GuiManager.on-key-event ??:??
#11 KeyEvent.fire-methods ??:??
#12 KeyPress.fire-methods ??:??
#13 GuiEventTarget.handle-event ??:??
#14 GuiManager.handle-event ??:??
#15 GuiManager.fire-host-event ??:??
#16 GuiManager.inject-host-event ??:??
#17 View.dispatch-host-event ??:??
#18 [{proc} inside View.window-event-handlers] ??:??
#19 closure_raw_handler ??:??
#20 EventTarget.handle-event ??:??
#21 Window.handle-event ??:??
#22 EventQueue.dispatch-entry ??:??
#23 EventQueue.dispatch-events-aux-aux ??:??
#24 EventQueue.dispatch-events-aux ??:??
#25 EventQueue.dispatch-events ??:??
#26 dispatch-events ??:??
#27 event-loop (?) ??:??
#28 run-applet ??:??
#29 ProcessRunnable.run-bound-proc ??:??
#30 ProcessRunnable.run ??:??
#31 curl-thread-really-really-call-run-in-runnable ??:??
#32 curl-thread-really-call-run-in-runnable ??:??
#33 curl-thread-call-run-in-runnable ??:??
#34 [EMAIL PROTECTED] ??:??
#35 不明なプロシージャ ??:??

Quickly I feel MenuManager and MenuItem.get-prev method are important
to understand the problem but cannot find them in online help
although having been looking for them.

Can Anybody tell about them?
Please help.

# environment: Curl 4 Japanese edition
# OS: Windows XP/2000

regards.

--Maekawa

***
To unsubscribe from this list, send a mail to:
mailto:[EMAIL PROTECTED]
To contact a human list administrator, send a mail to:
mailto:[EMAIL PROTECTED]
To recieve a list of other options for this list, send a mail to:
mailto:[EMAIL PROTECTED]



How to avoid ctrl-F (or ctrl-XXX)

2005-12-06 Thread Takanobu Maekawa
Hi gurus,

How can View,Dialog or any controls deny ctrl-F or ctrl-XXX
(ex. ctrl-A, ctrl-c)?

I use Curl4 and made a detached applet,
then pless the avobe key combination.
Especially, search dialog shown was very surprizing
with pressing ctrl-F when I placeed the mouse pointer
anywhere on the View window.

I want for the View,Dialog(and every controls on it) to
deny the ctrl key combination events.

If you know how to avoid this problem,
please tell me.

regards.

--Maekawa

***
To unsubscribe from this list, send a mail to:
mailto:[EMAIL PROTECTED]
To contact a human list administrator, send a mail to:
mailto:[EMAIL PROTECTED]
To recieve a list of other options for this list, send a mail to:
mailto:[EMAIL PROTECTED]



Re: WindowClose event problem with Dialog class

2005-10-16 Thread Takanobu Maekawa
Thanks Freidger and Duke.

Now I have understood that I had look at the Curl ver.4's
IDE online help and tested with Curl ver.3 applet  :-)

Regards.

--Maekawa

-
Takanobu Maekawa
e-mail:[EMAIL PROTECTED]
CANSOFT,INC.Tel:044(969)9747 Fax:044(969)9748
http://www.cansoft.co.jp/


***
To unsubscribe from this list, send a mail to:
mailto:[EMAIL PROTECTED]
To contact a human list administrator, send a mail to:
mailto:[EMAIL PROTECTED]
To recieve a list of other options for this list, send a mail to:
mailto:[EMAIL PROTECTED]



Re: Get the biggest font size within a rectangle area

2005-07-26 Thread takanobu maekawa

Hi gurus,

I have found DisplayContext class
and wonder I can somehow do this with it... :-D

thanks.

--Takanobu Maekawa


At 18:29 05/07/25 +0900

Hi gurus,

Now I cannot find the way to get the biggest font size
of a character within a rectangle area.

For example, when the rectangle's width = 10pt and height = 5pt,
the biggest font size is simply 5pt.

Ofcourse this example is too simple to apply for the real programming.
At least, there are 2 font types.
i.e. proportional font and non-proportional font.

I know such font calcuration is possible with VC,
but with Curl, have not found the way to do that.

If you know or can advice about this issue,
please tell me.

Regards.

--Takanobu Maekawa

-
e-mail:[EMAIL PROTECTED]
CANSOFT,INC.Tel:044(969)9747 Fax:044(969)9748
http://www.cansoft.co.jp/

***
To unsubscribe from this list, send a mail to:
mailto:[EMAIL PROTECTED]
To contact a human list administrator, send a mail to:
mailto:[EMAIL PROTECTED]
To recieve a list of other options for this list, send a mail to:
mailto:[EMAIL PROTECTED]



***
To unsubscribe from this list, send a mail to:
mailto:[EMAIL PROTECTED]
To contact a human list administrator, send a mail to:
mailto:[EMAIL PROTECTED]
To recieve a list of other options for this list, send a mail to:
mailto:[EMAIL PROTECTED]



[Help!] import-package trouble

2005-06-25 Thread Takanobu Maekawa
Hi gurus,

I have a serious trouble with import-package macro.
It suddenly dose not work at all.

I use the way shown by Christopher Barber on a subject
[Question]Can functions ? on 25 Apr.

Now when I use this macro,
the codes after the line called import-package never executed,
but no exception or error has come.
So I can know what's wrong.

I want to find any small hint about it.
So let me ask about details of import-package.

As you know, the interface is:

{import-package
selector:ComponentSelector,
manifest:ComponentManifest =
{get-default-manifest},
source-info:#SourceLocation = null,
jit-ok?:bool = true
}:Package

I wonder that 'manifest' and 'source-info' can be key point.
but reading online help can make sence to me.
the descriptions are too difficult for me and no example is too hard.

Please tell me about details of import-package,
and hopefully make-package-selector too.

Regards.
--Takanobu Maekawa


***
To unsubscribe from this list, send a mail to:
mailto:[EMAIL PROTECTED]
To contact a human list administrator, send a mail to:
mailto:[EMAIL PROTECTED]
To recieve a list of other options for this list, send a mail to:
mailto:[EMAIL PROTECTED]



Re: Set and Get the window position with Desktop Window's coordinates

2005-05-26 Thread Takanobu Maekawa

thanks Mike.
I'm sorry to use the vague explain about this issue.
First of all,to tell you exactly what I'm aflaid,
I should have shown the sample code .

Please see the sample bellow.

{curl 3.0 applet}
{import * from CURL.GUI.BASE}
{import * from CURL.GUI.CONTROLS}

{let x:Distance = 0m}
{let y:Distance = 0m}
{let pos-saved?:bool = false}

{define-class public AAA {inherits Dialog}

  field protected box:VBox = {VBox}
  field protected fld:TextDisplay = {TextDisplay}
  field btn:CommandButton = {CommandButton label=save this posision}

  {constructor public {default}
{construct-super}
{self.box.add self.fld}
{self.box.add self.btn}
{self.add self.box}
{self.btn.add-event-handler
  {on Action do
set (x,y) = {{self.get-view}.get-position}
set self.fld.value = {String X:  x  m Y:  y  m}
set pos-saved?=true
  }
   }
 }
}

{define-class public BBB {inherits Dialog}
  field protected a:AAA = {AAA}
  field protected btn:CommandButton = {CommandButton label=Show AAA}
  field protected frame:Frame = {Frame}

  {constructor public {default}
{construct-super}
{self.add self.frame}
{self.frame.add self.btn}
{self.btn.add-event-handler
  {on Action do
{self.a.show}
{if pos-saved? == true then
  {{self.a.get-view}.set-position x,y}
}
  }
}
  }
}

{HBox
spacing=3pt,
{CommandButton label=Show AAA,
{on Action do
let a:AAA = {AAA}
{a.show modal?=false}
{if pos-saved? == true then
{{a.get-view}.set-position x,y}
}
}
},
{CommandButton label=Show BBB,
{on Action do
let b:BBB = {BBB}
{b.show modal?=false}
}
}
}
-

using this code, I did the bellow:

1. pushed Show AAA button, then it made dialog AAA shown.

2. Then moveed the dialog another place in desktop

3. pushed save this position button on dialog AAA.

4. pushed Show BBB button, then it made dialog BBB shown.

5. pushed Show AAA button on dialog BBB, expecting new dialog AAA
shown at the same place to the dialog which moved at step 2.

6. but I saw the new dialog AAA shown above dialog BBB.
That was not what I want to do.

If you know this reason or how to do what I want to do, please tell me.

Regards

-Takanobu Maekawa



***
To unsubscribe from this list, send a mail to:
mailto:[EMAIL PROTECTED]
To contact a human list administrator, send a mail to:
mailto:[EMAIL PROTECTED]
To recieve a list of other options for this list, send a mail to:
mailto:[EMAIL PROTECTED]