Solved

Irritating Delphi IDE problem

Posted on 2002-04-17
5
341 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month10 days, 10 hours left to enroll

632 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