Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Xdialog weekly grid

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

  • DVSOL005
    replied
    Re: Xdialog weekly grid

    Indeed John, thanks for the example.

    The code now looks like:

    Code:
    {region}
    <%O={J=C,L}{I:'$$navigate.prev'} PREV%!prev>
    <%O={J=C,C}NEXT {I:'$$navigate.next'}%!next>
    {endregion};
    Weekview.PNG

    Leave a comment:


  • johnkoh
    replied
    Re: Xdialog weekly grid

    Jo,

    The idea was to change the NEXT button to have text "NEXT" followed by the image.
    Did you mean this

    Code:
    {region}
    <%O={J=C,L}{I:'$$navigate.prev'} PREV%!prev>
    <%O={J=C,C}{I:'$$navigate.next'} NEXT%!next>
    <%O={J=C,C}Button1 {I:'$$application.chrome'}%!event1>
    {endregion};

    Leave a comment:


  • DVSOL005
    replied
    Re: Xdialog weekly grid

    I just gave it a go and also wanted to change a button but, as I'm no XDialog expert, failed on that one.
    The idea was to change the NEXT button to have text "NEXT" followed by the image.
    Perhaps somebody else knows how to solve that one?

    Leave a comment:


  • Peter.Greulich
    replied
    Re: Xdialog weekly grid

    Ah, you've perfected it!

    Leave a comment:


  • DVSOL005
    replied
    Re: Xdialog weekly grid

    Improved alignment of boxes and text.
    Changed lines in blue.

    Code:
    dim xDlgHeader as p
    dim dlg_title as c 
    dim dlg_body as c 
    dim dlg_event as c
     xDlgHeader.HeadingText = " A weekly View    "
     xDlgHeader.Image = "a5v7_largeIcon"
     xDlgHeader.BodyText = <<%str%
    All in all finished
    %str%
    dlg_title = "A weeks view "
    vdate = date()-(dow(date())-1)
    vdaynum  = dow(date())-1
    vldate = vdate
    sun1 = vldate+7
    mon1 = vldate+1
    tue1 = vldate+2
    wed1 = vldate+3
    thu1 = vldate+4
    fri1 = vldate+5
    sat1 = vldate+6
    dlg_body = <<%dlg%
    'If you include the {removecomments} command, any line that starts with an single quote will be treated as a comment.
    {removecomments}
    {theme=xp}
    {background=white}
    '{can_exit=close}
    {startup=init}
    {stretch=}
    {stickto=top,right}
    {justify=right}
    <%B=N;I=$$window.button.minimize%!minimize><%B=N;I=$$window.button.close%!close>;
    {region=1};
    {image=logo}
    {endregion}
    {justify=center}
    {XdialogTitleSection=70,6xDlgHeader};;
    {lf};
    {blueframe=1,5: }
    
    {watch=vldate!change}
    
    {'%O={F=Arial,14}{C=Black}WEEK OF%} [.12mon1!change]_[.12sun1!change]  ;
    
    {region}
    <%B=T;O={J=C,C}{B=Orange}monday;OF={J=C,C}monday%10.8,1!mon>;
    {justify=top,center}[.12mon1!change]
    {endregion}
    
    {region}
    <%B=T;O={J=C,C}{B=Orange}tuesday;OF={J=C,C}tuesday%10.8,1!tue>;
    {justify=top,center}[.12tue1!change]
    {endregion}
    
    {region}
    <%B=T;O={J=C,C}{B=Orange}wednesday;OF={J=C,C}wednesday%10.8,1!wed>;
    {justify=top,center}[.12wed1!change]
    {endregion}
    
    {region}
    <%B=T;O={J=C,C}{B=Green}thursday;OF={J=C,C}thursday%10.8,1!thu>;
    {justify=top,center}[.12thu1!change]
    {endregion}
    
    {region}
    <%B=T;O={J=C,C}{B=Orange}friday;OF={J=C,C}friday%10.8,1!fri>;
    {justify=top,center}[.12fri1!change]
    {endregion}
    
    {region}
    <%B=T;O={J=C,C}{B=Orange}saturday;OF={J=C,C}saturday%10.8,1!sat>;
    {justify=top,center}[.12sat1!change]
    {endregion}
    
    {region}
    <%B=T;O={J=C,C}{B=Orange}sunday;OF={J=C,C}sunday%10.8,1!sun>;
    {justify=top,center}[.12sun1!change];;
    {endregion}
    
    {lf};
    {region}
    <%O={J=C,L}{I:'$$navigate.prev'} PREV%!prev>
    <%O={J=C,C}{I:'$$navigate.next'} NEXT%!next>
    {endregion};
    {lf};
    {region=a}
    {xmargin=1}{ymargin=1}
    {stretch=height,width}
    {stretch=}
    '{stickto=bottom,left}
    This is an indication of current vldate.value [.12vldate];{lf};
    {endregion};
    
    {condition_begin=vldate=date()}
    {justify=center}
    [.12vldate] {condition_end} <%O={J=C,C}{I:'$$code.execute'} Today%!today>;
    %dlg%
    dlg_event = <<%code%
     if a_dlg_button = "init" then
         a_dlg_button = ""
     end if
     
    if a_dlg_button = "next" then
     'a_dlg_button = ""
     button_xbasic = <<%code_string%
      vldate= vldate+7
      sun1 = vldate+7
      mon1 = vldate+1
      tue1 = vldate+2
      wed1 = vldate+3
      thu1 = vldate+4
      fri1 = vldate+5
      sat1 = vldate+6
      %code_string%
      evaluate_template(button_xbasic)
    end if
    if a_dlg_button = "prev" then
     'a_dlg_button = ""
     button_xbasic = <<%code_string%
      vldate=vldate -7
      sun1 = vldate+7
      mon1 = vldate+1
      tue1 = vldate+2
      wed1 = vldate+3
      thu1 = vldate+4
      fri1 = vldate+5
      sat1 = vldate+6
      %code_string%
      evaluate_template(button_xbasic)
    end if
     if a_dlg_button = "today" then
     'a_dlg_button = ""
     button_xbasic = <<%code_string%
      vdaynum  = dow(date())-1
      vldate = vdate+vdaynum
      vldate = date()-(dow(date())-1)
      sun1 = vdate+7
      mon1 = vdate+1
      tue1 = vdate+2
      wed1 = vdate+3
      thu1 = vdate+4
      fri1 = vdate+5
      sat1 = vdate+6
      %code_string%
      evaluate_template(button_xbasic)
      button_xbasic1 = <<%code_string%
      vldate = vdate+vdaynum
      %code_string%
      evaluate_template(button_xbasic1)  
    end if 
    if a_dlg_button = "close" then 
     ui_modeless_dlg_close(dlg_title)
    end if 
    if a_dlg_button = "init" then
            a_dlg_button = ""    
    end if
    if a_dlg_button = "minimize" then
        a_dlg_button = ""
        ui_dlg_minimize(dlg_title)
    end if
    if a_dlg_button = "sat" then 
     a_dlg_button = ""
     ui_msg_box("Your Choice","The day is Saturday and the date is  "+sat1)
    end if
    if a_dlg_button = "fri" then 
     a_dlg_button = ""
     ui_msg_box("Your Choice","The day is Friday and the date is  "+fri1)
    end if
    if a_dlg_button = "thu" then 
     a_dlg_button = ""
     ui_msg_box("Your Choice","The day is Thursday and the date is  "+thu1)
    end if
    if a_dlg_button = "wed" then 
     a_dlg_button = ""
     ui_msg_box("Your Choice","The day is Wednesday and the date is  "+wed1)
    end if
    if a_dlg_button = "tue" then 
     a_dlg_button = ""
     ui_msg_box("Your Choice","The day is Tuesday and the date is  "+tue1)
    end if
    if a_dlg_button = "mon" then 
     a_dlg_button = ""
     ui_msg_box("Back to the Grind!","The day is Monday and the date is  "+mon1)
    end if
    if a_dlg_button = "sun" then 
     a_dlg_button = ""
     ui_msg_box("Don't you ever rest!","Take a day off you deserved it..")
    end if
     
    %code%
    
    'Now, display the Xdialog.
    ui_modeless_dlg_box(dlg_title,dlg_body,dlg_event)

    Leave a comment:


  • martinwcole
    replied
    Re: Xdialog weekly grid

    run Peter's code from the interactiove window

    Leave a comment:


  • MoGrace
    replied
    Re: Xdialog weekly grid

    Waiting for a screenshot...

    Leave a comment:


  • martinwcole
    replied
    Re: Xdialog weekly grid

    kool beans daddy'o

    Leave a comment:


  • Peter.Greulich
    replied
    Re: Xdialog weekly grid

    I marked the code in red. Basically I moved the "watch" above the rest and put each date pair in their own regions along with a line break. I also changed the character length of the day text from 13 to 14.

    Leave a comment:


  • martinwcole
    replied
    Re: Xdialog weekly grid

    very good - what lines did you change?

    Leave a comment:


  • Peter.Greulich
    replied
    Re: Xdialog weekly grid

    Originally posted by martinwcole View Post
    has anyone figured out how to make the buttons and dates the same size and line them up properly
    Martin,

    I'm no xdialog expert and I just did this down & dirty:

    Code:
    dim xDlgHeader as p
    dim dlg_title as c 
    dim dlg_body as c 
    dim dlg_event as c
     xDlgHeader.HeadingText = " A weekly View    "
     xDlgHeader.Image = "a5v7_largeIcon"
     xDlgHeader.BodyText = <<%str%
     
    All in all finished
    %str%
    dlg_title = "A weeks view "
    vdate = date()-(dow(date())-1)
    vdaynum  = dow(date())-1
    vldate = vdate
    sun1 = vldate+7
    mon1 = vldate+1
    tue1 = vldate+2
    wed1 = vldate+3
    thu1 = vldate+4
    fri1 = vldate+5
    sat1 = vldate+6
    dlg_body = <<%dlg%
    'If you include the {removecomments} command, any line that starts with an single quote will be treated as a comment.
    {removecomments}
    {theme=xp}
    {background=white}
    '{can_exit=close}
    {startup=init}
    {stretch=}
    {stickto=top,right}
    {justify=right}
    <%B=N;I=$$window.button.minimize%!minimize><%B=N;I=$$window.button.close%!close>;
    {region=1};
    {image=logo}
    {endregion}
    {justify=center}
    {XdialogTitleSection=70,6xDlgHeader};;
    {lf};
    {blueframe=1,5: }
    
    
    {watch=vldate!change}
    
    
    {'%O={F=Arial,14}{C=Black}WEEK OF%} [.15mon1!change]-[.15sun1!change]  ;
    
    
    {region}
    <%B=T;O={J=C,C}{B=Orange}monday;OF={J=C,C}monday%14,1!mon>;
    [.15mon1!change]
    {endregion}
    
    
    {region}
    <%B=T;O={J=C,C}{B=Orange}tuesday;OF={J=C,C}tuesday%14,1!tue>;
    [.15tue1!change]
    {endregion}
    
    
    {region}
    <%B=T;O={J=C,C}{B=Orange}wednesday;OF={J=C,C}wednesday%14,1!wed>;
    [.15wed1!change]
    {endregion}
    
    
    {region}
    <%B=T;O={J=C,C}{B=Green}thursday;OF={J=C,C}thursday%14,1!thu>;
    [.15thu1!change]
    {endregion}
    
    
    {region}
    <%B=T;O={J=C,C}{B=Orange}friday;OF={J=C,C}friday%14,1!fri>;
    [.15fri1!change]
    {endregion}
    
    
    {region}
    <%B=T;O={J=C,C}{B=Orange}saturday;OF={J=C,C}saturday%14,1!sat>;
    [.15sat1!change]
    {endregion}
    
    
    {region}
    <%B=T;O={J=C,C}{B=Orange}sunday;OF={J=C,C}sunday%14,1!sun>;
    [.15sun1!change];;
    {endregion}
    
    
    {lf};
    
     <%O={J=C,C}{I:'$$navigate.prev'} PREV%!prev>
     
     <%O={J=C,C}{I:'$$navigate.next'} NEXT%!next> 
    {endregion};
    {lf};
    {region=a}
    {xmargin=1}{ymargin=1}
    {stretch=height,width}
    {stretch=}
    '{stickto=bottom,left}
    This is an indication of current vldate.value [.15vldate];
    {lf};
    {endregion};
    {condition_begin=vldate=date()}
    {justify=center}
    [.15vldate] {condition_end} <%O={J=C,C}{I:'$$code.execute'} Today%!today>;
    %dlg%
    dlg_event = <<%code%
     if a_dlg_button = "init" then
         a_dlg_button = ""
     end if
     
    if a_dlg_button = "next" then
     'a_dlg_button = ""
     button_xbasic = <<%code_string%
      vldate= vldate+7
      sun1 = vldate+7
      mon1 = vldate+1
      tue1 = vldate+2
      wed1 = vldate+3
      thu1 = vldate+4
      fri1 = vldate+5
      sat1 = vldate+6
      %code_string%
      evaluate_template(button_xbasic)
    end if
    if a_dlg_button = "prev" then
     'a_dlg_button = ""
     button_xbasic = <<%code_string%
      vldate=vldate -7
      sun1 = vldate+7
      mon1 = vldate+1
      tue1 = vldate+2
      wed1 = vldate+3
      thu1 = vldate+4
      fri1 = vldate+5
      sat1 = vldate+6
      %code_string%
      evaluate_template(button_xbasic)
    end if
     if a_dlg_button = "today" then
     'a_dlg_button = ""
     button_xbasic = <<%code_string%
      vdaynum  = dow(date())-1
      vldate = vdate+vdaynum
      vldate = date()-(dow(date())-1)
      sun1 = vdate+7
      mon1 = vdate+1
      tue1 = vdate+2
      wed1 = vdate+3
      thu1 = vdate+4
      fri1 = vdate+5
      sat1 = vdate+6
      %code_string%
      evaluate_template(button_xbasic)
      button_xbasic1 = <<%code_string%
      vldate = vdate+vdaynum
      %code_string%
      evaluate_template(button_xbasic1)  
    end if 
    if a_dlg_button = "close" then 
     ui_modeless_dlg_close(dlg_title)
    end if 
    if a_dlg_button = "init" then
            a_dlg_button = ""    
    end if
    if a_dlg_button = "minimize" then
        a_dlg_button = ""
        ui_dlg_minimize(dlg_title)
    end if
    if a_dlg_button = "sat" then 
     a_dlg_button = ""
     ui_msg_box("Your Choice","The day is Saturday and the date is  "+sat1)
    end if
    if a_dlg_button = "fri" then 
     a_dlg_button = ""
     ui_msg_box("Your Choice","The day is Friday and the date is  "+fri1)
    end if
    if a_dlg_button = "thu" then 
     a_dlg_button = ""
     ui_msg_box("Your Choice","The day is Thursday and the date is  "+thu1)
    end if
    if a_dlg_button = "wed" then 
     a_dlg_button = ""
     ui_msg_box("Your Choice","The day is Wednesday and the date is  "+wed1)
    end if
    if a_dlg_button = "tue" then 
     a_dlg_button = ""
     ui_msg_box("Your Choice","The day is Tuesday and the date is  "+tue1)
    end if
    if a_dlg_button = "mon" then 
     a_dlg_button = ""
     ui_msg_box("Back to the Grind!","The day is Monday and the date is  "+mon1)
    end if
    if a_dlg_button = "sun" then 
     a_dlg_button = ""
     ui_msg_box("Don't you ever rest!","Take a day off you deserved it..")
    end if
    
    
     
    %code%
    
    
    'Now, display the Xdialog.
    ui_modeless_dlg_box(dlg_title,dlg_body,dlg_event)
    Last edited by Peter.Greulich; 10-03-2013, 04:37 PM.

    Leave a comment:


  • martinwcole
    replied
    Re: Xdialog weekly grid

    has anyone figured out how to make the buttons and dates the same size and line them up properly

    Leave a comment:


  • NoeticCC
    replied
    Re: Xdialog weekly grid

    Wow that is great!!! I have GOT to start learning Xdialog!!!

    Leave a comment:


  • christobal
    replied
    Re: Xdialog weekly grid

    It was written in V9 for navigating through an xdialog embedded browse based upon a formated browse. The full version is in Hebrew which is a RTL direction language with the first day of the week being Sunday through to Friday and Saturday as the weekend day.So to post that wouldn't be much use to the majority of Develpopers on the forum. The {condition begin=} has been available since V6, according to the help files it can contain nested conditions. The full version included a (browse_card} object which is only available from V9.

    Leave a comment:


  • MikeC
    replied
    Re: Xdialog weekly grid

    Nice Chris, Thanks!

    This works great in version 8 and for the most part in version 5...I don't know about the versions 6, 7, or 9.

    Leave a comment:

Working...
X