1. Jeff Gibson
  2. PowerBuilder
  3. Wednesday, 23 October 2024 19:45 PM UTC

I'm in the process of mocking up a tool style window that will allow me to place grippers on the window depending on where the window is located within the MDI frame. I need to be able to click on this area/gripper.

I added a mouse down (pbm_lbuttondown) and a mouse up event (pbm_lbuttonup).  This is mapped to a static text object.

These events fire. The issue I'm running into is the event fires anywhere within the window. Even though the event is only defined within the static text object.

Maybe this is working the way it should, but the perception I had was that it would only fire within the object itself.

If I could get a clarification on how this should be working, I would absolutely appreciate it.

Attachments (1)
John Fauss Accepted Answer Pending Moderation
  1. Wednesday, 23 October 2024 21:58 PM UTC
  2. PowerBuilder
  3. # 1

Hi, Jeff - 

Have a look at the PFC Resizing example app I posted in CodeXchange a while back, as it implements a resizing "gripper" located in the lower-right corner of the window:

    https://community.appeon.com/index.php/codeexchange/powerbuilder/265-pfc-resizing-example-application

Best regards, John

Comment
  1. Jeff Gibson
  2. Thursday, 24 October 2024 16:53 PM UTC
I literally drew the control with line objects. 8 of them specifically. I tried to do two overlapping rectangle objects, but you can't get it to look like double bar that you see at the top of the system tree in PowerBuilder.



My goal is to allow for classic and flat depending on how the user wants to view it. Yes, I'm attempting to simulate a docking environment. I was going to use the dockable windows, but with the functionality being obsolete, I'm concerned I would run into issues down the road. I'm using a child window and turning the boarder off. I really want to ability to move to it sides, top or bottom. Not necessarily float it. Also want the ability to open and close it.



Always open for any suggestions. Appreciate what you've sent so far.
  1. Helpful
  1. Roland Smith
  2. Thursday, 24 October 2024 18:55 PM UTC
Not sure about Windows 10/11 but at one time Windows used the font Marlett for the gripper and other window buttons.
  1. Helpful 1
  1. Jeff Gibson
  2. Thursday, 24 October 2024 19:23 PM UTC
Hey Roland. Yeah, they still use that font, but the only thing available in it is the corner gripper. I had thought about changing the angle, but you can't do an extended one. At least from what I'm seeing. You would start with ///// effectively. Rotating it wouldn't necessarily line it up.
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.