Void __fastcall TForm1: : ListView4Resize (TObject * Sender)
{
ShowScrollBar (ListView4 - & gt; Handle, SB_HORZ, FALSE);
}
I write like this is ok, but have a little problem, horizontal scroll bar, usually the eldest brother to how to solve?
. With the VC, asm file into the file list, then select the compile forms, in. H file statement, so that you can use the
But how BCB done?
Rookie, I just use BCB soon, please the great god, help me, thank you.
CodePudding user response:
ListView have ScrollBars attribute? Didn't pay attention to,
CodePudding user response:
reference 1st floor ooolinux response: ListView ScrollBars attribute? Didn't notice that the No ScrollBars, I read the N times, sorrow the shit out of me, but others can do it again, CodePudding user response:
TListView is win32 listview packaging, the handle can be used, also supports Windows news, some win control support with hair message to set up, you can look it up in the MSDN the listview what can be set up, or do a keyword search using Delphi, CodePudding user response:
reference ooolinux reply: 3/f TListView is win32 listview packing, handle can be used, also supports Windows news, some win control support with hair message to set up, you can look it up in the MSDN the listview what can be set up, or do a keyword search using Delphi, Already search Delphi, only the ShowScrollBar (ListView4 - & gt; Handle, SB_HORZ, FALSE); CodePudding user response:
You try this code in the form in the constructor, CodePudding user response:
reference 5 floor ooolinux reply: you try this code in the form in the constructor, That position is no matter use, are tried, will shine CodePudding user response:
The simplest solution to control the flashing is to control the DoubleBuffered attribute set to true CodePudding user response:
Win32 controls set doublebuffered may black window, CodePudding user response:
reference frog studio 7 floor response: the simplest solution to control the flashing is to control the DoubleBuffered attribute set to true Has already been set up, or not CodePudding user response:
For variety bai: ListView4 into the Panel, ListView - & gt; Left=0; ListView - & gt; Top=0; Void __fastcall TForm1: : Panel1Resize (TObject * Sender) { ListView4 - & gt; Width=Panel2 - & gt; Width; ListView4 - & gt; Height=Panel2 - & gt; Height + 20;//20 is set to the variable } CodePudding user response:
Wrong: above are Panel1 ListView4 - & gt; Width=Panel1 - & gt; Width; ListView4 - & gt; Height=Panel1 - & gt; Height + 20; CodePudding user response:
ShowScrollBar (ListView4 - & gt; Handle, SB_BOTH, FALSE); ShowScrollBar (ListView4 - & gt; Handle, SB_VERT, TRUE); CodePudding user response:
refer to 12th floor early play big play nuclear war reply: ShowScrollBar (ListView4 - & gt; Handle, SB_BOTH, FALSE); ShowScrollBar (ListView4 - & gt; Handle, SB_VERT, TRUE); With the ShowScrollBar (ListView4 - & gt; Handle, SB_HORZ, FALSE); What's the difference? CodePudding user response:
He this operation should not be in the resize handle do CodePudding user response:
14th floor early references to play big play nuclear response: he this operation should not do in the resize handle Where can do? I don't know, check a lot of information is not found yet CodePudding user response:
You this code should be executed only once, not every time the resize execution, CodePudding user response:
reference 16 floor ooolinux response: you this code should be executed only once, not every time the resize execution, Every time, so to shine CodePudding user response:
refer to 17th floor RadStudioEx response: Quote: refer to the 16th floor ooolinux response: You this code should be executed only once, not every time the resize execution, Every time, so didn't blink Put the FormCreate? CodePudding user response:
refer to the 18th floor ooolinux response: Quote: refer to 17th floor RadStudioEx response: Quote: 16 reference building ooolinux response: You this code should be executed only once, not every time the resize execution, Every time, so didn't blink Put the FormCreate? Can't, ShowScrollBar (ListView4 - & gt; Handle, SB_HORZ, FALSE); This approach, every time change ListView4 size, a scroll bar will appear, perform the function to eliminate the scroll bar, so to shine CodePudding user response:
Must be a variable size? Number of words CodePudding user response:
reference ooolinux 20 floor response: must be variable size? Word count Yes, to the variable size