Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
2
Erster Beitrag:
vor 2 Jahren, 10 Monaten
Letzter Beitrag:
vor 2 Jahren, 10 Monaten
Beteiligte Autoren:
Stefan Bentvelsen

[WD19/WD20] vertical scrollbar in scheduler control ?

Startbeitrag von Stefan Bentvelsen am 01.10.2015 09:45

Hi,

is there a way to know that a vertical scrollbar is visible or not in a scheduler control ?
I cannot set the vertical scrollbar to Always-visible for a scheduler control. But to correct align a number of controls with the days of the scheduler control I have to know if the vertical scrollbar is visible or not.

An alternative would be setting the scrollbar to Always-visible, but as far as I know there is no possibility such a setting in the editor or via a property.

I've send a request to PCSoft. May be they know a way around.

Antworten:

Re: [WD19/WD20] vertical scrollbar in scheduler control (Work around)

PCSoft has send me a work around. I've made the following global procedure with the supplied code:


PROCEDURE gpIsVerticalScrollbarVisible(psControlName is string)

// Important : this code uses Windows API and is meant for 32 bits. Note that the Free Technical Support
// cannot help you regarding the subject of Windows API. You may get some help from other WinDev users
// if you post this request on the WinDev forum.
//
liRetourFonction is system int
hWnd is system int = Handle(psControlName)
GWL_STYLE is system int = -16

liRetourFonction=API("USER32","GetWindowLongA",hWnd,GWL_STYLE)
WS_VSCROLL is system int = 2097152

RESULT BinaryAND(liRetourFonction,WS_VSCROLL) // if not nul => the scrollbar is visible


von Stefan Bentvelsen - am 06.10.2015 09:14
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.