Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: Problem with Request Dialog Box
Pages: [1] Print
Author Topic: Problem with Request Dialog Box  (Read 361 times)
newbie
Guest


Email
Problem with Request Dialog Box
« on: October 25, 2005, 04:14:40 AM »

In VB it is possible to change the caption of a dialog box, is it possible with Rebol because I can't see anywhere to do so.

Then would I need to create my own dialog box just to do that ?
Logged
CarlRead
Full Member
***
Offline Offline

Posts: 105


View Profile
Problem with Request Dialog Box
« Reply #1 on: October 26, 2005, 02:22:25 AM »

No, it would seem you can't change the dialog text.

If you look at the source for REQUEST though, you'll see it uses INFORM to display the window, and this is what the source of INFORM looks like...
Code:
>> source inform
inform: func [
   {Display an exclusive focus panel for alerts, dialogs, and requestors.}
   panel [object!]
   /offset where [pair!] "Offset of panel"
   /title ttl [string!] "Dialog window title"
   /timeout time
][
   panel/text: copy any [ttl "Dialog"]
   panel/offset: either offset [where] [system/view/screen-face/size - panel/size / 2]
   panel/feel: system/view/window-feel
   show-popup panel
   either time [if none? wait time [hide-popup/timeout]] [do-events]
]
So, as a workaround, you could try...
Code:
>> title: second fourth second :inform
== "Dialog"
>> insert clear title "New title!"
== ""
>> request "Test"
== false
>> insert clear title "Another title!"
== ""
>> request "Test"
== false
(The "false"s there are just the result of me closing the request window.)

Cludgy, but quicker than writing your own requests! :-)

Not tested it on the other requests though...
Code:
>> ? "request"
Found these words:
  local-request-file native! Creates an OS-specific file requester
  request         function! Requests an answer to a simple question.
  request-color   function! Requests a color value.
  request-date    function! Requests a date.
  request-dir     function! Requests a directory using a popup list.
  request-download function! Request a file download from the net. Show progres...
  request-file    function! Requests a file using a popup list of files and di...
  request-list    function! Requests a selection from a list.
  request-pass    function! Requests a username and password.
  request-text    function! Requests a text string be entered.
« Last Edit: October 26, 2005, 02:26:23 AM by CarlRead » Logged

- Carl Read
Pages: [1] Print 
Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: Problem with Request Dialog Box
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 21, 2008, 06:13:01 AM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2290 Posts in 593 Topics by 3742 Members
Latest Member: CorHorgeExpex

  Rebol Talk Forum | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.

RT design by Defiant Pc