Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
65 user(s) are online (40 user(s) are browsing Forums)

Members: 0
Guests: 65

more...

Headlines

Forum Index


Board index » All Posts (trixie)




Re: Fuelgauge height
Amigans Defender
Amigans Defender


@broadblues

> Does that code snippet make the guage smaller
> or the string gad taller?

AFAIK string gadgets are never proportional vertically, their actual height depends on font size and is fixed (at least that was the case under OS3.x). So it is the gauge that is made the same height as the string in my example.

Go to top


Re: Fuelgauge height
Amigans Defender
Amigans Defender


@orgin

That's quite strange! I've just compiled a test GUI under OS3.9, and it does work as I described earlier: the string gadget and the gauge are placed in one horizontal group and both are made unproportional vertically through a common CHILD_WeightedHeight, 0. The code snippet:

...
LAYOUT_AddChild, HGroupObject,
LAYOUT_AddChild, StringObject,
GA_ID, GID_STRING,
GA_RelVerify, TRUE,
End, /* string */
LAYOUT_AddChild, FuelGaugeObject,
GA_ID, GID_GAUGE,
GA_RelVerify, TRUE,
End, /* fuelgauge */
End, /* HGroup */
CHILD_WeightedHeight, 0,
...

Go to top


Re: Fuelgauge height
Amigans Defender
Amigans Defender


@orgin

I vaguely recollect from memory that you must put CHILD_WeightedHeight, 0 after your HGroupObject definition, not inside - that is, after the HGroupObject's LayoutEnd. Have yout tried that?

Go to top


Re: Fuelgauge height
Amigans Defender
Amigans Defender


@orgin

String.gadgets are not proportional vertically so when put next to other gadgets, they may have different height. Doing what Chris said will force all gadgets in the group to have the same minimum height (and lose proportionality).

Go to top


Re: Listbrowser background color
Amigans Defender
Amigans Defender


@orgin

Backfull or backfill?

Go to top



TopTop
« 1 ... 72 73 74 (75)




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project