|
Post by SunBurnt on Dec 11, 2011 20:04:43 GMT 1
Very odd... This code won`t toggle between the two text settings It changes the first time, then does nothing:
'INCLUDE "/usr/share/BaCon/hug_imports.bac" INCLUDE "/usr/share/BaCon/hug.bac" INIT
SUB SET_TEXT IF GRAB$(btnMAIN_) = "Text" THEN TEXT(btnMAIN_, "Fixed") ' ELSE IF GRAB$(btnMAIN_) = "Fixed" THEN ELSE TEXT(btnMAIN_, "Text") END IF PRINT "Click..." END SUB
winW = 160 winH = 25 winMAIN_ = WINDOW("Sq.Apps.", winW, winH) btnMAIN_ = BUTTON("Text", winW, winH) ATTACH(winMAIN_, btnMAIN_, 0, 0) CALLBACK(btnMAIN_, SET_TEXT) FONT(btnMAIN_, "cursor 12") DISPLAY
|
|
|
Post by Pjot on Dec 11, 2011 21:17:51 GMT 1
Hi Sunburnt, <<sigh>> ...thats the thing with the ever evolving GTK, the way some functions were implemented appear to have changed slightly... So this problem is fixed too, please get version 0.65 and try again... Best regards Peter
|
|
|
Post by SunBurnt on Dec 12, 2011 4:10:18 GMT 1
Hey Peter; The link comes up as hug.bac.html, version 64 came up as hug.bac .
I could Copy-&-Paste but it`s a really long file...
### Comment:
I don`t really like the way GTK+ is laid out, but it`s the only game in town. From what I understand, QT is even more bloated and messy ( but maybe not...).
And yes... I`ve been held captive to constantly changing dependencies. Enough!!! Development is forward movement, but this is just treading water to keep it working!
|
|
|
Post by Pjot on Dec 12, 2011 9:11:17 GMT 1
Sunburnt,
Just remove the ".html" part.
All files on the BaCon website are available both in .html format and plain .bac format.
Also make sure to refresh your browser cache,
Regards Peter
|
|
|
Post by SunBurnt on Dec 13, 2011 1:35:21 GMT 1
Peter; Are you sure? The first one was "normal", but this file starts like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> Changing the file name won`t fix the fact it`s an HTML document. Unless the BaCon compiler can handle it???
|
|
|
Post by Pjot on Dec 13, 2011 10:03:12 GMT 1
|
|
|
Post by SunBurnt on Dec 13, 2011 21:40:16 GMT 1
File looks normal Peter... Thanks for the diligence.
|
|