Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 351
  • Last Modified:

Irritating Delphi IDE problem

Okay got this frame (the new unit and frame) wich will be Bigger than my screensize but that what the user is seeing trhough the "framebox" (scrollbox or whatever it's called) is just a part of a form)
What i'm making is just large scrollable frame inside a form something like u get while browsing the net using IE and being able to scrolldown anyway

everything works fine except for one thing Delphi doesn't seem to add a scrollbar to be albe to scroll down the frame and edit it (design time)
doesn't the ide have a solution for this cause i see this as a BIG FAT BUG i never would have thought i'd dislike something about delphi and this is where VB was right with putting forms etc in side a window at least u can scroll there

but anyway how can i be able to test the parts of the frame that are outside the screen ? i also managed to get a scrollbar ones but i wasn't able to click on it (if i clicked it my mouse would move near the scrollbar) and scrolbar didn't move

this is very irritating and i can't view the frame as text since it gives me an error !

if i set the scrollbox vertical scrollbar position i can see the part of the frame that's outside the screen height and are able to move the components around BUT i can't rename them (and i have to)

I hope there's way to be able to edit / add controls on a frame that's bigger then my screen height !

If you don't know what i mean please tell me i'll make some screenshots then u know what i mean then !!

seems like noone knows so this is really a flaw in the IDE :(

please help tnx
0
joyrider
Asked:
joyrider
  • 3
  • 2
1 Solution
 
JaccoCommented:
My first guess would be to place a TScollBox on the frame. Align it alClient. Then set VertScrollBar.Range to a large value. Then scroll around and put controls on it.

Regards Jacco
0
 
joyriderAuthor Commented:
doesn't work, if i click the scrollbox i get a .onclick in the code editor, so delphi really didn't think about this ?
0
 
JaccoCommented:
Only if you double click you will get the ScrollBoxXXXClick(Sender: TObject) in your code editor. If you single click nothing should happen in the IDE.

Regards Jacco
0
 
JaccoCommented:
Here is a frame DFM to show how it works.

Regards Jacco

object Frame1: TFrame1
  Left = 0
  Top = 0
  Width = 320
  Height = 240
  TabOrder = 0
  object ScrollBox1: TScrollBox
    Left = 0
    Top = 0
    Width = 320
    Height = 240
    HorzScrollBar.Range = 800
    VertScrollBar.Position = 440
    VertScrollBar.Range = 2000
    Align = alClient
    AutoScroll = False
    TabOrder = 0
    object Label1: TLabel
      Left = 40
      Top = -52
      Width = 32
      Height = 13
      Caption = 'Label1'
    end
    object Label2: TLabel
      Left = 120
      Top = 96
      Width = 32
      Height = 13
      Caption = 'Label2'
    end
    object Label3: TLabel
      Left = 88
      Top = 388
      Width = 32
      Height = 13
      Caption = 'Label3'
    end
    object Button1: TButton
      Left = 16
      Top = -432
      Width = 75
      Height = 25
      Caption = 'Button1'
      TabOrder = 0
    end
    object Button2: TButton
      Left = 200
      Top = -108
      Width = 75
      Height = 25
      Caption = 'Button2'
      TabOrder = 1
    end
    object Button3: TButton
      Left = 556
      Top = 160
      Width = 75
      Height = 25
      Caption = 'Button3'
      TabOrder = 2
    end
    object Button4: TButton
      Left = 716
      Top = 388
      Width = 75
      Height = 25
      Caption = 'Button4'
      TabOrder = 3
    end
    object CheckBox1: TCheckBox
      Left = 128
      Top = -392
      Width = 97
      Height = 17
      Caption = 'CheckBox1'
      TabOrder = 4
    end
    object RadioButton1: TRadioButton
      Left = 56
      Top = -328
      Width = 113
      Height = 17
      Caption = 'RadioButton1'
      TabOrder = 5
    end
    object ScrollBar1: TScrollBar
      Left = 200
      Top = -280
      Width = 121
      Height = 16
      PageSize = 0
      TabOrder = 6
    end
    object Memo1: TMemo
      Left = 396
      Top = -148
      Width = 185
      Height = 89
      Lines.Strings = (
        'Memo1')
      TabOrder = 7
    end
  end
end
0
 
joyriderAuthor Commented:
Ah didn't use a scrollbox hmm ic, i'll have to remake my program somewhat then using the scrollbox thanks !
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now