Announcement

Collapse
No announcement yet.

Force Page1 redraw on Dialog close

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Automan
    replied
    Hi Herrin,

    Thanks for adding to this, I would have marked it solved with the previous answers, but wanted to see
    what you attached, I just get an FLV file from that zip package. Is that what you intended ?
    Many thanks

    Leave a comment:


  • herrin
    replied
    Originally posted by daviz View Post
    Herrin, the exe does not open:
    Error: Could not find data file
    David


    application work fine
    it was packed and evidently your antivirus recognizes it as a false positive ....
    disable it temporarily



    Leave a comment:


  • daviz
    replied
    Originally posted by herrin View Post
    topic cited (similar request) and solved in this way by other site


    [ATTACH=CONFIG]n304516[/ATTACH]



    Color Blind
    Herrin, the exe does not open:

    Error: Could not find data file

    Is there any way to check the apz?

    David

    Leave a comment:


  • herrin
    replied
    topic cited (similar request) and solved in this way by other site


    Click image for larger version

Name:	screen.PNG
Views:	47
Size:	18.0 KB
ID:	304516



    Color Blind

    Leave a comment:


  • Automan
    replied
    You guys are all the best !

    I was determined to close dialog and send result back on close.
    For some reason I was not focusing on requesting the string result on the
    dialog initiation....

    Special thanks for the apz's, BioHazard, CharlieChaps and Daviz !


    Kicked my brain back on the right path.. lol..

    I'll make sure to tell Dialogs in future to make sure they tell me
    their variables onclose, at launch !


    Leave a comment:


  • BioHazard
    replied
    @charliechaps
    Well, there's some synchronicity for ya' - same solution (almost) posted just 17 mins apart.
    Great minds must think alike!

    Leave a comment:


  • BioHazard
    replied
    Done.
    Nb.
    Suggest you substitute your Label with a Paragraph, though - so it stays centered.
    Attached Files

    Leave a comment:


  • charliechaps
    replied
    Try This
    DialogLabel_Return_PageFixed.apz
    Cheers

    Leave a comment:


  • Automan
    replied
    Thanks guys.. but I don't think it covers exactly what I'm trying.
    I created the 5 second example.
    Main page launches dialog, a color needs to be selected on the dialog
    graphic via hotspot.
    Label1 on Page1 should be refreshed to show that selection.

    All elements are required. Hotspots, dialog to be smaller than Page1,
    Images.

    Im doing some image mapping on the dialog and want result shown on Page1
    via simple text label. I did not include all methods I have tried, To me
    if I could simply refresh page1 after dialog close, it would all work as global
    variable "color" would set label1.

    Hope that helps
    DialogLabel_Return_Page.apz


    Leave a comment:


  • daviz
    replied
    Originally posted by charliechaps View Post
    Hi Automan ,
    Not exactly sure what you are trying to do , as you have proovided NO CODE to check but
    try this [ATTACH]n304484[/ATTACH]
    Cheers
    charliechaps

    that works great! better than my solution

    David Ramirez

    Leave a comment:


  • daviz
    replied
    hi Automan
    I have been using a simple "technique" to refresh a page when closing a Dialog. It works for me so I hope this helps. (See attachment)

    Basically, when you click "Cancel" in the Dialog nothing happens, it just closes...but if you click "OK" then the Dialog closes and page "refresh".

    My language is Spanish so most comments are in Spanish :/

    David Ramirez
    Attached Files

    Leave a comment:


  • charliechaps
    replied
    Hi Automan ,
    Not exactly sure what you are trying to do , as you have proovided NO CODE to check but
    try this DialogsExample.apz
    Cheers

    Leave a comment:


  • Automan
    replied
    Many thanks for reply telco, I thought that might work !
    AMS however is spitting up errors unfortunately, attempting to
    index nil values, global errors etc. Almost seems like a bug...
    Lots of unhappy main chunk

    I'm also thinking now, my original thought of putting a timer on page 1 may not work either, as timer most likely dies
    when the dialog takes over.. Waiting for the choruses of why would you want to action an event on an
    object when you cant see Page 1 (or it no longer has focus) but in this case you most definitely want
    to see Page 1 and the dialog. I've successfully passed object variables to dialogs on launch,
    (set the variable on transistion, then load variable on show) but it seems
    going back the other way, the same rules don't work ?

    Leave a comment:


  • telco
    replied
    How about Application.SetRedraw(true)

    Leave a comment:


  • Automan
    started a topic Force Page1 redraw on Dialog close

    Force Page1 redraw on Dialog close

    As per subject heading.
    Without using a timer on Page1 to check for a changed variable,
    how do we force Page1 to refresh after a Dialog close ?

    I don't want to hide Page1 on Dialog launch as the dialog is
    designed to appear within Page1...

    Onclose (page.redraw) - On dialog
    Onshow(page.redraw) - On page1

    These don't appear to help in this scenario.

    I understand why, but is there a way around this ?


Working...
X