HSPポータル
サイトマップ お問い合わせ


HSPTV!掲示板


未解決 解決 停止 削除要請

2016
0508
InoueSoftwearレバーバンドの位置をプログラム上で移動させたい1解決


InoueSoftwear

リンク

2016/5/8(Sun) 12:28:50|NO.75425

レバーバンドの位置をプログラム上で移動させたいのですがどうすればできますか。
2つ目の入力ボックスを左端から100px右に移動したいです。
#define RBBIM_STYLE         0x00000001
#define RBBIM_COLORS 0x00000002 #define RBBIM_TEXT 0x00000004 #define RBBIM_IMAGE 0x00000008 #define RBBIM_CHILD 0x00000010 #define RBBIM_CHILDSIZE 0x00000020 #define RBBIM_SIZE 0x00000040 #define RBBIM_BACKGROUND 0x00000080 #define RBBIM_ID 0x00000100 #define RBBIM_IDEALSIZE 0x00000200 #define RBBIM_LPARAM 0x00000400 #define RBBIM_HEADERSIZE 0x00000800 // control the size of the header #define RBBIM_CHEVRONLOCATION 0x00001000 #define RBBIM_CHEVRONSTATE 0x00002000 #define RBBS_BREAK 0x00000001 // break to new line #define RBBS_FIXEDSIZE 0x00000002 // band can't be sized #define RBBS_CHILDEDGE 0x00000004 // edge around top & bottom of child window #define RBBS_HIDDEN 0x00000008 // don't show #define RBBS_NOVERT 0x00000010 // don't show when vertical #define RBBS_FIXEDBMP 0x00000020 // bitmap doesn't move during band resize #define RBBS_VARIABLEHEIGHT 0x00000040 // allow autosizing of this child vertically #define RBBS_GRIPPERALWAYS 0x00000080 // always show the gripper #define RBBS_NOGRIPPER 0x00000100 // never show the gripper #define RBBS_USECHEVRON 0x00000200 // display drop-down button for this band if it's sized smaller than ideal width #define RBBS_HIDETITLE 0x00000400 // keep band title hidden #define RBBS_TOPALIGN 0x00000800 // keep band in top row a="あいうえお":input a:hInput1=objinfo(stat,2) b="かきくけこ":input b:hInput2=objinfo(stat,2) c="さしすせそ":input c:hInput3=objinfo(stat,2) winobj "ReBarWindow32","",0,0x56000641 hReBar = objinfo(stat,2) dim RBBI,12 RBBI = 80 RBBI(1) = RBBIM_STYLE | RBBIM_SIZE | RBBIM_CHILD | RBBIM_CHILDSIZE | RBBIM_ID RBBI(2) = RBBS_BREAK | RBBS_GRIPPERALWAYS RBBI(8) = hInput1 RBBI(10) = 22 & 0xFFFF RBBI(9) = 100//最小の大きさ RBBI(13) = 0 sendmsg hReBar, 0x401, -1, varptr(RBBI) dim RBBI,12//2つ目の入力ボックスを左端から100px右に移動したい RBBI = 80 RBBI(1) = RBBIM_STYLE | RBBIM_SIZE | RBBIM_CHILD | RBBIM_CHILDSIZE | RBBIM_ID RBBI(2) = RBBS_GRIPPERALWAYS RBBI(8) = hInput2 RBBI(9) = 100//最小の大きさ RBBI(10) = 22 & 0xFFFF RBBI(13) = 0 sendmsg hReBar, 0x401, -1, varptr(RBBI) dim RBBI,12 RBBI = 80 RBBI(1) = RBBIM_STYLE | RBBIM_SIZE | RBBIM_CHILD | RBBIM_CHILDSIZE | RBBIM_ID RBBI(2) = RBBS_BREAK | RBBS_GRIPPERALWAYS RBBI(8) = hInput3 RBBI(9) = 100//最小の大きさ RBBI(10) = 22 & 0xFFFF RBBI(13) = 0 sendmsg hReBar, 0x401, -1, varptr(RBBI)



この記事に返信する


InoueSoftwear

リンク

2016/5/9(Mon) 10:49:46|NO.75435

自己解決。
rbBand.cxに横幅を入れることによって調整できました。



ONION software Copyright 1997-2023(c) All rights reserved.