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 Parent Tab and Sub-Tabs

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

  • xDialog Parent Tab and Sub-Tabs

    Hi All,

    I want to create the many parent-tabs with sub-tabs xdialog. The Sub-Tabs are overlaped with previous variables and
    not able to get refresh or remove it.

    Code:
    dim dlg_body as c 
    dim dlg_event as c 
    
    dlg_body = <<%dlg%
    {background=gray}
    {xmargin=4,4}
    {region}
    I have two tabs for parent;
    ;;
    {tab=%S=Subtle%Updown!Page_changed}
    {pane=top}
    {region1}
    	{lf};
    	want to see the child tabs at inside of the parent tabs;
    	{lf};
    	
    	{tab=%S=tabband;j=t%page1}
    	{pane=Address}
    		{region2}
    		{lf};
    		First name:| [.32firstname] ;
    		Last name:| [.32lastname] ;
    		Address:| [.32address1] ;
    		City:| [.32City] ;
    		State:| [State] ;
    		Zip:| [Zip];
    		{endregion2};	
    			
    	{pane=Payment}
    		{region2}
    		{lf};
    		Credit card:| [.32card] ;
    		Number:| [.32number] ;
    		Expiration :| [.32expiration] ;
    		{endregion2};	
    	{endtab};	
    {endregion1};
    	
    {pane=botton}
    {lf};
    {region1}
    	want to see the child tabs and tabs are shown at botton,;
    	under the parent tabs;
    	{lf};
    
    		{region4}
    		I do not have the Tab variables at here. How to refresh it? ;
    	
    		{endregion4};
    	
    
    	
    {endregion1};
    
    {endtab};
    
    {lf};
    space at botton;
    {endregion};
    %dlg%
    
    
    dim dlg_body_main as c 
    dlg_body_main = <<%dlg%
    {region}
    {wrap=100}
    Place the tab buttons at the top, bottom, left or right of the tab object.
    
    {lf};
    {endregion};
    %dlg% + dlg_body + <<%dlg%
    ;
    {lf};
    <View example using Tabband Style!tabband> <View example using SubtleTab style!subtle>;
    %dlg%
    
    
    dlg_event = <<%code%
    if a_dlg_button ="page_changed" then
    	ui_dlg_refresh("Advanced Tab Examples")
        a_dlg_button =""
    end if
    if a_dlg_button = "tabband" then 
    	a_dlg_button = ""
    	dim dlg_body2 as c 
    	dlg_body2 = stritran(dlg_body,"S=styled","S=tabband")
    	ui_dlg_box("TabBand Examples",dlg_body2)
    end if
    
    if a_dlg_button = "subtle" then 
    	a_dlg_button = ""
    	dim dlg_body2 as c 
    	dlg_body2 = stritran(dlg_body,"S=styled","S=subtletab")
    	ui_dlg_box("SubtleTab Examples",dlg_body2)
    end if  
    %code%
    
    ui_dlg_box("Advanced Tab Examples",dlg_body_main,dlg_event)
    tab_and_tab2.jpg

    The first tab,"Top" and it's Sub-Tabs is fine.

  • #2
    Re: xDialog Parent Tab and Sub-Tabs

    You might want to try expanding your explanation of what you want to do. I've read it five times and can't make any sense of it.
    There can be only one.

    Comment


    • #3
      Re: xDialog Parent Tab and Sub-Tabs

      Hi Stan,

      I want to have the "Sub-Tabbed" inside of the "Parent-Tabbed".

      I can create the tabbed and it's simple contents (no sub-tabbed) without problem.
      My problem is, when I added the "Sub-Tabbed" under a "Parent-Tabbed", the xdialog is shown as overlay (the "Sub-Tabbed" is located at each pages) each other.

      Code:
      dim dlg_body as c 
      dim dlg_event as c 
      
      
      ui_dlg_box("Advanced Tab Examples",<<%dlg%
      {region}
      {wrap=100}
      Place the tab buttons at the top, bottom, left or right of the tab object.
      
      {lf};
      {endregion};
      
      
      {background=gray}
      {xmargin=4,4}
      {region}
      I have two tabs for parent;
      ;;
      {tab=%S=Subtle%Updown!Page_changed}
      {pane=top}
      	{region}
      	{lf};
      	Show the child tabs at inside of the parent-tabs;{endregion};
      	{lf};
      	{region1}
      	{tab=%S=tabband;j=t%page1}
      	{pane=Address}
      		{lf};
      		First name:| [.32firstname] ;
      		Last name:| [.32lastname] ;
      		Address:| [.32address1] ;
      		City:| [.32City] ;
      		State:| [State] ;
      		Zip:| [Zip];
      			
      	{pane=Payment}
      		{lf};
      		Credit card:| [.32card] ;
      		Number:| [.32number] ;
      		Expiration :| [.32expiration] ;
      	{endtab};	
      	{endregion};
      	
      {pane=botton}
      	{lf};
      	{region}want to see the child tabs and tabs are located at botton,;{endregion};
      	{region3}
      	Insert tab contents here later;	
      	{endregion};
      	
      {pane=extra}
      	{lf};
      	{region}This is the 3rd tab; {endregion};
      	{region3}
      		City:| [.32City] ;
      		State:| [State] ;
      		Zip:| [Zip];
      	{endregion};	
      	
      {pane=More and more }
      	{region4}
      	{lf};
      	This is the 4th tab;
      		First name:| [.32firstname] ;
      		Last name:| [.32lastname] ;
      		Address:| [.32address1] ;
      	{endregion};	
      {endtab};
      {endregion};
      
      {region}
      {lf};
      space at botton;
      {endregion};
      %dlg%,<<%code%
      if a_dlg_button ="page_changed" then
      	ui_dlg_refresh("Advanced Tab Examples")
          a_dlg_button =""
      end if
      %code%)


      and I have attached new sample with "Tabband" function and This is what I need. However, I do not like to using "Tabband" function because I cannot hide a "TAB" and not able to see the Tab-Frame.
      Code:
      dim tabList as c 
      dim tb as p
      dim tb.events as p
      tb.events.init = "tabInit"   'Fires when the tab band is initialized (after the Xdialog is loaded)
      tb.events.change = "tabChangeStart"  'Fires on mouse down
      tb.events.completechange = "tabChangeComplete"   'Fires on mouse up
      tb.events.close = ""
      tb.events.rClick = "tabRClick"
      tb.leftPadding = 0
      
      tabList = comma_to_crlf("One,Two,Three")
      tabIcons = comma_to_crlf("$$generic.orb.blue,$$generic.orb.red,$$generic.orb.green")
      dim initialTabIndex as n = 2 
      
      dim currentTabNumber as n
      currentTabNumber = initialTabIndex
      tb_PreviousTab = initialTabIndex
      
      
      dim flagCanChangeTab as l = .t.
      dim flagTabsHaveIcons as l = .t.
      dim flagDirty as l = .f.
      
      
      dim tabLabel as c 
      
      
      ui_dlg_box("TabBand Example",<<%dlg%
      
      
      {lf};
      
      {tabBand=%O={@@}%80,.26"tb};
      
      {condition_begin=tb.tab=1}
      	{region}
      	This is tab 1's contents.;
      	{lf};
      	Tip: Try right clicking on each of the tabs.;
      	{tab=%S=tabband;j=r%page1}
      	{pane=Address}
      		{lf};
      		First name:| [.32firstname] ;
      		Last name:| [.32lastname] ;
      		Address:| [.32address1] ;
      		City:| [.32City] ;
      		State:| [State] ;
      		Zip:| [Zip];
      			
      	{pane=Payment}
      		{lf};
      		Credit card:| [.32card] ;
      		Number:| [.32number] ;
      		Expiration :| [.32expiration] ;
      		
      	{endtab};
      	{endregion}
      {condition_end}
      
      
      {condition_begin=tb.tab=2}
      {start_pos}
      	{region}
      	This is tab 2's contents.;
      	{tab=%S=tabband;j=B%page1}
      	{pane=Address}
      		{lf};
      		First name:| [.32firstname] ;
      		Last name:| [.32lastname] ;
      		Address:| [.32address1] ;
      		City:| [.32City] ;
      		State:| [State] ;
      		Zip:| [Zip];
      			
      	{pane=Payment}
      		{lf};
      		Credit card:| [.32card] ;
      		Number:| [.32number] ;
      		Expiration :| [.32expiration] ;
      		
      	{endtab};	
      	{endregion}
      {condition_end}
      
      
      {condition_begin=tb.tab=3}
      {start_pos}
      	{region}
      	This is tab 3's contents.;
      	{tab=%S=tabband;j=t%page1}
      	{pane=Address}
      		{lf};
      		First name:| [.32firstname] ;
      		Last name:| [.32lastname] ;
      		Address:| [.32address1] ;
      		City:| [.32City] ;
      		State:| [State] ;
      		Zip:| [Zip];
      			
      	{pane=Payment}
      		{lf};
      		Credit card:| [.32card] ;
      		Number:| [.32number] ;
      		Expiration :| [.32expiration] ;
      		
      	{endtab};	
      	{endregion}
      {condition_end}
      ;
      {lf};
      {lf};
      {line=1,0};
      
      
      
      
      %dlg%,<<%code%
      if a_dlg_button = "getPrevTab" then 
      	a_dlg_button = ""
      	ui_msg_box("Notice","The previous tab that had focus was: " + tb.prevtab)
      	
      end if 
      if a_dlg_button = "tabInit" then 
      	a_dlg_button = ""
      	tb.object.create(tabList,tabIcons)
      	tb.object.set(initialTabIndex) 
      	tabLabel = word(tabList,initialTabIndex,crlf())
      end if
      
      if a_dlg_button = "HasIconsChanged" then 
      	a_dlg_button = ""
      	if flagTabsHaveIcons then 
      		tb.object.create(tabList,tabIcons)
      	else
      		tb.object.create(tabList,"")
      	end if 
      	tb.object.set(tb.tab)
      end if 
      if a_dlg_button = "ChangeTabLabel" then 
      	a_dlg_button = ""
      	if tabLabel <> "" then 
      		tabList = *line_replace(tabList,tabLabel,tb.tab)
      		if flagTabsHaveIcons then 
      			tb.object.create(tabList,tabIcons)
      		else
      			tb.object.create(tabList,"")
      		end if 
      		tb.object.set(tb.tab)
      	end if 
      	
      end if 
       
      if a_dlg_button = "tabChangeComplete" then 
      	a_dlg_button = ""
      	tb_PreviousTab = tb.tab
      	currentTabNumber = tb.tab
      	tabLabel = word(tabList,tb.tab,crlf())
      	flagDirty = tb.Object.isDirty(tb.tab)
      end if 
      
      if a_dlg_button = "tabChangeStart" then 
      	if flagCanChangeTab = .f. then 
      		tb.object.set(tb_PreviousTab)
      		ui_msg_box("Error","You are not allowed to change tabs.")
      	end if 
      	a_dlg_button = ""
      end if 
      
      if a_dlg_button = "setTab" then
      	a_dlg_button = "" 
      	if currentTabNumber > 0 .and. currentTabNumber <= 3 then
      		tb.object.set(currentTabNumber)
      	else
      		ui_msg_box("Error","Tab number is out of range.")
      	end if 
      end if
      
      if a_dlg_button = "tabRClick" then 
      	a_dlg_button = ""
      	
      	
      	if tb.tab = 1 then 
      		ui_msg_box("Notice","You right clicked on tab 1")
      	else if tb.tab = 2 then 
      		dim result as c 
      		result = ui_popup_menu(comma_to_crlf("Menu choice1,Menu choice2,Menu choice2"))
      		if result <> "" then 
      			ui_msg_box("Notice","You selected " + result)
      		end if 
      	end if
      end if 
      
      if a_dlg_button = "setDirty" then 
      	a_dlg_button = ""
      	tb.Object.setDirty(tb.tab,flagDirty)
      end if  
      %code%)
      Attached Files

      Comment


      • #4
        Re: xDialog Parent Tab and Sub-Tabs

        I think is is one of the drawbacks of xdlg. When alpha constructs the xdlg and it recognized a built in sub-object that might show up conditionally, it allows a space for that sub-object regardless if it is showing originally or not.
        Your best bet is to break down the xdlg string into smaller strings one of which is the sub-tab that will be concatenated to the original string when you wish to show it.
        Or, alternatively, though I haven't tested that, put the sub-tab in an embedded xdlg.

        Comment


        • #5
          Re: xDialog Parent Tab and Sub-Tabs

          Here you go:
          Code:
          dim dlg_body as c 
          dim dlg_event as c 
          updown="Top"
          ui_dlg_box("Advanced Tab Examples",<<%dlg%
          {startup=init}
          {region}
          {wrap=100}
          Place the tab buttons at the top, bottom, left or right of the tab object.;
          {lf};
          {endregion};
          {background=gray}
          {xmargin=4,4}
          {region}
          I have two tabs for parent;
          ;;
          {tab=%S=Subtle%Updown!Page_changed}
          
          {pane=top}
          {embedded=0,0:Cldg};	
          {pane=botton}
          	{lf};
          	{region}want to see the child tabs and tabs are located at botton,;{endregion};
          	{region3}
          	Insert tab contents here later;	
          	{endregion};	
          {pane=extra}
          	{lf};
          	{region}This is the 3rd tab; {endregion};
          	{region3}
          		City:| [.32City] ;
          		State:| [State] ;
          		Zip:| [Zip];
          	{endregion};		
          {pane=More and more }
          	{region4}
          	{lf};
          	This is the 4th tab;
          		First name:| [.32firstname] ;
          		Last name:| [.32lastname] ;
          		Address:| [.32address1] ;
          	{endregion};	
          {endtab};
          {endregion};
          {region}
          {lf};
          space at botton;
          {endregion};
          %dlg%,<<%code%
          if updown="top"
          	ui_modeless_dlg_box("Cldg",<<%dlg1%
          	{region}
          	{lf};
          	Show the child tabs at inside of the parent-tabs;{endregion};
          	{lf};
          	{region1}
          	{tab=%S=tabband;j=b%page1}
          	{pane=Address}
          		{lf};
          		First name:| [.32firstname] ;
          		Last name:| [.32lastname] ;
          		Address:| [.32address1] ;
          		City:| [.32City] ;
          		State:| [State] ;
          		Zip:| [Zip];			
          	{pane=Payment}
          		{lf};
          		Credit card:| [.32card] ;
          		Number:| [.32number] ;
          		Expiration :| [.32expiration] ;
          	{endtab};	
          	{endregion};
          	%dlg1%,<<%code1%
          	%code1%)
          	end if
          if a_dlg_button ="page_changed" then
              a_dlg_button =""
          end if
          %code%)

          Comment


          • #6
            Re: xDialog Parent Tab and Sub-Tabs

            Thank G,

            This, {embedded} , worked very well.
            I also inserted " Ui_dlg_refresh() " at page_changed event, then the previous strange line is disappeared.

            Comment


            • #7
              Re: xDialog Parent Tab and Sub-Tabs

              Gabe
              the embedded Cldg dialog doesnt seem to appear anywhere when simply running your example - ie. the updown="top" condition
              It does run on its own but where would it appear embedded?

              Comment


              • #8
                Re: xDialog Parent Tab and Sub-Tabs

                In the "Top" tab.
                Incidentally, as seen in the attached video, I do not see the "strange line" that John referred to. Must be version variation.
                sub tab.zip

                Comment


                • #9
                  Re: xDialog Parent Tab and Sub-Tabs

                  In v12 I see a ghost box when it first opens, part frame with nil in it it - could be the line he refers to.
                  The embedded dlg is a no show. When I get chance will check in v10 runtime.
                  They done something to the method perhaps in v12?

                  Comment


                  • #10
                    Re: xDialog Parent Tab and Sub-Tabs

                    G,

                    I do not see the "strange line" that John referred
                    Here, and v9, build 2095, patch Build 3264

                    tab_line.jpg

                    Comment


                    • #11
                      Re: xDialog Parent Tab and Sub-Tabs

                      Don't see it in my version. Can't help you there. You could refresh the dialog or repaint the screen. Can't help you with v 12 either.

                      Comment


                      • #12
                        Re: xDialog Parent Tab and Sub-Tabs

                        G, what version are you on. In v9 your sample seems to work as it should (as per your video) In v10 (v10.5) it behaves as Ray reported.
                        Tim Kiebert
                        Eagle Creek Citrus
                        A complex system that does not work is invariably found to have evolved from a simpler system that worked just fine.

                        Comment


                        • #13
                          Re: xDialog Parent Tab and Sub-Tabs

                          V8

                          Comment


                          • #14
                            Re: xDialog Parent Tab and Sub-Tabs

                            John, the attached is a V9 Db.
                            Shows Tabs within Tabs and you can control access as you wish.
                            Click on Other Details and then explore the tab structure.
                            Just for a few design ideas.
                            Attached Files
                            Ted Giles
                            Example Consulting - UK
                            .

                            sigpichttp://ec12.example-software.com//
                            See our site for Alpha Support, Conversion and Upgrade.

                            Comment

                            Working...
                            X