Reaction/ClassAct

SoftStyle and HorizJustify in ListBrowser columns titles ?

Hi,
I'm using a ListBrowser to build a list where I'm able to use LBNCA_HorizJustify, LBNCA_SoftStyle & LBNCA_FGPen to center, bold and change the color of the content of my cells.

But I didn't find in the AutoDocs where to do the same for columns titles with SetLBColumnInfoAttrsA or AllocLBColumnInfoA ?

Therefore, is somebofy know if it's possible to center or to use a Bold SoftStyle or a color for a ListBrowser column title ?

Thank you

Forums: 

Retaining image aspect ratio

Hi,

Can a bitmap image object be made scalable so that the image's aspect ratio stays always the same? Possible with the help of the surrounding layout gadget?

Right now I have an image button which adapts to the window size: when I resize the window, the image button resizes as well filling the whole window. The problem is that the image gets distorted when the window has "wrong dimensions". That is something I'd like to avoid.

Forums: 

Dynamic ColumnInfo

I have a need to create a dynamic ColumnInfo for a listbrowser. I want to be able to add nodes in a loop like you would when adding to the listbrowser's items. The number of columns may vary. The order may vary, which is the biggest need for dynamic creation.

create AllocLBColumnInfo() without specifying number of columns (or anything)

create a new list
for(;;)
{
allocate a new node
fill in details
add to list
}

attach list to ColumnInfo
attach ColumnInfo to listbrowser

Forums: 

Layout resize (solved)

I have a ReAction window with a main layout that contains a horizontal child layout consisting of a bitmap image object sitting next to a label image object. I need to swap the child layout for another one when the window is NOT open. What I'm basically doing is:

- Attach the first child layout to the main window layout.
- Open the window.
- Close the window, remove the child layout, and attach the second child layout to the main layout.
- Open the window again.

Forums: 

speedbar woes

speedbar.gadget v53.12
SDK says v53.29

I have my bar created and added some buttons. Get weird values in Code.

AutoDocs says to use int8 for value for AllocSpeedButtonNode(). I have tried that, uint16, uint32, hard coded a number (4). Always returns something like 50450 or 116934, not 0, 1, 2....

Forums: 

BitMapClass and Icon (pointer icons) in a ListBrowser

Hi, I just try to show an icon on a listbrowser and I get the icon but seems depth+palette are wrong. It look like I'm missing som tags to set/get so icon/bitmap looks fine in listbrowser.
How do I set icon's depth+palette values so it shows ok in listbrowser?
TIA

Forums: 

[solved] How to add shadow to a Button GA_Text ?

Hi,
I use GA_Text to add labels to Reaction buttons.
Is it possible to add a shadow at these labels ? Maybe a GA_TextAttr option ?

In my dockies (RAM, GFX, NetDock) I use Text() on the window RastPort to write labels and therefore I can add a shadow simply by repeating the Text() again at x+1 y+1 with a different Pen color.
But in a Reaction Button... Is it possible without to have to calculate all the relative coordinates of the buttons, to adapt the Text() length and to use Text() on the window RastPort ?

Is it a easier way ?

Forums: 

Pages

Subscribe to RSS - Reaction/ClassAct