Getting Blank Window with Tabbed Page Control

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
sarver311
Pro Scripter
Posts: 84
Joined: Tue Jun 17, 2008 6:37 pm

Getting Blank Window with Tabbed Page Control

Post by sarver311 » Tue May 18, 2010 4:35 pm

I'm not sure if this is a bug or if I'm creating my dialogs incorrectly but here is what is happening.

I have an example below, if I have a page control and put something in it, the objects within show up just fine. If I create a page control and add a tabbed page and put something in that, it looks fine in the dialog edit but as soon as i run the script and it shows up, I don't see the tab I created or the objects within.

Code: Select all

//Set IGNORESPACES to 1 to force script interpreter to ignore spaces.
//If using IGNORESPACES quote strings in {" ... "}
//Let>IGNORESPACES=1
Dialog>Dialog1
object Dialog1: TForm
  Left = 1602
  Top = 123
  HelpContext = 5000
  BorderIcons = [biSystemMenu]
  Caption = 'CustomDialog'
  ClientHeight = 593
  ClientWidth = 468
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'MS Sans Serif'
  Font.Style = []
  OldCreateOrder = True
  ShowHint = True
  OnTaskBar = False
  PixelsPerInch = 96
  TextHeight = 13
  object Label1: TLabel
    Left = 48
    Top = 32
    Width = 250
    Height = 13
    Caption = 'This page control works fine because there is no tab '
  end
  object Label2: TLabel
    Left = 56
    Top = 280
    Width = 314
    Height = 13
    Caption = 
      'As soon as I add a tab I get a blank box with no tab or radio gr' +
      'oup.'
  end
  object PageControl1: TPageControl
    Left = 45
    Top = 56
    Width = 289
    Height = 193
    TabOrder = 0
  end
  object MSRadioGroup1: tMSRadioGroup
    Left = 90
    Top = 99
    Width = 185
    Height = 105
    Caption = 'MSRadioGroup1'
    Items.Strings = (
      'test1'
      'test2'
      'test3')
    TabOrder = 1
    Text = 'test1'#13#10'test2'#13#10'test3'#13#10
  end
  object PageControl2: TPageControl
    Left = 51
    Top = 295
    Width = 289
    Height = 193
    TabOrder = 2
    object TTabSheet
      Caption = 'Page1'
      object MSRadioGroup2: tMSRadioGroup
        Left = 52
        Top = 44
        Width = 185
        Height = 105
        Caption = 'MSRadioGroup2'
        Items.Strings = (
          'test123'
          '321test'
          'test')
        TabOrder = 0
        Text = 'test123'#13#10'321test'#13#10'test'#13#10
      end
    end
  end
end
EndDialog>Dialog1

show>dialog1,r
Anyone else able to replicate this or tell me what I'm doing wrong?

Thanks!

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Tue May 18, 2010 5:15 pm

Hi,

Replicated and fixed in dev. Will have an update tomorrow.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

sarver311
Pro Scripter
Posts: 84
Joined: Tue Jun 17, 2008 6:37 pm

Post by sarver311 » Tue May 18, 2010 5:27 pm

Thanks Marcus!

As always, I appreciate the quick response and congrats on r12 getting released, it's great!

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed May 19, 2010 9:08 am

This issue is fixed in build 31, now available in registered downloads.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts