Les membres ayant 30 points peuvent parler sur les canaux annonces, projets et hs du chat.
La shoutbox n'est pas chargée par défaut pour des raisons de performances. Cliquez pour charger.

Forum Casio - Autres questions


Index du Forum » Autres questions » Scrollbar
Critical Hors ligne Membre Points: 47 Défis: 0 Message

Scrollbar

Posté le 30/05/2025 21:36

https://prizm.cemetech.net/Syscalls/UI_elements/Scrollbar/#parameters

Does anyone know what these mean exactly:
typedef struct{
  unsigned int i1; // unknown, set to zero
  unsigned int indicatormaximum; // maximum logical indicator range
  unsigned int indicatorheight; // height of the indicator in units of indicatormaximum
  unsigned int indicatorpos; // indicator position in units of indicatormaxiumum
  unsigned int i5; // unknown, set to zero
  unsigned short barleft; // left position of the bar in pixels
  unsigned short bartop; // top position of the bar in pixels
  unsigned short barheight; // height of the bar in pixels
  unsigned short barwidth; // width of the bar in pixels
} TScrollbar;


I of course understand the last two but do not get the rest


Lephenixnoir En ligne Administrateur Points: 25156 Défis: 174 Message

Citer : Posté le 30/05/2025 22:27 | #


barleft, bartop represent the location on screen (x, y), so the last 4 members indicate a rectangle. This is the rectangle for the entire bar area.

The first 3 members specify where the scrollbar handle should be positioned in that rectangle. The units are more flexible than pixels; you specify the range with indicatormaximum and then height and pos indicate how many units are visible on-screen and how many units far down the top of the screen is.

For instance if you have a document with lines of text, you could set indicatormaximum to how many lines there are in the document, indicatorheight to how many are visible on-screen, and indicatorpos to the number of the first line currently visible at the top of the screen.

Or you can set indicatormaximum equal to barheight in which case the other two indicators will count in pixels.
Mon graphe (28 Janvier): (MPM ; serial gint ; (Rogue Life || HH2) ; PythonExtra ; ? ; Boson X ; passe gint 3 ; ...) || (shoutbox v5 ; v5)
Critical Hors ligne Membre Points: 47 Défis: 0 Message

Citer : Posté le 30/05/2025 23:17 | #


Thank you that clears things up.

LienAjouter une imageAjouter une vidéoAjouter un lien vers un profilAjouter du codeCiterAjouter un spoiler(texte affichable/masquable par un clic)Ajouter une barre de progressionItaliqueGrasSoulignéAfficher du texte barréCentréJustifiéPlus petitPlus grandPlus de smileys !
Cliquez pour épingler Cliquez pour détacher Cliquez pour fermer
Alignement de l'image: Redimensionnement de l'image (en pixel):
Afficher la liste des membres
:bow: :cool: :good: :love: ^^
:omg: :fusil: :aie: :argh: :mdr:
:boulet2: :thx: :champ: :whistle: :bounce:
valider
 :)  ;)  :D  :p
 :lol:  8)  :(  :@
 0_0  :oops:  :grr:  :E
 :O  :sry:  :mmm:  :waza:
 :'(  :here:  ^^  >:)

Σ π θ ± α β γ δ Δ σ λ
Veuillez donner la réponse en chiffre
Vous devez activer le Javascript dans votre navigateur pour pouvoir valider ce formulaire.

Si vous n'avez pas volontairement désactivé cette fonctionnalité de votre navigateur, il s'agit probablement d'un bug : contactez l'équipe de Planète Casio.

Planète Casio v4.3 © créé par Neuronix et Muelsaco 2004 - 2025 | Il y a 148 connectés | Nous contacter | Qui sommes-nous ? | Licences et remerciements

Planète Casio est un site communautaire non affilié à Casio. Toute reproduction de Planète Casio, même partielle, est interdite.
Les programmes et autres publications présentes sur Planète Casio restent la propriété de leurs auteurs et peuvent être soumis à des licences ou copyrights.
CASIO est une marque déposée par CASIO Computer Co., Ltd