Page 2 of 2

Re: StringGadget right alignment

Posted: Mon Jun 24, 2013 5:24 pm
by BorisTheOld
@Fred
Fred wrote:Using other gadget flags is not supported, use SetWindowLong_() on Windows if you want to change the style
We use code similar to Shardik to make our GUI classes cross-platform. It's not a big problem for us, but it can be for less experienced programmers who are trying to write cross-platform applications.

Given the ease with which string gadgets can be aligned with user code, can #PB_STRING_LEFT and #PB_STRING_RIGHT be allowed when creating a string gadget?

Thanks

Re: StringGadget right alignment

Posted: Tue Jun 25, 2013 3:59 am
by ken_anthony
Well done. It worked. This is the code I needed.

Code: Select all

ImportC ""
    gtk_entry_set_alignment(Entry.I, XAlign.F)
EndImport
gtk_entry_set_alignment(GadgetID(0), 1)