Alpha Video Training
Results 1 to 2 of 2

Thread: Xdialogs are not objects? And you can't point to them?

  1. #1
    "Certified" Alphaholic Mike Wilson's Avatar
    Real Name
    mike wilson
    Join Date
    Apr 2005
    Location
    Grand Rapids, Michigan
    Posts
    4,212

    Default Xdialogs are not objects? And you can't point to them?

    I was trying to write a script to detect the presence of an open modeless Xdialog box using is_obj(). The docs have a list of 'supported object types' and dialogs are not on this list, yet I didn't quite understand things on the list like Join and Append (aren't those operations?) Can someone please confirm that open dialog boxes cannot be pointed to as an object?

    Thanks.

    Code:
    ui_modeless_dlg_box("Message1",<<%dlg%
    {font=Arial,10}
    {position=3,2}
    {size=3}
    This MODELESS BOX is named "Message1"
    %dlg%)
    
    ui_dlg_box("Message2",<<%dlg%
    {font=Arial,10}
    {position=3,3)
    {size=3}
    When this MODAL box is closed the remainder of the script tries to detect the modeless dialog box
    %dlg%)
    
    dim ptr as P
    dim vFlag as L
    
    ptr = obj("ui_modeless_dlg_box("Message1")")
    vflag = IS_object(ptr)
    
    if vFlag = .F. then	
    	msgbox("Notice", "The Box: 'Message' is not an object")
    else
    	msgbox("Notice", "The Box: 'Message' is an object")
    end if
    Last edited by Mike Wilson; 03-23-2007 at 12:34 PM.
    Mike W
    __________________________
    "I rebel in at least small things to express to the world that I have not completely surrendered"

  2. #2
    "Certified" Alphaholic Mike Wilson's Avatar
    Real Name
    mike wilson
    Join Date
    Apr 2005
    Location
    Grand Rapids, Michigan
    Posts
    4,212

    Default Re: Xdialogs are not objects? And you can't point to them?

    I found ui_modeless_dlg_exist("dialog_name") to cover this.
    Mike W
    __________________________
    "I rebel in at least small things to express to the world that I have not completely surrendered"

Similar Threads

  1. Point to Folder
    By Duane Pederson in forum Application Server Version 8
    Replies: 4
    Last Post: 03-16-2007, 06:03 PM
  2. Menu's/Toolbars in XDialogs?
    By dvenus in forum Alpha Five Version 7
    Replies: 4
    Last Post: 12-24-2006, 11:29 PM
  3. Sound and Xdialogs - Where/what is the sound for Warning symbol (!)?
    By Mike Wilson in forum Alpha Five Version 7
    Replies: 5
    Last Post: 11-29-2006, 04:01 AM
  4. Modal vs. Modeless Xdialogs
    By Tom Cone Jr in forum Alpha Five Version 7
    Replies: 2
    Last Post: 08-14-2006, 12:00 AM
  5. Style Sheets on xdialogs
    By BRIAN GRAY in forum Alpha Five Version 5
    Replies: 1
    Last Post: 07-31-2004, 07:10 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •