Solved

Irritating Delphi IDE problem

Posted on 2002-04-17
5
333 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

746 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

12 Experts available now in Live!

Get 1:1 Help Now