I have an old app coded in PB5.11 x86. It's not used often so I'm keeping it in old PB, it uses Gonzal's Color lib.
The app has a Panel with a number of tabs. On a couple of these tabs I have used a scroll area gadget and the main gadget on that area is a ListIcon. Here is the issue: The ListIcon height is 1200pix (ScrollArea Height 1800pix). On WindowsXP, that displays as expected, the ListIcon does not need scrollbars. However on Win7 this does not work, no matter what height is given for the ListIcon, the max it is drawn at is approx 1025pix.
I have tried ResizeGadget, no joy - what is the API for ResizeGadget?
ListIcon Height
-
- Always Here
- Posts: 6425
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
ListIcon Height
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
- RSBasic
- Moderator
- Posts: 1218
- Joined: Thu Dec 31, 2009 11:05 pm
- Location: Gernsbach (Germany)
- Contact:
Re: ListIcon Height
SetWindowPos_():IdeasVacuum wrote:what is the API for ResizeGadget?
Code: Select all
EnableExplicit
If OpenWindow(0, 0, 0, 500, 400, "Window", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ButtonGadget(1, 10, 10, 100, 20, "Button", 0)
SetWindowPos_(GadgetID(1), 0, 0, 0, 200, 50, #SWP_NOMOVE | #SWP_NOZORDER)
Repeat
Select WaitWindowEvent()
Case #PB_Event_CloseWindow
End
EndSelect
ForEver
EndIf
Re: ListIcon Height
With SetWindowPos_() maybe you will need #SWP_FRAMECHANGED flag
Code: Select all
MoveWindow_(GadgetID(gadget),x,y,Width,Height,1)
Egypt my love
-
- Always Here
- Posts: 6425
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: ListIcon Height
Thanks for the help guys. The API methods did not improve matters, and that is because deep inside the code I had used a 'magic number' to calc and resize the height of the ListIcon. It is that value that worked perfectly in WinXP but not in Win7.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.