Solved

Irritating Delphi IDE problem

Posted on 2002-04-17
5
334 Views
Last Modified: 2010-05-18
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
Comment
Question by:joyrider
  • 3
  • 2
5 Comments
 
LVL 10

Expert Comment

by:Jacco
ID: 6949704
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
 

Author Comment

by:joyrider
ID: 6950022
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
 
LVL 10

Expert Comment

by:Jacco
ID: 6950142
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
 
LVL 10

Accepted Solution

by:
Jacco earned 25 total points
ID: 6950150
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
 

Author Comment

by:joyrider
ID: 6950303
Ah didn't use a scrollbox hmm ic, i'll have to remake my program somewhat then using the scrollbox thanks !
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi OLE Error 8 95
how to manage invalidate between two tvirtualstringtree in same form? 1 104
Intraweb download file link ? 1 110
LAN or WAN ? 11 82
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now