Quick question.
If I wanted to use a scroll bar for part of the window - say, within a
tabstrip, would the approach be to create another window and apply the
scroll bar to that?
Cheers,
jez.
- Original Message -
From: Steve Pick [EMAIL PROTECTED]
To: Win32 GUI Users
Many good points and questions.
Personally, I would prefer SelectAll over Select(-1). Is it necessary? I
would say yes. Is it bloating out the module? I would say no - bloating can
become a major headache in some projects, but I would say we're a long way
from that happening.
Like you, I
Hi Jez,
If I wanted to use a scroll bar for part of the window - say, within a
tabstrip, would the approach be to create another window and apply the
scroll bar to that?
Yes. Bear in mind that the scrollbars are ONLY scrollbars, they do not have any
effect on the window contents unless you
Hi,
The example below will only work on the latest code line from CVS.
I'm trying to get my head round using scroll bars. In my test example I want to
create a window containing one tab strip. In the tab strip there will be a
child window containing a scroll bar and 10 buttons. Scrolling the
You want to add the buttons to the tab, not a child window. So remove all
the child window stuff and change
$childwin-AddButton
to
$win-Tab-AddButton
and now $win will remain in focus.
-Original Message-
From: Jez White [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16,
At 13:36 2004-01-16, Jez White wrote:
Now, the scrolling part works fine - but is using a child window in this
way the correct approach? For example, interacting with the child window
(clicking on a button, or scrolling) loses focus (which you would expect
for a normal window) but is not the
Your code is bad. What you're doing is creating a floating BorderlessWindow
positioned over the top of the main window. If you want to put your window
*INSIDE* the client area I suggest you do this:
use Win32::API;
our $SETPARENT = new Win32::API(user32,SetParent,NN,N) or croak Failed
to load
Thanks for all the replies/suggestions.
I have to admit I'm more confused now than I was when I started:)
I tried your suggestions Steve, I end up with something that works like an MDI
application - which is nice in itself, but not what I was after:)
Basically is it possible to use a scroll
Stephen, that's real nice with the MDI thing. However, there are a few
questions:
Do you(the developer) have to control all the window positions and stuff
manually For example, when I set up a second window, and maximize one using
the buttons ( I added the -controlbox property), the other
Personally, I would prefer SelectAll over Select(-1). Is it necessary?
I
Is it idiomatic? Traditionally in Perl, indexing with -1 means one
from
the end of the array. And -1 is kind of magic (in a bad way), whereas
SelectAll is very explicit, clear and obvious in a nice way.
Thanks for the
I'm using the latest version of TGL v0.21 -- r2004-01-03 on Windows 2000.
I can't set any checkbox properties using the gui.. (Enable or Visible
properties for example).
This was working great in previous release anything broken?
Angelo
Whoa there, slow down...
This is NOT an MDI thing. This is a cheap hack to get Jez's problem solved.
Don't use it unless you have to.
if the title bars do not become active, remove the WS_CHILD style.
if things are clipping what they shouldnt, add the WS_CLIPSIBLINGS style.
I added new
Glenn,
I haven't really used the NEM much yet, but when I knocked up a small
test script this morning with the new model I found that accelerators
didn't work. Had you noticed this or can you confirm it? If so, is it a
bug with accelerators themselves or some underlying feature of the
system?
Stephen, see comments inline:
-Original Message-
From: Stephen Pick [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 11:26 AM
To: Frazier, Joe Jr; Win32-GUI
Subject: RE: [perl-win32-gui-users] Scroll bar example
Whoa there, slow down...
This is NOT an MDI thing. This is a
Without meaning to continue the MDI debate - isn't it a dead design
methodology? :)
I suspect, that I may have confused the situation with me talking about
child windows within windows. If Laurent manages to do a new build on the
weekend so more of us can get involved in all the new changes, I'll
Sorry, I have not thrown any weight towards the discussion on Select(-1) et al,
personally I would disagree that it is counter-intuitive, as user functions
such as this one rarely behave like Perl arrays do anyway. I would say that
Select(-1) is perfectly viable, but for readability I would say
is it possible to use a scroll bar within a window, and not on one of it's
edges?
Yes, it is. Although I did not implement this yet. What you get when you do it
is one of those scrollbars where the scroll handle blinks on focus. It is
theoretically possible to add scrollbars to anything, but
Oh, sorry, bugfix,
line 83 add:
$scrollarea-Left(0 - $scrollwindow-ScrollPos(0));
Helps if you keep tracking the scrollbar during resize :)
This stops weird behaviour if you scroll then resize the window.
Steve
- Original Message -
From: Jez White
To: Stephen Pick ; Win32-GUI
Impressive.
It'll take me a bit longer to understand what is actually going on:)
This is *really* useful. This example should be included in the next build.
Thanks,
jez.
- Original Message -
From: Steve Pick
To: Jez White ; Win32-GUI
Sent: Friday, January 16, 2004 7:24 PM
19 matches
Mail list logo